Hi,
Sometime back I bought Freescale 1321xNSK-Network Starter Kit. I am unable to download the code to the micocontroller. I am getting "Error: Cannot enter background mode"
This is the hardware and software Details:
1. CodeWarrior - Version 5.1
2. P&E USB Multilink BDM - Firmware Ver 5.79
3. CPU - MC9S08GB60
4. Micro - 8 bit HCS08 - 13213
My mail id is srinath.bharadwaj@gmail.com
I have attached a error screen shot too.
This is the log in the command window:
executing C_layout.hwl
!OPEN source 0 0 60 39
NO CONNECTION
!Source < attributes MARKS off
!OPEN assembly 60 0 40 31
!Assembly < attributes ADR on,CODE off,ABSADR on,SYMB off,TOPPC 0xF88C
!OPEN procedure 0 39 60 17
!Procedure < attributes VALUES on,TYPES off
!OPEN register 60 31 40 25
!Register < attributes FORMAT AUTO,COMPLEMENT None
!OPEN memory 60 56 40 22
!Memory < attributes FORMAT hex,COMPLEMENT None,WORD 1,ASC on,ADR on,ADDRESS 0x80
!OPEN data 0 56 60 22
!Data:1 < attributes SCOPE global,COMPLEMENT None,FORMAT Symb,MODE automatic,UPDATERATE 10,NAMEWIDTH 16
!OPEN data 0 78 60 22
!Data:2 < attributes SCOPE local,COMPLEMENT None,FORMAT Symb,MODE automatic,UPDATERATE 10,NAMEWIDTH 16
!OPEN command 60 78 40 22
!Command < attributes CACHESIZE 1000
!bckcolor 50331647
!font 'Courier New' 9 BLACK
!AUTOSIZE on
!ACTIVATE Data:2 Command Procedure Data:1 Source Register Assembly Memory
done C_layout.hwl
Loading Target ...
Windows NT detected.
USB HCS08/HCS12 MULTILINK detected - Flash Version 5.79
Frequency change to ~0hz.
USB HCS08/HCS12 MULTILINK detected - Flash Version 5.79
Frequency change to ~0hz.
Frequency change to ~0hz.
Frequency change to ~0hz.
Error: Can not enter background mode.
Frequency change to ~0hz.
USB HCS08/HCS12 MULTILINK detected - Flash Version 5.79
Device is 9S08GB60.
Mode is In-Circuit Debug.
IO registers loaded for MC9S08GB60 from C:\Program Files\Freescale\CodeWarrior for HC08 V5.1\prog\REG\MCU1005.REG
Error: The debugger is currently not able to run
due to loss of contact with hardware.
No Link To Target
in>
I'd suspect hardware issue. I'd suggest you to check if the BDM connector correctly plugged. Isn't it reversed? Are all the BDM connector pins correctly interconnected? Does the yellow and blue leds light?
Stanish
Hi Stanish,
Thanks for the reply.
Both blue and yellow LEDs are glowing. I suspected might be power is not going to micro. But I checked with oscilloscope. There is sufficient voltage available at VCC pin of micro.
BDM connector is fine because blue led is on. If it is reversed, the yellow led would not glow. In my case yellow led is on. So I think the connection between target and BDM is good.
By any chance did you look at the error screen shot which was attached. It says MCU Reset Line : Low(in red color) and MCU voltage : Vcc > 1.0Volts.
Any idea what this means?
I would bet on reset pin. Seems to be constantly low so the MCU is still in the reset state and therefore debugger cannot enter background debug mode. Try to figure out what is causing RESET pin low.
Hi,
Sadly my starter kit is still not working. I am still not able to download the code to the micro. I am just testing whether I can download the program or not. And this is my code. It has just main function.
void main(void) {
EnableInterrupts; /* enable interrupts */
/* include your code here */
for(; {
__RESET_WATCHDOG(); /* feeds the dog */
} /* loop forever */
/* please make sure that you never leave main */
}
This code is nothing but auto generated by code warrior itself. I am trying to download this into micro. Out of 'n' no. of times i have tried, i have able to download the code only once. And that was the very first time i flashed. After that it is not happening at all.
Is there is something wrong with the code itself? Is there any way to erase the memory without downlaoding the code?
Regards,
Srinath Bharadwaj