If I want to lock the OTP memory after programming so it can't be modified anymore, how do I do that? I want to make sure it can't be modified after it has been programmed. 我是否要启用应用程序标志并禁用OTP报头中的JTAG来实现这一点?
You are correct, if you set the application flag in the OTP header you will disable the UART/SPI adn I2C interface. If you at the same time disable the JTAG there is no interface active on the DA14580.
Yes if you burn the application flags and you didnt disable the JTAG enable field in the OTP, you are not going to be able to boot via uart in order to burn the OTP and the only way is through JTAG. About the application flags they dont serve a different purpose they just indicate to the boot rom code that there is an application in the OTP. Both of them are read by the Boot ROM software when start executing.
I tested that if i connect my board via UART, all the SmartSnippets function cannot work. I connect my board via JTAG, all the SmartSnippets function can work, is it correct?
And one more question, if I use 2V power, which pin should I use? VBAT1V or VBAT3V? or both is ok because DA14580 have DC-DC converter?
According to Table 266 in DA14580 datasheet, is it means that DA14580 recommanded working power is 1.41V?
About the UART, in order to operate from uart (for downloading code, connect/burn/read OTP) the corresponding UART ports should be connected in the proper baud rate (every uart pin pair has a fixed baud rate). You can set the UART ports from the board setup option in smart snippets, then the ss will require to reset your board in order to download the appropriate program from read/burn the OTP or download your code via UART.
Regarding operating the 580 with 2V please follow the following link
Yes I know about the function of SmartSnippets. My question is that after I burn application flags,it only inactive the UART port, I can still use JTAG to use all the function?
I read the text in the link, so if I want to use OTP, the best power for DA14580 is 2.5V (according to Figure 10 in DA14580 datasheet) ?
If you burn the application flags you wont be able to download code through UART (Smart Snippets UART booting) or any other serial interface (SPI/I2C) since the bootloader is going to be disabled and booting is done only through the OTP. You are able to use the peripherals after the booting from OTP is done. But you can use the JTAG connection to donwload code, burn your flash, burn additional flags in OTP.
Regarding the OTP, the lowest safe voltage in order for the OTP to be read when the system boots up is about 2.5V and also provides a bit better efficiency of the dcdc converter.
Yamazaki-san,
是的,你可以从JTAG OTP更新。在这种情况下,please enable JTAG flag in OTP header.
谢谢,
对话支持团队
Thank you for your quickly coment.
However, although OTP programmer (in SmartSnippets rev2.1) is not supporting JTAG I/F, how should we use OTP programmer with JTAG?
Yamazaki-san,
currentr SmartSnippets不支持从JTAG向上更新OTP的功能。它将在未来的SmartSnippets中实现。
谢谢,
Dialog Support
If I want to lock the OTP memory after programming so it can't be modified anymore, how do I do that? I want to make sure it can't be modified after it has been programmed.
我是否要启用应用程序标志并禁用OTP报头中的JTAG来实现这一点?
嗨,乔乔
You are correct, if you set the application flag in the OTP header you will disable the UART/SPI adn I2C interface. If you at the same time disable the JTAG there is no interface active on the DA14580.
Regards
TN_Dialog
What is "disable the UART/SPI and I2C interface" means? Can I still get data from an I2C accelerometer?
Hi daniel59,
当然,您可以使用I2C接口,我的同事的意思是,如果您在OTP中烧录应用程序标志,那么主引导序列将被禁用(请检查SPI/UART/I2C过程中的有效映像,以便引导)。
Thanks MT_dialog
Hi MT_dialog,
Thanks for your reply.
所以,如果我已经烧录了应用程序标志,唯一可以更改hex文件的方法就是使用JTAG并烧录OTP内存?
And why there is 2 application flags? Do they have different usage?
Daniel
Hi daniel59,
Yes if you burn the application flags and you didnt disable the JTAG enable field in the OTP, you are not going to be able to boot via uart in order to burn the OTP and the only way is through JTAG. About the application flags they dont serve a different purpose they just indicate to the boot rom code that there is an application in the OTP. Both of them are read by the Boot ROM software when start executing.
Thanks MT_dialog
Hi MT_dialog,
I tested that if i connect my board via UART, all the SmartSnippets function cannot work. I connect my board via JTAG, all the SmartSnippets function can work, is it correct?
And one more question, if I use 2V power, which pin should I use? VBAT1V or VBAT3V? or both is ok because DA14580 have DC-DC converter?
According to Table 266 in DA14580 datasheet, is it means that DA14580 recommanded working power is 1.41V?
Daniel
Hi daniel59,
就powerprofiler而言,智能代码段的功能取决于您使用的开发工具包,powerprofiler仅适用于pro和expert开发工具包。
About the UART, in order to operate from uart (for downloading code, connect/burn/read OTP) the corresponding UART ports should be connected in the proper baud rate (every uart pin pair has a fixed baud rate). You can set the UART ports from the board setup option in smart snippets, then the ss will require to reset your board in order to download the appropriate program from read/burn the OTP or download your code via UART.
Regarding operating the 580 with 2V please follow the following link
http://support.dialog-semiconductor.com/operation-da14580-regulated-2v-s...
Thanks MT_dialog
Hi MT_dialog,
Yes I know about the function of SmartSnippets. My question is that after I burn application flags,it only inactive the UART port, I can still use JTAG to use all the function?
I read the text in the link, so if I want to use OTP, the best power for DA14580 is 2.5V (according to Figure 10 in DA14580 datasheet) ?
Daniel
Hi daniel59
If you burn the application flags you wont be able to download code through UART (Smart Snippets UART booting) or any other serial interface (SPI/I2C) since the bootloader is going to be disabled and booting is done only through the OTP. You are able to use the peripherals after the booting from OTP is done. But you can use the JTAG connection to donwload code, burn your flash, burn additional flags in OTP.
Regarding the OTP, the lowest safe voltage in order for the OTP to be read when the system boots up is about 2.5V and also provides a bit better efficiency of the dcdc converter.
Thanks MT_dialog
Dear TN_Dialog
Hi,
Excuse me for asking such a silly question!
Can you tell me where I can find the OTP header?
Thanks a lot.
Hello Reza.yazdani67,
you may refer to the AN-B-020 or OTP header in Smartsnippet tool
BR, MH_Dialog