Source window in Real-Time Debugger CW6.1

cancel
Showing results for 
Search instead for 
Did you mean: 

Source window in Real-Time Debugger CW6.1

2,585 Views
Specialist II
Hi,
Can anyone explain what the Source window is for in Real-Time Debugger? Everytime I click on debug its empty and the only file I can load is main.dbg, however I have seen my asm file appear on the Source window automatically after I click on debug once just like in the Full chip simulation mode.

I suspect having your asm code to appear in the Source window after you click on debug is what's meant to happen if CW is running correctly? (My project is Absolute asm)

Is it normal/correct to have the Source window empty after you click on debug?

Thanks!
Labels (1)
Tags (1)
0 Kudos
14 Replies

43 Views
Specialist III
Hello
 
When you are programming in assembly, the debugger uses a file with extension .dbg as source file in the Source window.
 
This .dbg file is in fact your assembler source file with all macro and equates expanded to their value.
So it is normal to see the .dbg file (and not the.asm file) in the Source window.
 
If the source window is completely empty, that means the debugger did not find any debug information in the executable file.
 
In your project window (.mcp) do you have a dot next to your .asm source file in the column with the green bug?
 
Please look for FAQ-27442 on Freescale web site.
It explains how to activate generation of debug info for an application.
.
CrasyCat
0 Kudos

43 Views
Specialist II
Hi CrasyCat,
I have a dot next to my .asm source file in the column with the green bug.



But I rarely get the Source file showing in the Source window automatically after I click on debug and when I go

Source>Open Source File

Often I get No source file foind!

And this is happening to the same file, debug at different time.


Message Edited by Learner on 2008-01-16 04:23 PM

Message Edited by Learner on 2008-01-16 04:24 PM
0 Kudos

43 Views
Specialist III
Hello
 
Is the executable file build on the same machine?
Are you starting the debugger from et IDE pressing the Debug button
 
What is the status of the application in the debugger status bar? is it running, Halted, ...?
In the Target settings Build Extras panel what is the content of the Arguments edit box?
 
After you have started the debugger, can you please select File -> Configuration
In the Load Tab, is "Run after successful load" checked?
 
CrasyCat
0 Kudos

43 Views
Specialist II
Hi CrasyCat,
It seems to be working more regularly now,do not know why cause I haven't done anything different than before.

At the moment the problem I am just getting this Unknown($1301) device at the status bar when I go into the debugger, no one seems to know anything about this error....... :smileysad:

I can not load into flash, read or write to any registers or memory.




Message Edited by Learner on 2008-01-20 12:49 PM
0 Kudos

43 Views
Specialist III
Hello
 
It looks like your debugger is configured to connect to an unknown device...
 
Can you try to select "MultiLink/CyclonePro" -> "Device"^and select the appropriate device there.
Once this is done select File -> "Save Configuration" to save your settings.
 
CrasyCat
0 Kudos

43 Views
Specialist II
Hi CrasyCat,
I am using a OSBDM and as soon as I click on debug, it will automatically try to connect then I just get the error message that can not erase Flash and CW just thinks its a Unknow($1301) device and I have tried this to both the QG8 and GT8 with the same result. Refer the link for more detailed error

http://forums.freescale.com/freescale/board/message?board.id=OSBDM08&thread.id=352

I know that there is no support for OSBDM but I can not even find any info/help that enables me to trouble shoot....... :smileysad:
0 Kudos

43 Views
Specialist II
Just want to add that CompilerGuru  has advised that

The debugger is trying to detect the device by reading SDIDH, SDIDL:
Code:
GDI:   Reading From Memory Address: 0x01806, count: 2
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00

 
That SDIDH == 0 && SDIDL == 0 does not find the right device but instead this bogus "Unknown($1301)" is not the problem, the problem is that the pod does not report anything from the actual target but instead constantly claims it would.


When I type

in>db 0x1806

1806: 00                                              .

in>db 0x1807

1807: 00                                              .

