Modify sps_device_583.bin before sending to DA14583

2 posts / 0 new
Last post
Richard Surprenant
Offline
Last seen:3 years 7 months ago
加入:2016-07-26 16:37
Modify sps_device_583.bin before sending to DA14583

Support,
I have a host processor that will be downloading the sps_device_583.bin to a DA14583-EVB and eventually the chip in the final design. I would like to find the device address in the code as a string, something like"BLE-555555' and change it to make it unique, like this 'BLE-516374' depending on the serial number of the host. I am already able to download sps_device_583.bin to the DA14583-EVB, but when I do the modification as described above, the code no longer works.

Question:
Is there some sort of checksum in the bin file that is now failing because I modified the bytes?
If so, can you tell me how I can update the checksum and or work around this challenge somehow.

Thanks again for your continued support. It is awesome.
Rich

Device:
MT_dialog
Offline
Last seen:4 days 23 hours ago
工作人员
加入:2015 - 06-08 11:34
Hi Richard,

Hi Richard,

I dont quite get what the "i would like to find the device address in the code as a string" means, you would like to process the .bin file in your MCU before downloading it to the 580 in order to change for example the bd address or the name of the fw ? Is that correct ? In that case at least at the .hex file that is produced by keil follows the intel standard and that includes a checksum at the end of each record line, nevertheless this checksum as far as i can tell its not passed in the .bin file that is produced (i ve manipulated directly a .bin file and changed the last byte of the bd address of the an SDK example, the example worked with a changed bd address).

Regarding the booting procedure from the primary bootloader there is a length indication and a CRC check when the .bin file is downloaded in the sysram during the booting procedure from the primary bootloader and if the CRC doesn't match the downloading procedure gets cancelled.

Thanks MT_dialog