Booting from UART, and byte final configuration

3 posts / 0 new
Last post
Jonas Freitas
Offline
Last seen:3 years 2 months ago
加入:2014-11-14 12:23
Booting from UART, and byte final configuration

Boa tarde,

A algum tempo atraz abri o topico :
http://support.dialog-semiconductor.com/booting-uartusing-microcontrolle...

This was a question, why the smart snippets adds at the end of the byte code .bin 0x01,0x02 and 0x04, and sometimes 0x00,0x00, 0x00,0x00,0x01,0x02 and 0x04, when you booting the serial.
when I asked the question, Joacim these replied:

that three bytes are appended to the software image indicating the GPIO VPP/UART settings. This is just a trick to customize the flash_programmer firmware for different configurations without having to have one binary for each configuration.

* so why is sometimes added four 0x00?
* And really it is necessary to add these bytes or I can send only the bytes of .bin?

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi Jonas Freitas,

Hi Jonas Freitas,

The extra bytes that you see 0x01, 0x02, 0x04 indeed are indicating the the Vpp pin and the UART configuration and are appended by smart snippets for use only by the flash_programmer. The extra four 0x00 that are appended has to do with alignment of those additional bytes. The flash programmer expects those bytes in a specific offset in the memory, and the alignment of that offset is 8 bytes.

To be more clear if the size of the image in bytes is multiple of 8:

  • Then you wont see zero padding since the next memory position will be 8-byte aligned.
  • In any other case it will be zero aligned,

I suppose that you can skip those bytes and you can download only the .bin file.

Thanks MT_dialog

Jonas Freitas
Offline
Last seen:3 years 2 months ago
加入:2014-11-14 12:23
谢谢你,做uploading only

谢谢你,做uploading only the bin and it worked perfectly.

Topic locked