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

C8051F350 printf in Debug mode

Hi there,

I am new to the embedded systems and trying to learn. I have a C8051F350-DK that I wrote a
program to measure the voltage through one of the analog inputs ( I am using Keil uvision 4).
I added a printf to see the result, so I won't use the WATCH window. I downloaded the code then
debug it (through the DEBUG mode, not the Simulation mode) and it didn't work. Can anyone give
an advice if I am missing something in my settings ?? here is some of my settings :

Project > Option for target > Device > C8051F350 Use extended linker ( LX51)

Project > Option for target > Debug > Use "on the right side" \Silicon Labs C8051Fxxx Driver

Project > Option for target > Utilities > Use \Silicon Labs C8051Fxxx Driver " didn't use *.ini "

Steps: Translate -> Build Target -> Download code to flash memory -> Debug -> Run
---------------------------------------------------------------------------------------------
Thanks in advance

Parents Reply Children
  • I asked :
    does it work when you are not in debug mode? you do not make that clear

    does it work with the SILabs toolset?

    Keil and SILabs are frequently out of synch

    you answered:
    in SiLbs IDE : I downloaded it successfully on the MCU and got the input voltage and Watched it through the Watch window

    which does not answer any of my questions

    Erik

  • Erik,

    "does it work when you are not in debug mode?" Yes it does.

    "does it work with the SILabs toolset?" Yes it does.

    I am not sure anymore if printf is working or not in the DEBUG mode, so I am using HyperTerminal, but whenever I am trying to connect both of them, I can't. Its either Kiel running or Hyper Terminal. I can't run both of them. Do you have any advice about how to run both of them ? is there any option that I have to set ?

  • Erik,

    It is working now. I am getting my output on the HyperTerminal. Thanks a lot.