Hi my code is running perfectly, however when I enable enable a certain feature in in CUBE IDE i get a Hardfault which doesnt make sense at all: The feature which I enable is shown in attached image: debug configurations->startup-> Exception on unaligned access I have a breakpoint in my hardfault handler anyway and can see that this only happens when this feature is enabled in debug configurations. What is is this doing any way? :debug configurations->startup-> Exception on unaligned access thx
I does what it says. when ur code accesses a variable with no correct alignment u get a hard fault. so u most probably have a float with an Adress % 4 != 0, or most likely double or int64 not aligned on 8 bytes.
Yes I got that, but I get that hardfault ONLY when I set the option in CUBE, I would expect to run into hardfault without the debugger as well, no?
Exception on unaligned access disabled by default. The arm core is able to manage that at the cost of speed
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.