cancel
Showing results for 
Search instead for 
Did you mean: 

Access viloation (IACCVIOL) when entering Sleep Mode (STM32L)

ioannis2
Associate II
Posted on January 24, 2014 at 13:37

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

0 REPLIES 0