Skip to main content
AMuth.3
Associate III
September 23, 2022
Question

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

  • September 23, 2022
  • 2 replies
  • 1168 views

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.

This topic has been closed for replies.

2 replies

Bob S
Super User
September 23, 2022

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.