使用OTP加载固件

⚠️
你好。。谢谢你来参加论坛。令人兴奋的消息!我们现在正在移动到我们的新论坛平台,将提供更好的功能,并包含在主对话网站的过程。所有帖子和账号都已迁移。我们现在只接受新论坛上的流量-请在//www.xmece.com/support. 我们将在未来几天内修复bug/优化搜索和标记。
13 posts / 0 new
最后一篇文章
拉贾普雷罗希特
离线
最后一次见到:8 months 1 week ago
已加入:2017-04-20 09:17
使用OTP加载固件

你好对话框支持,

My project is in final stage. I want to download the firmware on custom board using OTP.
can anyone help me what pins to connect from hardware and procedure to download .HEX file via OTP.
固件文件中是否有任何更改需要执行。

Thanks and Regards
Rohit

Device:
MT\u对话框
离线
最后一次见到:1个月3周前
工作人员
已加入:2015-06-08 11:34
Hi Rajapurerohit,

Hi Rajapurerohit,

You will have to connect to the 580 either via JTAG or via UART, the Smart Snippets tool will allow you to access the OTP and burn the .hex file that you have created. The tool in order to burn the OTP is the OTP programmer. On the fw side make sure that the have undefined the CFG_DEVELOPMENT_DEBUG and if you would like define the CFG_BOOT_FROM_OTP.

谢谢你的对话

拉贾普雷罗希特
离线
最后一次见到:8 months 1 week ago
已加入:2017-04-20 09:17
Hello MT_dialog,

Hello MT_dialog,
谢谢你的回复。
将按照上述步骤执行。

Thanks and Regards
Rohit

拉贾普雷罗希特
离线
最后一次见到:8 months 1 week ago
已加入:2017-04-20 09:17
Hello MT_dialog,

Hello MT_dialog,

如果我们使用UART,那么建议使用哪一个UART引脚来进行OTP编程。

Thanks and Regards
Rohit

MT\u对话框
离线
最后一次见到:1个月3周前
工作人员
已加入:2015-06-08 11:34
Hi Rajapurerohit,

Hi Rajapurerohit,

The UART pins that the 580 checks during the booting procedure are standard and each of those pins have a standard baud rate (you can check the pins and the corresponding baud rate from the AN-B-001 document). Any of those pins can be used in order to download a fw in order to program the OTP

谢谢你的对话

拉贾普雷罗希特
离线
最后一次见到:8 months 1 week ago
已加入:2017-04-20 09:17
Hello MT_dialog,

Hello MT_dialog,

谢谢你的回复。
我已经把文件交给UART PIN了。
Now my question is, in document UM-B-049 mentioned connect J3 jumper during OTP programming. Do is need to make follow the same for my custom board.

第二件事是,我有点混淆VPP和6.8V电源。请你详细解释一下我的情况好吗。

Thanks and Regards
Rohit

MT\u对话框
离线
最后一次见到:1个月3周前
工作人员
已加入:2015-06-08 11:34
Hi Rajapurerohit,

Hi Rajapurerohit,

In order to burn the OTP you need the programming voltage, that is what the J3 jumper does, it applies the 6.8V power on the Vpp pin in order for the OTP to be burned, and yes you should apply this kind of voltage to the Vpp of your custome design in order to program the 580. Regarding the VPP and 6.8V, you would like explanations regarding what exactly ?

谢谢你的对话

拉贾普雷罗希特
离线
最后一次见到:8 months 1 week ago
已加入:2017-04-20 09:17
谢谢你的答复。

谢谢你的答复。

For OTP programming i have done the following connection:(UART connection)
母板定制董事会
VPP VPP
接地
VDD VDD
PO_4 P0_4
P05 PO5

连接两个板引脚后,我尝试使用SmartSnippets编程OTP,但我遇到了RST错误,
@未检测到超过16000毫秒的复位信号。
@将固件文件下载到板失败。

Is the above procedure is correct? if yes then why i am not able to read RST pin.
请帮我解决这个问题,这是非常紧迫和必要的,我解决这个问题。

Thanks and Regards
Rohit

MT\u对话框
离线
最后一次见到:1个月3周前
工作人员
已加入:2015-06-08 11:34
Hi Rajapurerohit,

Hi Rajapurerohit,

关于连接,您提到您将主板的P04连接到自定义板的P04,如果您想使用主板的FTDI,则必须将自定义板的引脚连接到对话框主板所具有的FTDI的RX/TX引脚。P04和P05销由于daugher板插槽上没有580,因此没有连接到任何地方。请看一下你的另一篇文章。

https://support.dialog-semicondiondiondum/forums/post/dialog-smartbond-bl ...

谢谢你的对话

拉贾普雷罗希特
离线
最后一次见到:8 months 1 week ago
已加入:2017-04-20 09:17
Hello MT_dialog,

Hello MT_dialog,

I didn't get this point,
if you would like to use the FTDI of the motherboard then you have to connect the pins of your custom board to the RX/TX pins of the FTDI that the Dialog motherboard has.
Means how to connect these pins?
主板上是否有FTDI引脚,用于连接定制板引脚的Tx/Rx。

关于我的flash相关帖子
https://support.dialog-semicondiondiondum/forums/post/dialog-smartbond-bl ...
我没法去哪里检查。
means if i open smartsnippets and use terminal tool and say start in log i getting, @Booter com port opened successfully.
我没有明白你的意思。
如果我配置错误或遵循错误的程序来刻录。十六进制使用OTP或SPI炣Flash,请解释我。