I get 00 for both register and this is after I hold the BKGD pin low while powering up the QG8, I think I am unable to enter background debug mode, therefore I can not read the register or any memory locations.

However, as soon as I click on debug CW automatically assume the Unknown($1301) device. I am wondering if its because I am unable to enter background debug mode therefore the HCS08_OpenSourceBDM_Erase_Unsecure.cmd can not be executed correctly which is causing the error?


0 Kudos

43 Views
Senior Contributor IV
Hi Learner,

Unfortunately, due to its simplicity, the OSBDM does tend to "carry on regardless" as opposed to generating sensible error messages when things go wrong. The unknown device is probably a catch-all in CW, done before the OSBDM even existed.
I don't know what your problem is though.
I think you can get this with no target at all!
Don't have the time at the moment to confirm this.

0 Kudos

43 Views
Specialist II
Hi Peg,
With the 6 pin BDM disconnected I get the "No Link To Target" message on the command window in the Debugger, which is different to when the target has been connected. Once I have the target connected the debugger execute the cmd files and attempts to erase the Flash which leads tp the error of not being able to and the Unknown($1301) device.





0 Kudos

43 Views
Specialist II
I have added a pull up resistor on the BKGD pin and it seems allow me to write and read and write into the register and ram location of the QG8 using the command window also shows up on the memory window, this is when I saved the Mcu1019.fpp as the Mcu1301.fpp.

When I change the Mcu1301.fpp back to its original device (NVMIF  HCS908CT16_V4  0x1301), it seems that I can write value into registers and memories using the command window and appears on the Memory window HOWEVER when I try to read back the same location use DB commands on the memory window it shows all 00.

Occasionally(rarely), the debugger actually recognize its a QG8, this is what I get....

================================================

executing ASM_layout.hwl

!OPEN source 0 0 60 42
NO CONNECTION
!Source < attributes MARKS off
!OPEN assembly 60 0 40 30
!Assembly < attributes ADR on,CODE off,ABSADR on,SYMB off,TOPPC 0xF800
!OPEN procedure 60 60 40 17
!Procedure < attributes VALUES on,TYPES off
!OPEN register 60 30 40 30
!Register < attributes FORMAT AUTO,COMPLEMENT None
!OPEN memory 60 77 40 23
!Memory < attributes FORMAT hex,COMPLEMENT None,WORD 1,ASC on,ADR on,ADDRESS 0x80
!OPEN data 0 42 60 28
!Data < attributes SCOPE global,COMPLEMENT None,FORMAT Symb,MODE automatic,UPDATERATE 10,NAMEWIDTH 16
!OPEN command 0 70 60 30
!Command < attributes CACHESIZE 1000
!bckcolor 50331647
!font 'Courier New' 9 BLACK
!AUTOSIZE on
!ACTIVATE Assembly Memory Register Command Data Source Procedure 
done ASM_layout.hwl

Loading Target ...
SETCOMM DRIVER NOPROTOCOL NOPERIODICAL
SETCOMM COMPORT NONE
TARGET SECURED?  NO TARGET CONNECTED?
Communication settings:
SETCOMM DRIVER PROTOCOL NOPERIODICAL
Communication settings:
SETCOMM COMPORT LPT "OSBDM #1"
GDI:   DiGdiClose(TRUE)
Communication settings:
SETCOMM DRIVER PROTOCOL NOPERIODICAL
Loading Communication DLL
 ==> J:\Freescale\prog\gdi\OSBDM_S08.dll
