this is my first post here, so forgive me if I violate a rule.
I’ve encountered a strange behavior when compiling the CM3 port *without* optimization.
My first build was a release build with -O2 optimization and it worked perfectly. Then I turned to the debug version (with -g3 an -O0) and I got a HardFaultException after some msec. I couldn’t get the exact reason or position of the crash because the link register is pointing to 0xfffffffc
I made plenty of tests with the result that, whenever I turn on a kind of optimization the code works. -O1 is enough.
The compiler was the CodeWork 2008q3-66 release. Any hints?