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.
已解决! 转到解答。
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
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
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
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>
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
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