谢谢你和碎布
Rohit

MT\u对话框
离线
最后一次见到:1个月3周前
工作人员
已加入:2015-06-08 11:34
Hi Rajapurerohit,

Hi Rajapurerohit,

自定义董事会应该公开pins that the 580 can boot from, so in order to get access to those pins you need a serial device that will allow you to interact with the device, most probably an FTDI cable. The pro motherboard has an FTDI onboard so you can use that in order to access the pins that the custom board. The TX/RX pins of the FTDI on the motherboard are right across to the P04 and P05 that the motherboard exposes in order to program the device that is attached on the slot of the pro kit's daughterboard. So you will have to do the same connections as the daughter has. Please check the Pro Motherboard schematics to get a clear view of what i am describing.

The Smart Snippets tool (when the UART interface is chosen) connects through the UART and downloads a special fw that accepts the commands in order to burn the flash of the OTP (that is what happens when you hit the connect button and the SS promts you to press the reset). If you connect the P04 and P05 pins an FTDI cable and open a terminal you should see garbage printed on the terminal, that means that the 583 is looking for device to boot from, that is what Smart Snippets sees and downloads that "special" firmware.

谢谢你的对话

拉贾普雷罗希特
离线
最后一次见到:8 months 1 week ago
已加入:2017-04-20 09:17
Hi MT_dialog,

Hi MT_dialog,

Thank you for the response, it help lot to detect custom board RESET pin.
现在我可以检测到复位pin,但我得到了写在OTP上的错误。我已经附上截图了。在smartsnippets板文件中是否需要设置任何内容。

And regarding SPI_Flash i am getting following error log,
[INFO SPI Flash程序员@17-11-03 12:53:15]固件文件F:\DiaSemi\SmartSnippetsStudio\Toolbox\common\U resources\Flash_程序员.bin已选择下载。
[INFO SPI Flash Programmer @17-11-03 12:53:15] Connection to COM6 port has successfully opened.
[INFO SPI Flash程序员@17-11-03 12:53:15]开始下载过程。。。
[操作SPI Flash程序员@17-11-03 12:53:16]请按板上的硬件重置按钮开始下载过程。
[信息SPI Flash程序员@17-11-03 12:53:17]检测到重置
[INFO Booter@17-11-03 12:53:18]已成功断开与端口COM6的连接。
[信息SPI Flash Programmer @ 17-11-03 12:53:19]连接到COM6端口已成功打开。
[信息Booter @ 17-11-03 12:53:19]成功与COM6端口断开连接。
[INFO SPI Flash Programmer @17-11-03 12:53:19] Successfully downloaded firmware file to the board.
[INFO SPI Flash Programmer @17-11-03 12:53:19] Successfully configured SPI Flash ports and pins.
[INFO SPI Flash程序员@17-11-03 12:53:33]已成功打开与COM6端口的连接。
[INFO Booter@17-11-03 12:53:33]已成功断开与端口COM6的连接。
[INFO SPI Flash程序员@17-11-03 12:53:33]SPI内存擦除成功完成。
[INFO SPI Flash程序员@17-11-03 12:53:33]读取内存,以验证擦除后的内容。。。
[INFO SPI Flash程序员@17-11-03 12:53:33]已成功打开与COM6端口的连接。
[INFO Booter@17-11-03 12:53:33]已成功断开与端口COM6的连接。
[ERROR SPI Flash Programmer @17-11-03 12:53:33] Verification failed at address 0x00
[INFO SPI Flash程序员@17-11-03 12:53:33]读取内存以刷新内存内容。。。。
[INFO SPI Flash程序员@17-11-03 12:53:33]已成功打开与COM6端口的连接。
[INFO Booter@17-11-03 12:53:33]已成功断开与端口COM6的连接。
[INFO SPI Flash程序员@17-11-03 12:53:33]读取已完成。读取32768字节。
[信息SPI Flash Programmer @ 17-11-03 12:53:52]开始燃烧内存,在地址0x00000时使用25064个字节的数据。
[INFO SPI Flash程序员@17-11-03 12:53:52]连接到COM6端口已成功打开。
[INFO Booter@17-11-03 12:53:59]已成功断开与端口COM6的连接。
[INFO SPI Flash Programmer @17-11-03 12:53:59] Memory burning completed successfully.
[INFO SPI Flash程序员@17-11-03 12:53:59]读取内存以验证SPI闪存刻录后的内容。。。
[INFO SPI Flash Programmer @17-11-03 12:53:59] Connection to COM6 port has successfully opened.
[INFO Booter@17-11-03 12:54:06]已成功断开与端口COM6的连接。
[错误SPI Flash程序员@17-11-03 12:54:06]SPI闪存验证失败。地址0x00出错

Please help

Thanks and Regards
Rohit

MT\u对话框
离线
最后一次见到:1个月3周前
工作人员
已加入:2015-06-08 11:34
Hi Rajapurerohit,

Hi Rajapurerohit,

From the Smart Snippets tool i see that this is a 583, that means that part of the OTP is allready bunred with the 583 bootloader and that means that since its a 583 you cannot burn an image to the OTP but only an advanced bootloader in order to specify an additional bootloading procedure (please check the UM-B-012_DA14580_581_583 Creation of a secondary boot loader). Bottomline is that you cannot burn an application image to the OTP of a 583, only an additional bootloader. The error that you get from the tool is that the image that you are trying to burn is very large for the amount of OTP memory left.

谢谢你的对话