Hi,
I am working on MCB2300 (LPC2378) and I am using Keil uVision4. In my code I need to give some inputs to the code using serial window. Please let me know how to input some text using serial window
Regards, Pavan
www.keil.com/.../uv4_sm_uartcommunication.htm
http://www.keil.com/support/man/docs/uv4/uv4_db_dbg_serialwin.htm
http://www.keil.com/support/man/docs/uv4/uv4_ex_hello.htm
Hi Andrew,
Thanks for your reply. When I open serial window (UART #1-3), I am not able to type any characters on the screen. When I have typed SIN = 'A' on the debugger's command window i get an error message saying *** error 34: undefined identifier . Please let me know should I take things further
"When I open serial window (UART #1-3)"
You have to use the correct window for the UART that your code is actually using!
"I am not able to type any characters on the screen"
What do you mean by that? What, exactly, prevents you from typing?
You simply ensure that the window has the focus (eg, click in it), and then type! The characters you type are then delivered to the application as if they had been received by the UART.
"When I have typed SIN = 'A' on the debugger's command window i get an error message saying *** error 34: undefined identifier"
So look again at the list of Virtual Simulation Registers (VTREGs) for UART Simulation:
See also: http://www.keil.com/support/man/docs/uv4/uv4_db_exp_periphlvar.htm
And note that the command DIR VTREG will list all the available VTREGs for the specific processor that you are actually simulating at the time...
My application is using UART #2 and Iam also ensuring that the has focus,but still it does n't allow me to type any character. Please let me know what could be the problem here
I am trying to execute SD_File example provided in c/Keil/ARM/Boards/Keil/MCB2300/RL/FlashFS/SD_File
I can compile the code successfully, but when I run it I cannot type any command to perform the functions
How should I execute this code and do the operations like reading files on SD Card, Format etc.., Pleae help me
"it does n't allow me to type any character"
You still haven't explained what you mean by that!
In what way does it not "allow" you to type? ie, how does it "prevent" you from typing?
"I am trying to execute SD_File example"
I suggest that you use a much simpler example while you learn how to use the tools!
eg, Look for (or write) a really simple example that just echoes characters received on a UART...
After compiling the code, I start debugging. During debugging after pressing F5 (RUN) I am supposed to get the display of intro[] and help[] (name of the arrays used in the SD_FILE project). These arrays are nothing but the list of commands available like DIR, CAP, FORMAT . After displaying all the available commands at the bottom there should be a command prompt where we can enter any command of our choice to perform operations on SD Card. All these things should be displayed on Serial Window (UART#2 as per this example). But I don't get any display of these commands on my serial window and I cannot enter any command on the window as well.
I tried running another example File_ex1 available at C:/Keil/ARM/RL/FlashFS/Examples/File_ex1 which is for LPC 2294 which also performs similar manipulation of files and the flash file system is configured for SRAM. There all the available commands are displayed on the serial window when I debug it and I can type and perform all operations mentioned in the code like read a file, append, delete etc.,
This SD_File project is also for manipulation of files but file system is configured for SD Card which is for LPC 2300. My requirement is to work on LPC 2378 so I am trying to look at the given example and start building my application. But I am not able to run this SD_File project. Please let me know what could be the problem here.
"I don't get any display of these commands on my serial window"
Up until now, you have only said anything about providing input to the serial window; Now you say that the output to the window is not working, either.
In other words, your serial IO is not working at all!
This could be a problem with your application, or a problem in the way you're using the simulator - or both!
Therefore, you really need to go right back to basics:
Start with a simple, output-only, "Hello, world" program - and verify that you can get the output in the serial window.
Follow the example here: http://www.keil.com/support/man/docs/uv4/uv4_ex_hello.htm
When you have that working, modify the program to use a different UART - and verify that you can correctly re-configure the simulator to see its output.
When you have that working - and not before - modify the program to also accept input from a UART. Then verify that you can use the serial window to supply the input.
Having done all that, you should be confident that you can both use the UARTs in your programs and correctly configure & use the serial windows in the simulator.
Then - and only then - you can move on to getting the SD Card application to work...
My program is executing now. On MCB 2300 the SD card is not sitting in its appropriate position in the holder provided there. I need to hold it by pressing down and then run my program. Now I can access my sd card and perform all the operations. Thanks for your support