GDI:   DiGdiOpen()==> DI_OK
GDI:   DiGdiVersion()==> DI_ERR_NOTSUPPORTED
GDI:   DiGdiAddCallBack(8192)==> DI_OK
GDI:   DiGdiAddCallBack(16384)==> DI_OK
GDI:   DiCommGetAcceptableSettings()==> 5
GDI:   DiCommGetAcceptableSettings()==> 0
GDI:   DiCommGetAcceptableSettings()==> 5
Communication settings:
SETCOMM COMPORT LPT "OSBDM #1"
Initializing STARTUP command file:
CMDFILE STARTUP ON ".\cmd\HCS08_OpenSourceBDM_startup.cmd"
Initializing RESET command file:
CMDFILE RESET ON ".\cmd\HCS08_OpenSourceBDM_reset.cmd"
Initializing PRELOAD command file:
CMDFILE PRELOAD ON ".\cmd\HCS08_OpenSourceBDM_preload.cmd"
Initializing POSTLOAD command file:
CMDFILE POSTLOAD ON ".\cmd\HCS08_OpenSourceBDM_postload.cmd"
GDI:   DiGdiInitIO()
GDI DLL called: DI_CB_MTWKS_EXTENSION_Callback(MTWKS_CB_HCS08AUTOCONFIG)
GDI:   Reading From Memory Address: 0x01806, count: 2
GDI:   DiMemoryRead()==> DI_OK
GDI:   20 09
IO registers loaded for MC9S08QG8 from J:\Freescale\prog\REG\MCU1019.REG

Micro Name: MC9S08QG8

GDI DLL called: DI_CB_MTWKS_EXTENSION_Callback(MTWKS_CB_CONNECTIONOK)
GDI:   DiGdiVersion()==> DI_ERR_NOTSUPPORTED
GDI:   DiGdiAddCallBack(8192)==> DI_OK
GDI:   DiGdiAddCallBack(16384)==> DI_OK
GDI:   DiCommGetAcceptableSettings()==> 5
GDI:   DiCommGetAcceptableSettings()==> 0
GDI:   DiCommGetAcceptableSettings()==> 5
Communication settings:
SETCOMM COMPORT LPT "OSBDM #1"

GDI DLL called: DI_CB_MTWKS_EXTENSION_Callback(MTWKS_CB_UPDATEVIEW)

GDI DLL called: DI_CB_MTWKS_EXTENSION_Callback(MTWKS_CB_HASVERSIONCMD)

GDI DLL called: DI_CB_MTWKS_EXTENSION_Callback(MTWKS_CB_ACCESSWHILERUNNING)

GDI DLL called: DI_CB_MTWKS_EXTENSION_Callback(MTWKS_CB_GETSTATUSWHENSTOPPED)
==> DI_OK
Initializing STARTUP command file:
CMDFILE STARTUP ON ".\cmd\HCS08_OpenSourceBDM_startup.cmd"
Initializing RESET command file:
CMDFILE RESET ON ".\cmd\HCS08_OpenSourceBDM_reset.cmd"
Initializing PRELOAD command file:
CMDFILE PRELOAD ON ".\cmd\HCS08_OpenSourceBDM_preload.cmd"
Initializing POSTLOAD command file:
CMDFILE POSTLOAD ON ".\cmd\HCS08_OpenSourceBDM_postload.cmd"
Initializing VPPON command file. Command File not yet defined (use default settings).
CMDFILE VPPON ON "vppon.cmd"
Initializing VPPOFF command file. Command File not yet defined (use default settings).
CMDFILE VPPOFF ON "vppoff.cmd"
Initializing UNSECURE command file:
CMDFILE UNSECURE ON ".\cmd\HCS08_OpenSourceBDM_Erase_Unsecure.cmd"
GDI:   Reading From Memory Address: 0x01810, count: 4
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00
GDI:   Reading From Memory Address: 0x01816, count: 2
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00
GDI:   Reading From Memory Address: 0x00, count: 384
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   DiDirectAddMenuItem()==> DI_OK
Startup Command File execution: .\cmd\HCS08_OpenSourceBDM_startup.cmd
executing .\cmd\HCS08_OpenSourceBDM_startup.cmd

