initial port to stm32f4-discovery (cortex-m4)

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jan 12 16:36:12 UTC 2012


On 01/12/2012 03:29 PM, Dmitry Shapovalov wrote:
> hi
>
> I not quite understand this code in irq.c:
>
> memcpy(&stm32f4_vector_table [0], (void *) 0, sizeof(stm32f4_vector_table));
>    _ARMV7M_SCB->vtor = &stm32f4_vector_table [0];
>
>
> it copies the interrupt table from 0 to our structure and then sets a new
> interrupt table address. this is the right place to do it? do we really need to
> do it at all? without it the system hangs on the first call to sleep. I think
> because the timer interrupt stops working.

Yes, you need this to get proper initial values for your interrupt handler table.

-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list