# STM32 L1 Bootloader: how to set the reset vector

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).

• RTFM: RM0038, Chapter 10.1.2 "Interrupt and exception vectors". The value points to the first instruction of the startup code, which initialises data memory and calls main(). – Turbo J Mar 11 '15 at 19:03