GDI:   Reading From Memory Address: 0x0F700, count: 512
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
!// At startup the commands written below will be executed
Initializing STARTUP command file:
CMDFILE STARTUP ON ".\cmd\HCS08_OpenSourceBDM_startup.cmd"
Initializing RESET command file:
CMDFILE RESET ON ".\cmd\HCS08_OpenSourceBDM_reset.cmd"
Initializing PRELOAD command file:
CMDFILE PRELOAD ON ".\cmd\HCS08_OpenSourceBDM_preload.cmd"
Initializing POSTLOAD command file:
CMDFILE POSTLOAD ON ".\cmd\HCS08_OpenSourceBDM_postload.cmd"
Initializing VPPON command file:
CMDFILE VPPON ON "vppon.cmd"
Initializing VPPOFF command file:
CMDFILE VPPOFF ON "vppoff.cmd"
Initializing UNSECURE command file:
CMDFILE UNSECURE ON ".\cmd\HCS08_OpenSourceBDM_Erase_Unsecure.cmd"
GDI:   Reading From Memory Address: 0x01810, count: 4
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00
GDI:   Reading From Memory Address: 0x01816, count: 2
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00
GDI:   Reading From Memory Address: 0x014, count: 364
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00
GDI:   Reading From Memory Address: 0x00, count: 384
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   DiDirectAddMenuItem()==> DI_OK
Startup Command File execution: .\cmd\HCS08_OpenSourceBDM_startup.cmd
Could not open command file: .\cmd\HCS08_OpenSourceBDM_startup.cmd
Startup command file correctly executed.
GDI:   Reading Register PC (id:0):
GDI:   DiRegisterRead()==> DI_OK
GDI:   PC (id:0) -> 0x00
GDI:   Reading From Memory Address: 0x0F700, count: 512
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   Reading Register SP (id:1):
GDI:   DiRegisterRead()==> DI_OK
GDI:   SP (id:1) -> 0x00
GDI:   Reading Register A (id:2):
GDI:   DiRegisterRead()==> DI_OK
GDI:   A (id:2) -> 0x00
GDI:   Reading Register H (id:4):
GDI:   DiRegisterRead()==> DI_OK
GDI:   H (id:4) -> 0x00
GDI:   Reading Register X (id:3):
GDI:   DiRegisterRead()==> DI_OK
GDI:   X (id:3) -> 0x00
GDI:   Reading Register CCR (id:5):
GDI:   DiRegisterRead()==> DI_OK
GDI:   CCR (id:5) -> 0x00
GDI:   Reading From Memory Address: 0x014, count: 364
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00
GDI:   Reading Register PC (id:0):
GDI:   DiRegisterRead()==> DI_OK
GDI:   PC (id:0) -> 0x00
NOT_CONNECTED SECURED
0 Kudos

43 Views
Specialist II
GDI:   Reading Register PC (id:0):
GDI:   DiRegisterRead()==> DI_OK
GDI:   PC (id:0) -> 0x00
GDI:   Reading From Memory Address: 0x00, count: 18
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   Reading Register SP (id:1):
GDI:   DiRegisterRead()==> DI_OK
GDI:   SP (id:1) -> 0x00
GDI:   Reading Register A (id:2):
GDI:   DiRegisterRead()==> DI_OK
GDI:   A (id:2) -> 0x00
GDI:   Reading Register H (id:4):
GDI:   DiRegisterRead()==> DI_OK
GDI:   H (id:4) -> 0x00
GDI:   Reading Register X (id:3):
GDI:   DiRegisterRead()==> DI_OK
GDI:   X (id:3) -> 0x00
GDI:   Reading Register CCR (id:5):
GDI:   DiRegisterRead()==> DI_OK
GDI:   CCR (id:5) -> 0x00
GDI:   Reading From Memory Address: 0x014, count: 364
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00
done .\cmd\HCS08_OpenSourceBDM_startup.cmd

Startup command file correctly executed.
GDI:   DiDirectAddMenuItem()==> DI_OK
Preload Command File execution: .\cmd\HCS08_OpenSourceBDM_preload.cmd
executing .\cmd\HCS08_OpenSourceBDM_preload.cmd

