9S08QG8 failed to debug "ERROR 18 during script !"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

9S08QG8 failed to debug "ERROR 18 during script !"

Jump to solution
1,941 Views
w_tension
Contributor III

Error happens when programming.

It's OK several days ago, or if I create a minimum project.

Compiler says no error, just several warnings in FlashProg assembly code.

Hardware: P&E USB-ML-12

OS: Win7 x64 CodeWarrior 10.7

Console window:

 

Error during programming.

ERROR 18 during script!

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
1,372 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

hi,

one of the possible reason is that s-record file contains records that does not belong to flash – check the linker file and source code if everything is ok.

if you couldn't solve the problem on your side, you can upload your demo project here. I will check it directly from my side.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

2 Replies
1,372 Views
w_tension
Contributor III

Seems caused by Freescale official flash program code DoOnStack.asm,

If I exclude it from project, it became normal.

;******************************************************************************
; Freescale Semiconductor Inc.
; (c) Copyright 2004-2006 Freescale Semiconductor, Inc.
; (c) Copyright 2001-2004 Motorola, Inc.
; ALL RIGHTS RESERVED.
;**************************************************************************//*!
; $File Name: doonstack.asm$
; $Last Modified By: r30323$
; $Version: 1.0.3.0$
; $Date: May-27-2009$
; @brief DoOnStack.asm (see HCS08RM.pdf for details)
;******************************************************************************

But I don't know why?

0 Kudos
Reply
1,373 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

hi,

one of the possible reason is that s-record file contains records that does not belong to flash – check the linker file and source code if everything is ok.

if you couldn't solve the problem on your side, you can upload your demo project here. I will check it directly from my side.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------