This Question is Answered (go to answer)

2 "helpful" answers available (2 pts)
178 Views 5 Replies Last post: Feb 4, 2010 10:09 AM by msherman RSS
msherman Newbie 9 posts since
Jan 27, 2010
Currently Being Moderated

Feb 1, 2010 10:25 AM

M16C/60, E8a Emulator, HEW

I have a system that I'm attempting to conduct on-chip debugging with via the E8a emulator. I have been successful in using this system with the Tutorial program and feel comfortable using the debugger with that program, and I am confirming correct connections and settings by mentioning this. However, when I attempt to download my own program to the system, the debugging features do not work as expected. I cannot set a S/W breakpoint on a source line; the PC only displays to the first line of disassembly code of the "starting" code; whenever I click the Stop (Halt) button, I receive a communication timeout error.

 

Am I missing something about this setup? Do I need special instructions in the code to operate with the emulator?

 

I am not the original author of this software; he is gone and I am trying to get the Renesas environment setup for our products.

 

Thanks

Tags: m16c, e8a
FrankL Apprentice 958 posts since
Mar 16, 2009
Currently Being Moderated
1. Feb 2, 2010 12:33 AM in response to: msherman
Re: M16C/60, E8a Emulator, HEW

The most likely cause for an E8a crash is that your software overwrites the work RAM area of E8a. In the Init window of E8a is one register card where you set the firmware and work RAM area of E8a. make sure they don't overlap with your application.

FrankL Apprentice 958 posts since
Mar 16, 2009
Currently Being Moderated
3. Feb 4, 2010 2:23 AM in response to: msherman
Re: M16C/60, E8a Emulator, HEW

DMA does not cause problems. E8a stops the DMA when the user application stops.

The memory setting look fine provided E8a is really set to use RAM starting 0x400 and ROM starting 0xC0000.

An E8a communication error could also be caused by

- initialising UART1 in the user application.

- switching the processor to stop mode.

 

Which M16C do you use? 62P?

More Like This

  • Retrieving data ...

Bookmarked By (0)