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

Problems when using printf

Hi !

My program crashes when using printf(). I use MDK ARM V3.0 together with KEIL-Debugger an ARM STR7-Controller.
When program runs in debugger -> no problem.
When disable interrupts -> no problem
When I change the file scat.scf to start the program from address 0x40000000 -> no problem

But I want to use the IAP-Driver in sector 0 and so my program should be able to start at 0x40002000. Is there something wrong with interrupt vectors ?

My program is based on the KEIL-IAP example.

Has anyone on idea?

best regards

Marc

Parents
  • The interrupt vectors (They are actually instructions on the ARM) ALWAYS need to be at address 0. The STR7 maps FLASH to address 0 on power up, meaning that 0x40000000 i s mapped to address 0. The STR allows you to map RAM to address 0 or external memory to address 0. It does not allow you to map address 0x40002000.

Reply
  • The interrupt vectors (They are actually instructions on the ARM) ALWAYS need to be at address 0. The STR7 maps FLASH to address 0 on power up, meaning that 0x40000000 i s mapped to address 0. The STR allows you to map RAM to address 0 or external memory to address 0. It does not allow you to map address 0x40002000.

Children