This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM Cortex M3 STM32F207 processor hangs during the initializing if the code-size is more then 64k

Hallo,

I'm using a ARM Cortex M3 STM32F207 processor and if the code of  my project becomes a value of more than 64k, the processor hangs before the PC reach the __main().

The code starts at 0x08020000 (sector 5) and hangs at a Breakpoint or any like that --> 0x08020ECE BEAB     Bkt 0xAB

Should I use any compiler/linker option for code more than 64k, or has anybody an idea what's my mistake?

Thank's

  • Hello,

    are you sure the reason of the hang-up is code size?

    I am afraid the debugger cannot trace exception (now BKPT) handlers.

    How about putting a break point at __main and run without single stepping?

    Best regards,

    Yasuhiko Koumoto.


  • Hello Yasuhiko Koumoto,

     

    Thanks for the answer. You’re right, the code-size was not the problem. My problem was using a std.lib without having a well performed retarget.c. It seems to me as a problem with the code-size, because if I used the std.lib, the code increases above 64k. And so my problem is solved. Unfortunately I have a problem with my account. So I can’t edit my case in a normal way. I hope that replying your answer with my email-program works.

     

     

    Mit freundlichen Grüßen,

    Stefan Tesche