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

printf on Flash target

I am using the LPC 2294 and trying to display messages through HyperTerminal, using printf in my main(). However, there is no display when I start loading and debugging my project. I made sure that I am using the correct serial port and HyperTerminal is connected correctly because I tried out the Hello demo and it works. The problem arises when I switch from external RAM to Flash. printf works on xRAM but not on flash. Why?

Parents
  • this looks like a configuration issue. Did you use an standard example (C:\Keil\ARM\Boards\Phytec\LPC229x\Hello) for testing?

    Make sure that the STARTUP.S settings are correct. Under Options for 'startup.s' - Asm - Define you should remove EXTERNAL_MODE when running from on-chip Flash.

Reply
  • this looks like a configuration issue. Did you use an standard example (C:\Keil\ARM\Boards\Phytec\LPC229x\Hello) for testing?

    Make sure that the STARTUP.S settings are correct. Under Options for 'startup.s' - Asm - Define you should remove EXTERNAL_MODE when running from on-chip Flash.

Children