!// Before load the commands written below will be executed
done .\cmd\HCS08_OpenSourceBDM_preload.cmd

Preload command file correctly executed.




FP: McuDesc invalidated.
FP: FLASH parameters loaded for MC9S08QG8_V11(NVMIF2 rev 3) from J:\Freescale\prog\FPP\mcu1019.fpp
GDI:   DiExecResetChild()==> DI_OK
Reset Command File execution: .\cmd\HCS08_OpenSourceBDM_reset.cmd
executing .\cmd\HCS08_OpenSourceBDM_reset.cmd

!// After reset the commands written below will be executed
GDI:   Reading Register PC (id:0):
GDI:   DiRegisterRead()==> DI_OK
GDI:   PC (id:0) -> 0x00
GDI:   Reading Register PC (id:0):
GDI:   DiRegisterRead()==> DI_OK
GDI:   PC (id:0) -> 0x00
GDI:   Reading Register PC (id:0):
GDI:   DiRegisterRead()==> DI_OK
GDI:   PC (id:0) -> 0x00
ILLEGAL_BP
GDI:   Reading Register PC (id:0):
GDI:   DiRegisterRead()==> DI_OK
GDI:   PC (id:0) -> 0x00
GDI:   Reading From Memory Address: 0x00, count: 18
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   Reading Register SP (id:1):
GDI:   DiRegisterRead()==> DI_OK
GDI:   SP (id:1) -> 0x00
GDI:   Reading Register A (id:2):
GDI:   DiRegisterRead()==> DI_OK
GDI:   A (id:2) -> 0x00
GDI:   Reading Register H (id:4):
GDI:   DiRegisterRead()==> DI_OK
GDI:   H (id:4) -> 0x00
GDI:   Reading Register X (id:3):
GDI:   DiRegisterRead()==> DI_OK
GDI:   X (id:3) -> 0x00
GDI:   Reading Register CCR (id:5):
GDI:   DiRegisterRead()==> DI_OK
GDI:   CCR (id:5) -> 0x00
GDI:   Reading From Memory Address: 0x014, count: 364
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00
done .\cmd\HCS08_OpenSourceBDM_reset.cmd

Reset command file correctly executed.
GDI:   Reading From Memory Address: 0x01800, count: 20
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   Writing To Memory Address: 0x01802, count: 1
GDI:   00
GDI:   DiMemoryWrite()==> DI_OK
GDI:   Reading From Memory Address: 0x01802, count: 1
GDI:   DiMemoryRead()==> DI_OK
GDI:   D2

FP: Start checking speed.

FP: Begin writing Info applet code.
GDI:   Writing To Memory Address: 0x080, count: 122
GDI:   00 00 00 00 18 2C E7 D4 01 00 9B C6 18 02 A4 7F C7 18 02 45 00 FA 94 0E 88 3C 55 84 96 00 BB 55
GDI:   84 89 8B 55 86 9F 8B 95 EB 02 E7 02 86 E9 01 87 EE 02 8A AF FF 96 00 C2 A7 02 45 00 84 F6 4C 26
GDI:   12 65 FF FF 27 09 AF 01 65 FF BF 27 F9 20 EE A6 02 B7 89 82 20 FD 45 00 00 AF 01 35 82 65 00 00
GDI:   26 F7 55 80 AF 01 35 80 20 EC 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   DiMemoryWrite()==> DI_OK
GDI:   Reading From Memory Address: 0x080, count: 122
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 18 2C E7 D4 01 00 9B C6 18 02 A4 7F FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

FP: Applet readback error.

FP: Could not write Info applet.

