Skip to main content
NAnand1
Associate III
March 22, 2023
Question

Could some expert on STM32F4 series explain the meaning of the following message on my CubeIDE Debugger Console. It was all fine till now, suddenly, this error and program aborts

  • March 22, 2023
  • 4 replies
  • 4401 views

Note: automatically using hardware breakpoints for read-only addresses.

set *(int *)0xE000EDFC=*(int *)0xE000EDFC|0x7F0

Program received signal SIGTRAP, Trace/breakpoint trap.

0xfceaf000 in ?? ()

This topic has been closed for replies.

4 replies

Bob S
Super User
March 22, 2023

What register are you trying to modify? That address (0xe000edfc) does not appear in the ST CortexM4 programmer's manual (PM0214), at least that I can find. That is in the "not defined" region between the MPU and NVIC, and not one of the FPU registers.

And where did the "0xfceaf000" value come from? Perhaps real screen shots of the error?

Graduate II
March 6, 2024

Hey @NAnand1,

I am having pretty much the same error, just the last line is 

0xf3af4804 in ?? ()

 for me.

 

Did you find any fix or workaround for this error?

Associate
March 7, 2024

same here, any solution?

Bob S
Super User
March 7, 2024

Yeah - debug your code.  Look at the stack when that happens.  Where did the CPU come from (what is the last "real" function that shows up in the stack trace window)?  What is the SP value? 

These kind of errors are usually a stack overflow or corrupted memory issue.  Sometimes floating BOOT0 pin can cause funky behavior, though I'm not sure THIS kind of behavior.

Tesla DeLorean
Guru
March 7, 2024

I'm going with unstacking some junk

Probably look for ridiculous auto/local allocations within a function, or compound statement scopes.

Errant pointers, DMA into a auto/local buffer scope that's already collapsed...

Do the debuggering thing, perhaps instrument, and stack-check..

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Graduate II
March 15, 2024

Thanks guys, I also just found my problem.

 

For some reason after generating code, either from TouchGFXDesigner or from CubeMX my root Folder is removed from the Source Locations, leading to this strange error message.

So, adding it back manually in the project properties resolved the issue.