Hi there, i've got a project realizing mc8051 on a FPGA board and using mon51 of keil uvision3 for debugging. I got my VHDL code implemented and tested the functionality, the UART interface of the MC is working correctly, memory space is also von neuman wired, but the communication between my MC and the keil uvision is always wrong. I used the baudrate 9600 for the mon51 program. Is there any way to look inside what is going on? I mean is there any way to see if the mon51 on the ROM of my MC is working and is receiving some data from uvision? p.s. i used a new setting for mon51. For example i changed the starting address of xdata and code, excuted the install-batch with proper parameter, and generated a new hex file for mon51 of keil uvision. But the keil uvision always seems to be working with the old mon51 setting. Why?
thanks & regards chris
"realizing mc8051 on a FPGA board and using mon51 of keil uvision3 for debugging"
If you've got an FPGA, why would you not provide JTAG debugging?
Why still using uVision-3 ?
"Is there any way to look inside what is going on?"
A JTAG debugger!
hi andrew, you mean a jtag debugger for fpga or for mc8051? If a jtag for 8051 then should i also design a bootloader for it? I'm currently using spartan 3e evalboard of xilinx. thx
Both!
(separately or combined).
"for 8051 then should i also design a bootloader for it"
Depends how you do it: You wouldn't normally need to, as the JTAG could do it "autonomously"...
Do i need to initialize the rom of mc8051 for using jtag debugger? 'Cause using keil uvision with MON51 requires rom initialization.
JTAG is a hardware solution. So no ROM needed. It does not need the processor to run any instructions.
So can i say that i don't need to do anything, the jtag debugger can flash my user program to the target board? And there is no hardware requirement but a empty eeprom? can you please list some jtag debugger that may be useful? Thx
You're developing the FPGA - so you need to implement the JTAG support.
Are you implementing the 8051 yourself from scratch, or using someone else's IP "core" ?
i'm using ipcore from oregano, so there is no jtag interface implemented. What i've currently done is using keil uvision3 to generate a mon51.hex, and initialize this file into my rom to get communication with uvision3 using monitor program. But by far i haven't got any success. What should i do?
Debugging with a monitor is from the days when the dinosaurs roamed the earth. Today JTAG (or similar) is almost standard.
Erik
Erik, if you want to show how brilliant you are, go somewhere else. What i need is a solution, not somebody playing teacher's game. I'm sorry for being rude, didn't mean to, though.
As Erik says, JTAG really is de rigueur these days - why would you choose a core without it?
http://www.keil.com/dd/ipcores.asp
Because i don't have any choice, that all i've got. My job is to implement this 8051 ipcore into my fpga board, connect it with keil uvision's monitor program. We don't have jtag debugger.
I trust you have fed-back to the person who did make the choice, and ensured that they are aware of the implications...
"My job is to ... connect it with keil uvision's monitor program"
Are you familiar with doing that on a standard 8051 chip?
If not, that would probably be the place to start. Then you will have a reference point for your FPGA implementation...
Do you mean this:
www.xilinx.com/.../spartan-3e_board_and_kit_documentation.htm