cancel
Showing results for 
Search instead for 
Did you mean: 

What are the possible reasons for exception MUNSKERR in STM32F4 while debugging?

AMuth.3
Associate II

Hi,

I am using Stm32F4Discovery board.

While debugging my customised application I got trapped in MemManage_Handler exception and when I viewed the cause for that exception in CFSR register at address 0xe000ed28, the bit MUNSTKERR was set. When referred in cortex m4 datasheet, it was mentioned as "MemManage fault on unstacking for a return from exception".But dont know where to look for to fix. Please help how to solve this issue.

2 REPLIES 2
Bob S
Principal

The cortex guide also says "the processor has not adjusted the SP", so the SP still points to the stack entries that caused the problem. Where is SP pointing? Is it valid stack space? What values are on the stack.