11 posts / 0 new
Last post
yachao
Offline
Last seen:6 years 3 months ago
加入:2014-06-04 03:39
otp programming

Hi, Dialog

i want a step to step file about how to burn the otp use jtag, and i have read the AN_B_020 DA14580 End product testing and programming guidelines file, but got some questions.

1. in this file, it talked about otp programming, but in my mind, it's use uart but not jtag, am i right?

2. how can i use jtag for otp grogramming? is there any file talk about it? more detail more better. i read the smartSnippets help file. there are some infomation about otp programming, but not a step to step resolution, such as how to deal with these NVDS_TAG_APP_BLE_ADV_DATA, NVDS_TAG_APP_BLE_SCAN_RESP_DATA, NVDS_TAG_DEVICE_NAME, NVDS_TAG_BD_ADDRESS things. and is otp image must burn first or any step is ok?

thanks

yachao
Offline
Last seen:6 years 3 months ago
加入:2014-06-04 03:39
嗨,华金,thanks very much

嗨,华金,thanks very much. i read the three files, but still got some questions

1, when in the process of otp burning, the power must keep on, can not interrupted, if power lost in this process for some reason, the DA14580 will be damaged and never be used again, right?

2. is the JTAG’s serial number unique for each JTAG, and has no relationship with the DA14580, right ?

3. if i use the smartSnippets CLI tools with JTAG, the command will be like this:
1st. SmartSnippets.exe - type booter - chip DA14580 - 01 -jtag jtag_serialNumber - file programmer_ES5.bin
2nd, SmartSnippets.exe -type otp -chip chip_version -jtag jtag_serialNumber -cmd write_custom_code -file filename -offset 0
3rd. SmartSnippets.exe -type otp -chip chip_version -jtag jtag_serialNumber -cmd write_header -file filename
right?

4. whtat's the programmer_ES5.bin related to? ie, if i am not use the DEV board Dialog provid, instead use my own, shall i change the programmer_ES5.bin? if yes, what should i do?

5. i read the UM-B-015, it's said The compilation option READ_NVDS_STRUCT_FROM_OTP can be used to define if the NVDS will be read from OTP or it will be initialized with hardcoded values by the application software. but i can't find the READ_NVDS_STRUCT_FROM_OTP, where i can find it? if i want it hardcoded, how should i change it?

thanks

yachao
Offline
Last seen:6 years 3 months ago
加入:2014-06-04 03:39
Hi, Dialog

Hi, Dialog

can you confirm my questions?

thanks

mohit3112
Offline
Last seen:10蒙特hs 1 week ago
Expert
加入:2014-08-04 13:45
Hi yachao,

Hi yachao,
Did you tried the above mentioned steps ? i am also trying to find a way to do otp using j-link plus programmer (by segger) , also the documentation AN_B_020 says that a interface board is required for loading code, is it the case for loading via uart or loading via jtag ?

Thanks

yachao
Offline
Last seen:6 years 3 months ago
加入:2014-06-04 03:39
Hi, mohit3112

Hi, mohit3112
the documentation AN_B_020 says that a interface board is required for loading code, is it the case for loading via uart or loading via jtag ?
I think it's the case for loading via uart.

Hi, joaquin
Thanks very much. i try it

BB_Dialog
Offline
Last seen:9 months 4 days ago
工作人员
加入:2013-12-05 14:44
Hi yachao,

Hi yachao,

indeed, it's for UART. For JTAG not needed.

Best regards, BB_Dialog.

yachao
Offline
Last seen:6 years 3 months ago
加入:2014-06-04 03:39
i tried with the SDK 3.0.6,

i tried with the SDK 3.0.6, and SmartSnippets GUI tool. use 3 board

first i set the DEVELOPMENT_DEBUG to 1, i got error message: Memory burning failed.
tried with the 3 board. same problem

then i changed the DEVELOPMENT_DEBUG to 0. first time i got: Failed clearing memory address 81FE8 and Memory burning failed
second time i got: Addittional error info at address 0x81FEC (MSB first): FF FF FF FE and Memory burning failed.
i tried with all the there board again, but it's the same.

then i tried with CLI tools , error message there.

what's the problem?

can you give me a very detailed instruction such like first doing what, second... third .... then it works.?

Thanks very much

yachao
Offline
Last seen:6 years 3 months ago
加入:2014-06-04 03:39
Hi,

Hi,

any help or advise?

thanks

yachao
Offline
Last seen:6 years 3 months ago
加入:2014-06-04 03:39
The problem is solved, thanks

The problem is solved, thanks for the help of dialog team.

i put my solution here, hopes to help anyone else who got the same problems

during the OTP burn, 6.8V must be connected to VPP.
the VCC should be connected before VPP, and be disconnected after VPP
The Application Flag 1 and Application Flag 2 should be set to Yes when burn the OTP header

thanks

JE_Dialog
Offline
Last seen:16 hours 5 min ago
工作人员
加入:2013-12-05 14:02
嗨Yachao,thanks for letting

嗨Yachao,thanks for letting us know you fixed the question and sharing your response. BR JE_Dialog

Hao Nguyen
Offline
Last seen:6 years 5 months ago
加入:2014-12-17 05:15
嗨Yachao,

嗨Yachao,

I'm a new one. I have some questions:
1/ What is pin assignment of OTP programming connector for DA14580?
2/ Can you show me the OTP programming dongle and GUI?

Thanks
Hao