DA14580 Basic Kit Flashing Firmware

⚠️
嗨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.
2 posts / 0 new
Last post
kqtrinh
Offline
Last seen:3年10个月前
加入:2016-08-24 00:17
DA14580 Basic Kit Flashing Firmware

嗨,

I use SmartSnippets to flash the DA firmware. Attached is a screenshot (Please change the .dpf extension to .png) of the UI which showed on the left is the binary of a firmware file while on the right was what read back from Flash after the DA firmware was flashed. As you can see, the first 8 bytes of the binary (70 50 00 00 00 00 78 14) read back from Flash was something else and it's not part of the FW file. Can you tell me what these 8 bytes of data is for and why do (maybe SmartSnippts inserted it) the DA MCU needs it?

I would like to store user data in flash at address after the DA Firmware. I am writing a custom UI to read/write flash which I got help from MT providing me the flash_programmer.bin communication protocol so I can write my own UI to write different user data to flash for our application code. My question is do I need to also insert this 8 extra bytes of data in front of the real user data that I intend for the application code?

Thanks,
--Khai

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 11:34
嗨kqtrinh,

嗨kqtrinh,

Those additional bytes are attached by smart snippets and are the header of your image, the 0x70 and 0x50 is what makes the image bootable, this is what the primary bootloader will see and understand that the image should be downloaded into the 580 and as soon as its downloaded the fw will start. The zero bytes are just reserved space used for padding and the last bytes is the size of your code (MS byte and LS byte). Regarding if its needed, yes they are as mentioned this is what the bootloader is looking for in order to boot. You can have a look at the AN-B-001-Booting from serial interfaces.pdf and UM-B-012 DA14580_581_583 Creation of a secondary bootloader.pdf.

Thanks MT_dialog