Reduced time for UART Bootloader(AN68272)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

We are considering UART Bootloader with reference to AN 68272.

However, the time required for writing is long.

Therefore, I set the baud rate to 57600, but it still takes 8 minutes.

I confirmed the source code to speed up.

On line 199 in UART_BOOT.c,
"CyDelay (UART_BYTE 2 BYTE_TIME_OUT);" has a waiting time of 25 ms written.

We tried writing with this setting at 2 ms.
With this change, the writing that took 8 minutes has been shortened to about 50 seconds.
It is working without error.

Please confirm that this change is not a problem.

And do you have any material that understands why this is set to 25 ms?

0 Likes
1 Solution
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

Hello Mineda-san, Byte to Byte time out for detecting end of block data from host. This has to be set to a value which is greater than the expected maximum delay between two bytes during a block/packet transmission from the host. User needs to account for the delay in hardware converters while calculating this value, if you are using any USB-UART bridges. Regards, Geon

View solution in original post

5 Replies