cancel
Showing results for 
Search instead for 
Did you mean: 

BlueNRG-MS image structure

kukushonok
Associate II
Posted on May 25, 2016 at 14:08

Hello,

Please help to clarify the following...

I would like to do script to merge image file with required ifr config. To check my tools I have used ''bluenrg_img_converter.exe'' converter provided ST.

So I have found that this converter distorts four bytes of the original firmware (b'BLUE' -> b'FFFFFFFF'') because original image realy has 'BLUE' on this place.

0690X00000602e7QAA.jpg

original image (bluenrg_7_1_e_Mode_2-32MHz-XO32K_4M.img)

0690X00000602eCQAQ.jpg

Could you explain this moment

Regards,

Andrei Kukenov

bluenrg image bluenrg-ms

2 REPLIES 2
hardware
Associate II
Posted on May 26, 2016 at 00:04

This is what is called the Blue FLAG in the documentation. The normal flashing process is:

- erase the memory (fills it with FF)

- write the firmware, the firmware image purposely doesn't write the flag

- read back the written firmware and do the CRC calculations and checks

- write the flag using the ACI_HAL_UPDATER_RESET_BLUE_FLAG command

Note that the chip will not boot if the flag is not set properly, instead the bootloader will start with the ACI_BLUE_INITIALIZED_EVENT event and Reason_Code = 0x03: 'Updater mode entered due to bad Blue Flag'.

Have a look at the BlueNRG-MS_firmware_update.py script in your BlueNRG DK 1.9.0\Application\scripts\Firmware_update folder.

Hope this helps 🙂

kukushonok
Associate II
Posted on May 26, 2016 at 09:03

Hello Christian

Thanks a lot for your  help!!!

Please can you provide me documentation with description of image structure

Regards,

Andrei Kukenov