S19 file flash error (using PEMicro USB Multilink)

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

S19 file flash error (using PEMicro USB Multilink)

跳至解决方案
3,953 次查看
leesp
Contributor I

I tried to flash MC9S08JM32 with PEMicro USB Multilink.

There is no error when I flash the myproject.abs file.

But when I tried to flash myproject.abs.s19, the following error occurs:

 

Postload command file correctly executed.
           ^
Error: unknown identifier
           ^
Error: expression expected (use BS ? to query syntax)
Stop at Function: No function with the name "main" was found.

Can anyone please help?

Thank you.

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,502 次查看
CrasyCat
Specialist III

Hello

 

I assume you are attempting to flash the .s19 file using the debug toolbar icon in CodeWarrior.

Am I right?

 

When attempting to debug an application the debugger will download the code (i.e program the flash), set a temporary breakpoint at function main and run the application till main function is reached.

 

When you are downloading a .s19 file, there are no debug information available, so the debugger cannot set a breakpoint at function main.

 

In order to remove the message you are seeing:

    - Start the debugger once

    - After flash programming is over, select File >  Configuration. The Configuration dialog is opened.

    - Switch to the Load tab

    - Uncheck Stop at Function.

    - If you just want to program the flash and do not want to start application automatically after downloading

      you can also uncheck Run after Successful load.

   - Click on OK.

 

The message should not show up for future attempt to download code to the board. 

 

Note that if you choose to download the .s19 file you will not be able to perform source level debugging for your application. Is that your intent? 

 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
9 回复数
2,503 次查看
CrasyCat
Specialist III

Hello

 

I assume you are attempting to flash the .s19 file using the debug toolbar icon in CodeWarrior.

Am I right?

 

When attempting to debug an application the debugger will download the code (i.e program the flash), set a temporary breakpoint at function main and run the application till main function is reached.

 

When you are downloading a .s19 file, there are no debug information available, so the debugger cannot set a breakpoint at function main.

 

In order to remove the message you are seeing:

    - Start the debugger once

    - After flash programming is over, select File >  Configuration. The Configuration dialog is opened.

    - Switch to the Load tab

    - Uncheck Stop at Function.

    - If you just want to program the flash and do not want to start application automatically after downloading

      you can also uncheck Run after Successful load.

   - Click on OK.

 

The message should not show up for future attempt to download code to the board. 

 

Note that if you choose to download the .s19 file you will not be able to perform source level debugging for your application. Is that your intent? 

 

CrasyCat

0 项奖励
回复
2,502 次查看
leesp
Contributor I

Hi CrasyCat,

Yes this is what I want.

What is the difference between *.abs and *.abs.s19 files, apart from the fact that one is binary and the other is text?

0 项奖励
回复
2,502 次查看
CrasyCat
Specialist III

Hello

 

The *.abs file is an ELF DWARF executable file. It contains application code and debug information.

This file is normally used inside of a debugger when you intend to debug the application.

 

The *.abs.s19 file is a S record file. It only contains Hex code that need to be loaded to memory.

It does not include any debug information.

This file is usually used for production flash programming.

 

CrasyCat

0 项奖励
回复
2,502 次查看
leesp
Contributor I

Dear CrasyCat,

I tried again, with the "Stop at Function" unchecked. I still got the following message in the Command window.

Is the flash successful or does it fail?

 

executing .\cmd\BDM_P&E_Multilink_CyclonePro_preload.cmd

!// Before load the commands written below will be executed
done .\cmd\BDM_P&E_Multilink_CyclonePro_preload.cmd

Preload command file correctly executed.
USB HCS08/HCS12 MULTILINK detected - Flash Version 5.81
executing .\cmd\BDM_P&E_Multilink_CyclonePro_postload.cmd

!// After load the commands written below will be executed
done .\cmd\BDM_P&E_Multilink_CyclonePro_postload.cmd

Postload command file correctly executed.
           ^
Error: unknown identifier
           ^
Error: expression expected (use BS ? to query syntax)
Stop at Function: No function with the name "main" was found.

in>

0 项奖励
回复
2,502 次查看
CrasyCat
Specialist III

Hello

 

The flash was successful.

The problem is that the debugger tries to set a breakpoint after successful download and that it fails.

 

Can you please check the file{Project}\cmd\BDM_P&E_Multilink_CyclonePro_postload.cmd?

Is this file empty of is there any command in there?

 

CrasyCat

0 项奖励
回复
2,502 次查看
leesp
Contributor I

Hi,

The only thing in the file is:

// After load the commands written below will be executed

 

Should I edit it?

0 项奖励
回复
2,502 次查看
CrasyCat
Specialist III

Hello

 

no Do not edit it.

 

Can you send me your project.ini file please?

 

CrasyCat

0 项奖励
回复
2,502 次查看
leesp
Contributor I
0 项奖励
回复
2,502 次查看
CrasyCat
Specialist III

Hello

 

The .ini file looks good there might be something some other place.

 

I would recommend you to submit a service request for that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.

CrasyCat

0 项奖励
回复