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:
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:
I suppose that you can skip those bytes and you can download only the .bin file.
Thanks MT_dialog
谢谢你,做uploading only the bin and it worked perfectly.