STM32 L1 Bootloader: how to set the reset vector

bootloadermicrocontrollerstm32

I am trying to program a STM32 L1(51C8Ux) via the standard bootloader and when I do the memory gets written to, but the code doesn't execute (after reset that is). I assume as part of the memory erase, I have overwritten the reset vector. Where does the reset vector reside and what am I supposed to write to it?

I have been referencing RM0038 (Reference manual) and AN3155 (Bootloader command set).

Best Answer

The reset vector is the second word (32 bit) in the interrupt vector table. It must be an odd value (thumb bit is set).