Downloading throught UART clarification

5 posts / 0 new
Last post
valex05
Offline
Last seen:5 years 6 months ago
加入ed:2015-02-05 15:29
Downloading throught UART clarification

Hi all,

I'm designing a prototype which includes the DA14580. I'm currently developing an interface board to enable an UART programmation in my project.
Here is what I want to achieve :

Programming through UART
Power reset (not the button)

I've seen in the AN-B-001 document, that the bootloader length is about 150 ms.

Plus, the AN-B-20 specifies this chain of event to trigger the programmation :

1. The interface board supplies input voltage to VBAT3V (buck mode) or VBAT1V (boost mode).
2.VPP的接口板供应6.8 V。
3. The interface board enables the UART RX and TX signals to the DA14580

On my interface board, these actions are to be done manually (jumpers ...). But I'm assuming that between the first and the third action, the time span has to be less than 150 ms ?

I've got two solutions :
Adding a reset button which allows performing the 3 first steps manually and start the boot loader again after pushing the button.
Don't add any button (would be better), and perform the 3 first steps with an an MCU in order to achieve it in less than 150 ms.

Are my assumptions right ?

Thanks in advance for your help !

Keywords:
JE_Dialog
Offline
Last seen:3 days 19 hours ago
Staff
加入ed:2013-12-05 14:02
Hello Valex, this really

Hello Valex, this really depends what you are trying to do : booting from UART should not be confused with using the UART interface to program the device in a production environment.

If you are simply trying to boot from UART (e.g. download to SRAM and run), this is very different from programiming the device NVDS and OTP through the UART.

Which one are you looking to achieve ?
BR JE_Dialog

valex05
Offline
Last seen:5 years 6 months ago
加入ed:2015-02-05 15:29
Actually, if i can do both it

Actually, if i can do both it would be great, but programming NVDS and OPT through UART is what I'm trying to achieve.

JE_Dialog
Offline
Last seen:3 days 19 hours ago
Staff
加入ed:2013-12-05 14:02
Hello Valex05,

Hello Valex05,

your assumptions are correct, but the 150mS limit is a boot time of the 14580 ,not a download time. Note that also the sequence of how you apply the Vpp is also key, as described in AN-B-020. You can use smartsnippets and a BASIC board to do this : using the hardware of the BASIC board and wiring across to your target board is one option, the other is to generate an interface board as described in the appendix of the apps note AN-B-020.

To boot from UART, then you can program a secondary bootloader into OTP of the device (please see secondary bootloader application note).

Using a pushbutton isn't recommended..an MCU would be a better approach. BR JE_Dialog

BR JE_Dialog

valex05
Offline
Last seen:5 years 6 months ago
加入ed:2015-02-05 15:29
Thanks for your response.

Thanks for your response.

To use the secondary bootloader, I can't download the corresponding file since It is restricted ...

Just for me to understand, when using the basic board to program.
I disconnect Tx and RX from the onboard DA14580 and plug them to mine.
I activate the VPP jumper J8, get 6.8V on pin TP2, and send it to my board. But 6.8V will also be applied on the VPP pin of the on board DA14580 (no risk to damage the onboard DA14580 ?).
Then I can use smart snippet on my board like I would do it on the on board DA14580.

Is that right ?

Thanks a lot for your previous response !