Other Parts Discussed in Thread: CC2650MODA, CC2650
Tool/software: TI-RTOS
I am performing Firmware update for MSP432 via CC2650MODA on a custom board. I get OAD image from CC2650 and store same on EEPROM present on my custom board (Image is more than 128KB, so it doesnt fit in internal flash of MSP432). I wrote custom bootloader (in same lines of "OAD Example Bootloader" shared by TI) to be loaded @ 0x0000 & application will start @0x2000 (Following same memory organization as OAD example of TI). I tried loading binary image of my custom bootloader to 0x2000 but when i try to flash the same i get -
"Reset on Target Occured"
The OAD example documentation (
) has below line -
"A compiled binary bootloader is included in this code example (and placed into a special memory location) within the oad_bootloader.c file. The source code for this bootloader can be found in the examples/nortos/MSP_EXP432P401R/oad_bootloader_source directory"
I compiled example oad_bootloader.c source code and compared the BINARY with binary bootloader DATA array present in oad_bootloader.c (const unsigned char oad_bootloader[]). They are not same and on careful inspection of data array , I see a section of 256 bytes added to top of that data array and after these 256 bytes, the compiled bootloader is placed. However even the next section is also not bit-exact but i feel its same with minor changes.
Can anyone let me know -
1) Why DATA ARRAY is not matching with BINARY generated through the code shared by TI?
2) How to correctly generate & place my custom bootloader code as DATA ARRAY for OAD?
Thanks in advance.