FP: Checking speed failed.
GDI:   Reading From Memory Address: 0x00, count: 18
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   Writing To Memory Address: 0x0E000, count: 28
GDI:   45 02 60 94 A6 FF B7 03 A6 3F B7 02 A6 0F 4A A1 00 26 FB A6 00 B7 02 C7 18 00 20 EC
GDI:   DiMemoryWrite()==> DI_OK
GDI:   Writing To Memory Address: 0x0FFFE, count: 2
GDI:   E0 00
GDI:   DiMemoryWrite()==> DI_OK
GDI:   Writing Register: PC (id:0): 0x0E000
GDI:   DiRegisterWrite()==> DI_OK
GDI:   Reading Register PC (id:0):
GDI:   DiRegisterRead()==> DI_OK
GDI:   PC (id:0) -> 0x0E000
GDI:   Reading From Memory Address: 0x00, count: 18
GDI:   DiMemoryRead()==> DI_OK
GDI:   24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1F 00
GDI:   Reading From Memory Address: 0x0E000, count: 256
GDI:   DiMemoryRead()==> DI_OK
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   Reading Register A (id:2):
GDI:   DiRegisterRead()==> DI_OK
GDI:   A (id:2) -> 0x07F
GDI:   Reading Register H (id:4):
GDI:   DiRegisterRead()==> DI_OK
GDI:   H (id:4) -> 0x00
GDI:   Reading Register X (id:3):
GDI:   DiRegisterRead()==> DI_OK
GDI:   X (id:3) -> 0x00
GDI:   Reading Register CCR (id:5):
GDI:   DiRegisterRead()==> DI_OK
GDI:   CCR (id:5) -> 0x068
GDI:   Reading Register SP (id:1):
GDI:   DiRegisterRead()==> DI_OK
GDI:   SP (id:1) -> 0x0FF
GDI:   Reading From Memory Address: 0x014, count: 364
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 C0 00 00 00 04 00 00 20 00 00 00 00 00 00 00 80
GDI:   00 00 00 00 04 40 80 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 EE E6 EF E7 21 97 5F 9F 4C 48 40 35 00 82 0A 00 FF FF 6E DA
GDI:   7F 7F FF FF 0C 80 6D C4 04 90 0D 0C 00 00 00 00 18 2C E7 D4 01 00 9B C6 18 02 A4 7F FF 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00
GDI:   Reading From Memory Address: 0x0FEFE, count: 258
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00
0 Kudos

43 Views
Specialist II
FP: McuDesc invalidated.
GDI:   DiExecResetChild()==> DI_OK
Reset Command File execution: .\cmd\HCS08_OpenSourceBDM_reset.cmd
executing .\cmd\HCS08_OpenSourceBDM_reset.cmd

!// After reset the commands written below will be executed
GDI:   Reading Register PC (id:0):
GDI:   DiRegisterRead()==> DI_OK
GDI:   PC (id:0) -> 0x0E000
RESET
GDI:   Reading Register PC (id:0):
GDI:   DiRegisterRead()==> DI_OK
GDI:   PC (id:0) -> 0x0E000
GDI:   Reading Register SP (id:1):
GDI:   DiRegisterRead()==> DI_OK
GDI:   SP (id:1) -> 0x0FF
GDI:   Reading From Memory Address: 0x00, count: 18
GDI:   DiMemoryRead()==> DI_OK
GDI:   20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1F 00
GDI:   Reading Register A (id:2):
GDI:   DiRegisterRead()==> DI_OK
GDI:   A (id:2) -> 0x07F
GDI:   Reading Register H (id:4):
GDI:   DiRegisterRead()==> DI_OK
GDI:   H (id:4) -> 0x00
GDI:   Reading Register X (id:3):
GDI:   DiRegisterRead()==> DI_OK
GDI:   X (id:3) -> 0x00
GDI:   Reading Register CCR (id:5):
GDI:   DiRegisterRead()==> DI_OK
GDI:   CCR (id:5) -> 0x00
GDI:   Reading From Memory Address: 0x014, count: 364
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00
done .\cmd\HCS08_OpenSourceBDM_reset.cmd

