Hi,We would like to create a single .hex file containing the bootloader (a modified version of SBL) and the application code. This will allow us to do an initial flashing during the production of our product.I saw that the script "cc254x_ubl_pp.bat" allows to do that but no documentation is provided about the "ProdHex" option. Moreover I don't understand the following comments in the script::: %5 (Required for "ProdHex") the number of lines in the UBL hex file to pre-pend to the:: application image (the remainder of the UBL hex file will be appended to the application).:: Currently UBL is only using the first page to intercept the IVEC's, so 128 + 1 = 129 to:: include the hex file header line (which is stripped from application image when appending it:: to this root area of the UBL). > Is that the same in the case of SBL?:::: Note that the above serial boot loader corresponding to the RPC transport of the application:: build target (e.g. CC2540F256, USART0) must have been built prior to this batch file execution.:: This is accomplished with the 'Pre-build command line' option invoking the cc254x_ubl_pre.bat:: with the corresponding arguments as specified in that batch file.I don't understand that comment at all. Moreover the cc254x_ubl_pre.bat script is not provided.
HI,
i also don't unterstand what to do here.
also %4 is very confusing. I need to get the UBL working for an prototype product which is planed to be mass produced, but the documentation is not very helpfull :-(
Please Help me
Have you tried programming the bootloader from the SmartRF programmer, loading the application via USB/serial, then reading back the entire flash by SmartRF? Another way is to write a small PC app that can merge the two hex files
Hi,
yes, and that works fine. I have only problems with that automatic .hex generation directly from IAR. But i'm on the way to solve that. I've seen some things which i can try.
If this will not work i will merge the hex files by myself.
Thank you.
The SmartRF Flash Programmer supports the .hem format, which is basically a Intel hex merge file. It can be used to program two flash images as one, which in turn can be programmed using the Flash Programmer command line interface.
See Flash Programmer <install dir>\HemFileExample for, well, an example :)
Br,ABO
PS. You won't create a single hex image, but you can program two images using a single call to the SmartRF Flash Programmer CLI.