Metrowerks V1.2 Debugger + P&E BDM Problem

Started by Guillermo F. Molina April 1, 2004
ref: Metrowerks V1.2 Debugger + P&E BDM Problem

Hi Folks,

I wonder if any of you there have the same problem and know how to solve it (yes,I know, Doron that a Nohau system will solve my problems, but unfortunately up to now I can't afford it)

I'm having trouble with the True-Time Simulator & Real Time Debugger of MOT V1.2 and P&E BDM Multilink (Parallel)
It's a Banked Model Project and the target is a MC912DP256.
When I try to inspect my global variables (Data:1 Window, OpenModule command) and the HC12 program is running, I mostly always have a unimplemented Instruction Trap or Invalid BP and the running program crashes.
I've noticed that it only happens when I debug Banked Model programs.
Trying to figure out what is happening I've enabled the "show protocol" in ICD-12 menu and I've opened a "Command" window to see the results.

These are some of the debugger command lines:

write_data_byte/word(0030..0030) [1] => 3D
read_data_byte/word((8873..8A72) [512] => 9E 9A96 928F 8C89 8784 817F etc.......
write_data_byte/word(0030..0030) [1] => 32

As you can see the debugger is changing the PPAGE register to be able to read some data at 8873..8A72.
This is repeated several times at different PPAGE values and address ranges to get all the data read.

My questions:

a) Isn't this harmful for a banked model running program ?
b) If not, where / how is the program execution stopped between debugger cmds ?

Maybe this is not the reason of my problem, but I'm sure that I have at least one (problem)!

As I'm having trouble with the Metrowerks debugger I'm thinking to use another one with the Metrowerks system, I have purchased a NoICE but I haven't tested yet. The problem I see is that NoIce uses IEEE695 files and Metrowerks only produces ELF/DWARF files.

c) Is there any easy way to link the Metrowerks system with NoICE to do full symbolic debugging ?
d) Any ELF/DWARF to IEEE695 Converter ?
e) Can NoICE + P&E BDM reliably debug banked model programs ?

Please forgive me for this long and "question full" mail.

Thank you very much in advance,

Best regards,

Guillermo F. Molina

Buenos Aires,
ARGENTINA.



Hi Guillermo,
We will work on this and will provide you a solution asap (off-list).
Anyone else running into the same problem: contact me or Gilles and you will
get the solution as well.

Thanks,
Erich

> -----Original Message-----
> From: Guillermo F. Molina [mailto:]
> Sent: Donnerstag, 1. April 2004 06:59
> To:
> Subject: [68HC12] Metrowerks V1.2 Debugger + P&E BDM Problem > ref: Metrowerks V1.2 Debugger + P&E BDM Problem
>
> Hi Folks,
>
> I wonder if any of you there have the same problem and know
> how to solve it (yes,I know, Doron that a Nohau system will
> solve my problems, but unfortunately up to now I can't afford it)
>
> I'm having trouble with the True-Time Simulator & Real Time
> Debugger of MOT V1.2 and P&E BDM Multilink (Parallel) It's a
> Banked Model Project and the target is a MC912DP256. When I
> try to inspect my global variables (Data:1 Window, OpenModule
> command) and the HC12 program is running, I mostly always
> have a unimplemented Instruction Trap or Invalid BP and the
> running program crashes. I've noticed that it only happens
> when I debug Banked Model programs. Trying to figure out what
> is happening I've enabled the "show protocol" in ICD-12 menu
> and I've opened a "Command" window to see the results.
>
> These are some of the debugger command lines:
>
> write_data_byte/word(0030..0030) [1] => 3D
> read_data_byte/word((8873..8A72) [512] => 9E 9A96 928F 8C89
> 8784 817F etc.......
> write_data_byte/word(0030..0030) [1] => 32
>
> As you can see the debugger is changing the PPAGE register to
> be able to read some data at 8873..8A72.
> This is repeated several times at different PPAGE values and
> address ranges to get all the data read.
>
> My questions:
>
> a) Isn't this harmful for a banked model running program ?
> b) If not, where / how is the program execution stopped
> between debugger cmds ?
>
> Maybe this is not the reason of my problem, but I'm sure that
> I have at least one (problem)!
>
> As I'm having trouble with the Metrowerks debugger I'm
> thinking to use another one with the Metrowerks system, I
> have purchased a NoICE but I haven't tested yet. The problem
> I see is that NoIce uses IEEE695 files and Metrowerks only
> produces ELF/DWARF files.
>
> c) Is there any easy way to link the Metrowerks system with
> NoICE to do full symbolic debugging ?
> d) Any ELF/DWARF to IEEE695 Converter ?
> e) Can NoICE + P&E BDM reliably debug banked model programs ?
>
> Please forgive me for this long and "question full" mail.
>
> Thank you very much in advance,
>
> Best regards,
>
> Guillermo F. Molina
>
> Buenos Aires,
> ARGENTINA. >
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~--> Buy Ink Cartridges or Refill Kits
> for your HP, Epson, Canon or Lexmark Printer at MyInks.com.
> Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cidU11
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/dN_tlB/TM
---------------------------------~->

--------------------To learn more about
Motorola Microcontrollers, please visit http://www.motorola.com/mcu o learn
more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu

Yahoo! Groups Links