Reset command file correctly executed.
GDI:   Reading From Memory Address: 0x014, count: 364
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00
Postload Command File execution: .\cmd\HCS08_OpenSourceBDM_postload.cmd
executing .\cmd\HCS08_OpenSourceBDM_postload.cmd

GDI:   Reading From Memory Address: 0x0FEFE, count: 258
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00
GDI:   Reading From Memory Address: 0x0E000, count: 256
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
!// After load the commands written below will be executed
GDI:   Reading Register PC (id:0):
GDI:   DiRegisterRead()==> DI_OK
GDI:   PC (id:0) -> 0x00
RESET
GDI:   Reading Register PC (id:0):
GDI:   DiRegisterRead()==> DI_OK
GDI:   PC (id:0) -> 0x00
GDI:   Reading From Memory Address: 0x00, count: 18
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   Reading Register SP (id:1):
GDI:   DiRegisterRead()==> DI_OK
GDI:   SP (id:1) -> 0x00
GDI:   Reading Register A (id:2):
GDI:   DiRegisterRead()==> DI_OK
GDI:   A (id:2) -> 0x00
GDI:   Reading Register H (id:4):
GDI:   DiRegisterRead()==> DI_OK
GDI:   H (id:4) -> 0x00
GDI:   Reading Register X (id:3):
GDI:   DiRegisterRead()==> DI_OK
GDI:   X (id:3) -> 0x00
GDI:   Reading Register CCR (id:5):
GDI:   DiRegisterRead()==> DI_OK
GDI:   CCR (id:5) -> 0x00
GDI:   Reading From Memory Address: 0x014, count: 364
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00
done .\cmd\HCS08_OpenSourceBDM_postload.cmd

Postload command file correctly executed.
GDI:   Reading From Memory Address: 0x012, count: 2
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00

FP: McuDesc invalidated.
FP: FLASH parameters loaded for MC9S08QG8_V11(NVMIF2 rev 3) from J:\Freescale\prog\FPP\mcu1019.fpp
GDI:   Reading From Memory Address: 0x01800, count: 20
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   Writing To Memory Address: 0x01802, count: 1
GDI:   00
GDI:   DiMemoryWrite()==> DI_OK
GDI:   Reading From Memory Address: 0x01802, count: 1
GDI:   DiMemoryRead()==> DI_OK
GDI:   D2

FP: Start checking speed.

FP: Begin writing Info applet code.
GDI:   Writing To Memory Address: 0x080, count: 122
GDI:   00 00 00 00 18 2C E7 D4 01 00 9B C6 18 02 A4 7F C7 18 02 45 00 FA 94 0E 88 3C 55 84 96 00 BB 55
GDI:   84 89 8B 55 86 9F 8B 95 EB 02 E7 02 86 E9 01 87 EE 02 8A AF FF 96 00 C2 A7 02 45 00 84 F6 4C 26
GDI:   12 65 FF FF 27 09 AF 01 65 FF BF 27 F9 20 EE A6 02 B7 89 82 20 FD 45 00 00 AF 01 35 82 65 00 00
GDI:   26 F7 55 80 AF 01 35 80 20 EC 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   DiMemoryWrite()==> DI_OK
GDI:   Reading From Memory Address: 0x080, count: 122
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 18 2C E7 D4 01 00 9B C6 18 02 A4 7F C7 18 02 45 00 FA 94 0E 88 3C 55 84 96 00 BB 55
GDI:   84 89 8B 55 86 9F 8B 95 EB 02 E7 02 86 E9 01 87 EE 02 8A AF FF 96 00 C2 A7 02 45 00 84 F6 4C 26
GDI:   12 65 FF FF 27 09 AF 01 65 FF BF 27 F9 20 EE A6 02 B7 89 82 20 FF 45 00 00 AF 01 35 82 65 00 00
GDI:   26 F7 55 80 AF 01 35 80 20 EC 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

FP: Applet readback error.

FP: Could not write Info applet.

FP: Checking speed failed.

