I am using batch burner to generate .bin file,now I want to acquire the path of file with bbl ,but I did not find the information,the command as follows.
• baudRate: Baudrate for Serial Communication
• busWidth: Data Bus Width
• CLOSE: Close Open File or Communication Port
• dataBit: Number of Data Bits
• destination: Destination Offset
• DO: For Loop Statement List
• ECHO: Echo String onto Output Window
• ELSE: Else Part of If Condition
• END: For Loop End or If End
• FOR: For Loop
• format: Output Format
• header: Header File for PROM Burner
• IF: If Condition
• len: Length to be Copied
• OPENCOM: Open Output Communication Port
• OPENFILE: Open Output File
• origin: EEPROM Start Address
• parity: Set Communication Parity
• PAUSE: Wait until Key Pressed
• SENDBYTE: Transfer Bytes
• SENDWORD: Transfer Word
• SLINELEN: SRecord Line Length
• SRECORD: S-Record Type
• swapByte: Swap Bytes
• THEN: Statementlist for If Condition
• TO: For Loop End Condition
• undefByte: Fill Byte for Binary Files
There are not the related command which I need ,can you help me ?thank you!
Hello,
You might have a look at S-Record Manipulation with GNU objcopy and Burner Utility | MCU on Eclipse .
To open the *destination* file you write something like this:
OPENFILE
"Merge.S19"
To read from the *source* file you write something like this:
SENDBYTE 1
"Part1.S19"
I hope this helps,
Erich
thank you for your help, I know how to generate .bin file ,as follows:
OPENFILE "C:\Users\zjxt\Desktop\TCU\bin\TCU_SECTION2.bin"
format=binary
busWidth=1
undefByte=0xff
origin=0xD800
destination = 0
len=0x800
SENDBYTE 1 "C:\Users\zjxt\Desktop\TCU\bin\Project.abs"
origin=0xDF8000
destination = 0x000800
len=0x4000
SENDBYTE 1 "C:\Users\zjxt\Desktop\TCU\bin\Project.abs"
CLOSE
but I do not like to add the path every time,I want to use a parameter to get the path of .bll file and store the .bin file with this path.could you unstand my mean.I hope you can help me ,thank you ,Best regards.
Hi,
You're using CW for MCU v10.6.x and the burner.exe tool.
Am I right ?
This tool is used to generate a Srecord, IntelHex or binary file from an abs file.
The tool can be used in GUI or in command line.
The BBL file contains the burner configuration.
By default if you create an example for S08, a burner.bbl is included in the project.
When the application is built, the burner is launched at the end and will create the .s19 file.
This is an example:
'Executing target #5 test_burner.abs.s19'
'Invoking: S08 Burner'
"E:/Freescale/CW MCU v10.6.4/MCU/prog/burner" -ArgFile"test_burner.abs.args" -f="../Project_Settings/Linker_Files/burner.bbl" -env"ABS_FILE=test_burner.abs"
'Finished building: test_burner.abs.s19'
' '
By default you must define the bbl file used.
Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
This is the similar for HC12 v5.1 too.
For my understanding if you call the burner in the folder contained the abs file is located (C:\Users\zjxt\Desktop\TCU\bin\) the generated file will be placed in same folder.
thank you for your help,my environment is CodeWarrior 。I will try your solution,I just want to gain the path of file (xxx.bll)and generate .bin file which related the path which we get。thank you, Best regards!