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

Simulator printf bug when using reg515a.h

Can anyone else verify that the Hello example fails to output to the serial#1 window when the reg515a.h is included. Single stepping through the program I can see the characters being written to SBUF but nothing is displayed in serial#1.

Just by replacing the statement "#include <reg515a.h>" with say "#include <reg552.h>" the program works just fine.

Parents
  • Thank you both for the replies.

    Jon, yes I figured out early that I had to add code to reset the watchdog but that doesn't appear to be the problem. For some reason ANY example using the reg515a.h header file doesnt allow me to print to the output. I still don't see what I'm doing wrong.

    Andrew, I've used the assign statement to no avail. Why would I need to use the assign statement for the 515a and not have to use it for the 552? All I've changed in the Hello World program is the include file, added 2 lines of code to reset the watchdog. The Peripherals/Serial dialog box shows the serial port as being configured correctly.

    I step over the entire printf statement many times but no output to the screen.

    In fact I have just downloaded the Infineon C515A/B/C A/D Example project and that also doesn't print to the output.

Reply
  • Thank you both for the replies.

    Jon, yes I figured out early that I had to add code to reset the watchdog but that doesn't appear to be the problem. For some reason ANY example using the reg515a.h header file doesnt allow me to print to the output. I still don't see what I'm doing wrong.

    Andrew, I've used the assign statement to no avail. Why would I need to use the assign statement for the 515a and not have to use it for the 552? All I've changed in the Hello World program is the include file, added 2 lines of code to reset the watchdog. The Peripherals/Serial dialog box shows the serial port as being configured correctly.

    I step over the entire printf statement many times but no output to the screen.

    In fact I have just downloaded the Infineon C515A/B/C A/D Example project and that also doesn't print to the output.

Children