Loading Firmware from via UART

4 posts / 0 new
Last post
imalamoud
Offline
Last seen:1 month 12 hours ago
加入:2014-11-16 21:34
Loading Firmware from via UART

Hello,

We have implemented 14580 booting via UART as per AN-B-001 document part 6.2 from an external microcontroller.

The boot is at 115200 by P0_2 / P0_3.

The boot fails unless data bytes are spaced by about 2ms delays. The device reports bad CRC.

With delays boots fine but it causes long loading times.

What could be the reason for such behavior? How can we improve boot speed. Should we watch some other pins?

Thansk,
ilia

Device:
MT_dialog
Offline
Last seen:1 week 23 hours ago
工作人员
加入:2015-06-08 11:34
Hi imalamoud,

Hi imalamoud,

Yes 2ms delay spacing its a long time. I suppose that you are trying to download code on a custom pcb, what is the module you are using ? Can you place the 2ms delay only in the begging of the downloading ? Maybe at the begging of the downloading, before the da sees that from the specific uart is getting data, you get something corrupted. Also can you use the secondary bootloader, you can run the secondary bootloader from the Jtag and download your code from uart, place a breakpoint in the FwDownload() function and check what goes wrong.

Thanks MT_dialog

imalamoud
Offline
Last seen:1 month 12 hours ago
加入:2014-11-16 21:34
Hello,

Hello,

Yes, custom PCB.

Can you please be more specific on the loading pattern? I agree 2ms is a long time - but what is a minimal spacing requirement. If you don't have such parameter defined, can check at you end what spacing do you have when loading. Should we watch TX pin of 14580 during the payload phase of the boot for any signalling?

Do you have any document about that secondary bootloader I can use?

Thanks,
Ilia

MT_dialog
Offline
Last seen:1 week 23 hours ago
工作人员
加入:2015-06-08 11:34
Hi Imalamoud,

Hi Imalamoud,

You can refer to the doc UM-B-012 Creation of secondary bootloader.

根据手册AN-B-001 you should receive an STX = 0X02 signal and then follow the rest of the procedure with the ACK and NACK. There isn't any specific minimal spacing requirement as far as we know. Please have a look at the code of the secondary bootloader in FwDownload() function maybe this will help.

Thanks MT_dialog