FP: McuDesc invalidated.
GDI:   Reading From Memory Address: 0x00, count: 18
GDI:   DiMemoryRead()==> DI_OK
GDI:   20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1F 00
GDI:   Reading From Memory Address: 0x012, count: 2
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00
GDI:   Reading From Memory Address: 0x014, count: 108
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 C0 00 00 00 04 00 00 20 00 00 00 00 00 00 00 80
GDI:   00 00 00 00 04 40 80 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 EE E6 EF E7 21 97 5F 9F 4C 48 40 35 00 82 0A 00 FF FF 6E DA
GDI:   7F 7F FF FF 0C 80 6D C4 04 90 0D 0C
GDI:   Writing Register: PC (id:0): 0x0E000
GDI:   DiRegisterWrite()==> DI_OK

FP: McuDesc invalidated.
GDI:   Reading Register PC (id:0):
GDI:   DiRegisterRead()==> DI_OK
GDI:   PC (id:0) -> 0x0E000
GDI:   Reading From Memory Address: 0x0E000, count: 256
GDI:   DiMemoryRead()==> DI_OK
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
GDI:   Reading From Memory Address: 0x0FA, count: 262
GDI:   DiMemoryRead()==> DI_OK
GDI:   38 30 00 00 09 10 BC 75 BD EE FF B6 F7 D7 04 15 10 03 00 BC 05 AE C6 FF FF B8 3E CE 3E 63 28 42
GDI:   24 00 0A 00 04 10 EB 7F FF 7B FF FF 6E 66 24 04 04 44 10 70 01 8C FF F7 F5 FE BC E6 5E 76 81 80
GDI:   A4 C4 30 0E 1F C2 C7 5B FF 9F D7 D7 58 7F 1A 05 81 80 00 82 24 42 FF FE FF FF EE BF 4B FF 45 0A
GDI:   10 00 08 40 60 C2 9F FB 4B DF FF FB BB CC 50 12 81 20 00 48 49 8C AA B3 B7 FB 3F 2B 6B 6B 20 71
GDI:   41 02 08 60 04 0C D9 D2 DE 9E FB BB BF D6 4A 00 18 52 02 62 21 2C 9A 48 64 8E 7F FF 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00
GDI:   Reading From Memory Address: 0x0FEFE, count: 258
GDI:   DiMemoryRead()==> DI_OK
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GDI:   00 00

===========================================================================
Somehow I still get this error....

FP: McuDesc invalidated.
Also, sometimes I get error like this on the coomand window

Illegal_ BP

and also



Does anyone know what that means?

In the HCS08 Open Source BDM > Show status

I still get

BDM Status Reg: 0x00 (secured?), is it normal for the Non Volatile Memory Control not to show up MCU speed?




Apology for the long post.......


Message Edited by Learner on 2008-01-29 10:29 AM
0 Kudos

43 Views
Specialist II
Just want to report back, I followed the DEMO9S08QG8_SCH_C.pdf and added a pull-up resistor to the BKGD pin and now I am able to read and write to the memory, registors, have tested with turn on and off LEDs on Port B.

The steps are

1. Ground BKGD pin with pull up resistor
2. Click on Debug in IDE
3. HCS08 Open Source BDM Setup window opens
4. Power off and on QG8, unground BKGD pin and connect to pin 1 of BDM port
5. click OK on the HCS08 Open Source BDM Setup window
6. Debugger loads cmd files......e.g (HCS08_OpenSourceBDM_Erase_Unsecure.cmd)
7. Error message
 
8.Source window loads and display main.dbg file
9. WB 0x2..0x3 0xFF
10. Able to turn on/off LEDs on Port B

I think the debugger is communicating to the QG8 to some extent but not fully functional, I still get this Unknown($1301)



When I click on HCS08 Open Source BDM -> Flash

I get this



then this



then this



So I can not load into Flash still....

any ideas?
0 Kudos

43 Views
Senior Contributor IV
Hi all,

Please follow up this post in this location.

0 Kudos