DA14586 on-board firmware update via host mcu

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
ibbkoeln
Offline
Last seen:3 months 2 days ago
加入:2016-03-18 10:34
DA14586 on-board firmware update via host mcu

Hi,

I want to realize an on-board firmware update function for the 14586 from host mcu via direct access to SPI. Can I use the addresses in the hex files created from Keil direct without any modifications to write progamm data to flash or do I have to make some address translations?

Thanks and regards,
Oliver

Keywords:
Device:
Qinjiny_Dialog
Offline
Last seen:1 week 1 day ago
Staff
加入:2016-11-01 05:47
I believe you have to add a

I believe you have to add a header to the hex file so that DA14586 can boot from SPI flash at least.

ibbkoeln
Offline
Last seen:3 months 2 days ago
加入:2016-03-18 10:34
谢谢你的回应。是

谢谢你的回应。是there any docs I can derive header from?

Regards,
Oliver

Qinjiny_Dialog
Offline
Last seen:1 week 1 day ago
Staff
加入:2016-11-01 05:47
我不确定about the

我不确定about the detailed derivation but you can check mkimage tool under the utilities folder of SDK to get a picture of what has be done to prepare a hex file into bootable image.

ibbkoeln
Offline
Last seen:3 months 2 days ago
加入:2016-03-18 10:34
Thanks, that points me to a

Thanks, that points me to a (perhaps) much better solution:

  1. I convert my hex file to a binary file with hex2bin.exe
  2. I convert this binary with the 'single' option to a image file
  3. I program the binary data starting with address 0x0000 to internal SPI flash

Is this correct?

Regards,
Oliver

Qinjiny_Dialog
Offline
Last seen:1 week 1 day ago
Staff
加入:2016-11-01 05:47
Hi Oliver,

Hi Oliver,

Yes, image on flash starts from 0 addr.

Please update here if any issue encountered and we're willing to help