2014-01-24 04:37 AM
Hi to all,
I am porting a project from the to a home made prototype for a new project. The prototype is having a STM32L151VD (high density) so I made sure that the preprocessor macro is STM32L1XX_HD, and the same for the startup .s file is the hd one too. My problem is that I am getting Instruction access violation flag (IACCVIOL) Forced hard fault when I am calling PWR_EnterSleepMode( PWR_Regulator_LowPower, PWR_SLEEPEntry_WFI ) for the first time. The code is the same and it works fine in the IAR kickstart board. I would appreciate it if anyone has got a clue on where to look for troubleshooting this...