Skip to main content
ioannis2
Associate II
January 24, 2014
Question

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

  • January 24, 2014
  • 0 replies
  • 556 views
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...

    This topic has been closed for replies.