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
I am using the same Example from SiLabs (F35x_UART_STDIO.c) which is basically demonstrates how to configure the C8051F350 to use routines in STDIO.h to write to and read from the UART interface. The program reads a character, outputs that character to the screen, and then outputs the ASCII hex value of that character. I made sure that J3 is connected (P0.4 pin to the TX signal, and P0.5 to the RX signal. Then change couple setup which are:
Project/Option for target/Debug======>Silicon Labs C8051Fxxx Driver Project/Option for target/Utilities==>Silicon Labs C8051Fxxx Driver
I set my HyperTerminal to 9600 baudrate, then I tried to download and Its saying the the port is in use. So I forget about the hyperterminal hoping to see result just from "printf" or "putchar" on the UART 1. So I download the code on the chip and debug it, but it didn't show me anything on the serial window. Did I miss any of the settings that I have to include?
Thanks,
Scrungy (why a stupid monniker instead of a name), Sam
if you read above you will see it works with the SILabs toolset
Because of my job. I am prohibited from using my real name. Hell, they won't even let me put it in the SOURCE CODE I write. :(, and made me take it out of the object file as well.
So I picked this one a long time ago. I do embedded programming on Silabs processors.