Hello,
Can you please help address the below question?
If I use the BSL example script provided for the F5529 it works perfectly on the F5528 and I can load firmware into my chip. What I don’t like is that the firmware filename is buried in the script file (e.g. “RX_DATA_BLOCK .\firmware_1_00.txt”). I really want to specify the firmware file on the command line but I don’t see a way to do that. I could have a script file and a firmware file for each firmware version, but that’s a bit cumbersome and error prone.
Starting with the 3.2.0 version of BSL-Scripter you can execute individual BSL commands from the command line, so I wrote a batch file that mimics the example F5529 script file:
@echo off
BSL-Scripter.exe -g -i [USB] -n 5xx -b pass32_wrong.txt
BSL-Scripter.exe -g -i [USB] -n 5xx -b pass32_default.txt
BSL-Scripter.exe -g -i [USB] -n 5xx -w RAM_BSL_USB.txt
BSL-Scripter.exe -g -i [USB] -n 5xx -z [SET_PC, 0x2504]
timeout /t 3 /nobreak
BSL-Scripter.exe -g -i [USB] -n 5xx -b pass32_default.txt
BSL-Scripter.exe -g -i [USB] -n 5xx -w %1
BSL-Scripter.exe -g -i [USB] -n 5xx -z [SET_PC, 0x4400]
The %1 on the next to last line takes the firmware filename from the command line.
The batch file works just like the script until it gets to the command “-z [SET_PC, 0x2504]”. At that point I get a pop-up that says “BSL-Scripter.exe has stopped working”. This command is right out of section 3.1.17 of the BSL-Scripter manual. It seems like it should work.
Thank You,
Keith N.
AFA OH/wPA