AnsweredAssumed Answered

STM32L151RD inexplicable/weird crash

Question asked by on Oct 3, 2013
Latest reply on Oct 4, 2013 by Clive One

I developed an application using the STM32L152D Evaluation board and everything was working as expected. The application was then moved to the actual project which uses a STM32L151RD microcontroller. When I try to run the program it doesn't even enter main.c it crashes and the debugger shows it stopped at an out of boundary address(not always the same address) like 0xEE124512. Using breakpoints I managed to find that the crash happens after running the  
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH. */
line in the system_stm32l1xx.c file. 

I built a new project, with just a toggle on one of the pins and I get the same behavior. 

With any of the projects there is no crash if I run it from the RAM memory, it happens only if the code is located in the Flash.

Any ideas are appreciated.

Thank you,