Hi!
我需要在闪烁到OTP之前测试我的安全引导加载程序。我有3个问题:
1) What ist the best way to test the boot loader itself ? Right now I'm doing it by starting it in RAM by SS-Studio. But not sure if this is right or wrong?
2)如何只将键写入OTP?我可以用cli_programmer这样做吗?是的,是的 - 怎么样?
3)如何在我的Devel USB-套件上禁用JTAG,即使安全引导加载程序闪烁到OTP。
我自上天阅读文档,但非常紧张地通过对OTP做错事来杀死我的开发板。
谢谢,
Thomas
设备:
嗨托马斯唐豪斯,
谢谢你的问题在线。您可以使用您使用哪种DA1468x产品?它是DA14680 / 681还是DA14682 / 683?此外,这是DA14682/DA14683 Secure Boot Tutorial您指的文件?
Thanks, PM_Dialog
嗨,它是DA14683 USB-KIT DEVEL板。我知道你提到的链接。但它没有说如何测试安全引导加载程序。它只是一个直接的描述如何与SS-IDE脚本进行。PLS。你能详细说明我的3个问题吗?
谢谢!
嗨托马斯唐豪斯,
如果启用了安全引导,Bootrom默认情况下会禁用JTAG。您可以通过配置sys_ctrl_reg [debugger_Enable]位域来启用应用程序的JTAG,以便访问调试器。然而,“安全启动”概念是没有JTAG访问权限,所以通过这种方式,系统将变得不安全。如果您想要从申请中启用JTAG,因为您已启用安全引导机制,则应处理以下内容:
Hope my comment will help you. If you have any other follow up questions, please let me know.
Thanks, PM_Dialog
Hello,
谢谢你的asnwer。对不起,但你的Anser没有帮助。上面的教程Mentoniend显示了如何使用SS-Studio进行操作,其中暂停信息在脚本中隐藏。但是对于生产而言,不建议这样做。脚本运行的太多步骤在此内部无法在某种程度上记录,我觉得它会随之而来。所以我想我觉得脚本分析了脚本来获得所需信息的工具。我是DA14683的真正粉丝,我对SS-Studio很满意。唯一的缺点是文档。至少,任何时候都会描述任何地方,但这取决于我将所有部分信息组合到稳定的图片。
如果你看我的三个问题你会发现没有n of them is answered so far. Giving me hints to tutorial like the one you mentined is not helpfull. Because I'f read them allready befor I asked you here at support. You guyes did a great job on the chip, but you messed it up on documenting the interessting parts!
嗨托马斯唐豪斯,
我正在寻找你的疑问,很快就回到你身边。
Thanks, PM_Dialog
谢谢,that's great!
亲爱的托马斯唐豪瑟,
Please find below my commnets.
问题1:Yes, you are correct. This is the right way to test the boot loader itself. You should execute it for RAM through SS-Studio.
QUESTION 2:Yes, you can use the cli_programmer in order to write only the keys in the OTP. Please open the cli-programmer.exe and execute the help command:
HOW TO WRITE A KEY INTO OTP
To program only a key into the OTP, use the following command syntax (after the gdbserver started for the syntax below, otherwise the UART can be used) as the example below:
您可以使用命令语法读取键:
Read Result:
PROCEDURE FOR WRITING A SECURE BOOT DEVICE FROM UART
以下是从UART编写安全引导设备的过程。GDB服务器也可以使用,而不是CLI_Programmer的命令行中的UART。
为方便起见,您将找到附加文件夹作为您的参考。请检查那里的命令。批处理文件的执行顺序是显而易见的(我让他们从订单号开始)
The operation for preparing a secure boot device is divided in两(2)个细分:
Segment #1 : Preparation work by the developers
重要提示:不要丢失此文件。如果丢失这一点,则无法为设备创建新的有效图像。
Segment #2 : Steps to run in Mass Production or test bench.
In the attached ZIP file there is a set of batch files for reference for all the above steps.
VERY IMPORTANT NOTE:
Thelibprogrammer必须用下面的修复程序修补,然后重新构建libprogrammerand thecli_programmer.exebefore attempting to program devices in secure boot.
Without this patch there might be a timeout when writing the Keys in OTP and have a failure.
QUESTION 3:如我之前的评论中提到的,是的,您可以在应用程序代码中重新启用它。ROM Booter不会以安全启动模式启用它。
生产线工具(PLT)
Dialog has designed a production test and programming unit that enables you to reduce cost and increase throughput in volume test & programming of units.
- Ease of integration: DLL based commands
- 编程OTP / Flash / EEPROM中的灵活性(也支持安全启动)
- Low overall cost of tester equipment
- 高水平的并行化和短暂的测试时间。
- Up to 16 times parallel programming and test
请看看我们的PLT支持网页
//www.wsdof.com/products/production-line-tool
Best regards,
PM_Dialog
亲爱的PM_DIALOG!
Thank you very much! your verbose answer lift up my mind for the weekend. I will verify each hint and execute your recommendation and come back after with feedback.
regards,
Thomas