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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,658 次查看
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!

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
2,089 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
2,089 次查看
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 项奖励
回复
2,090 次查看
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!
-----------------------------------------------------------------------------------------------------------------------