hello dialog_support,
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:
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.
谢谢mt_dialog.
Hello MT_dialog,
感谢您的答复。
将遵循上述步骤。
Thanks and Regards
Rohit
Hello MT_dialog,
如果我们使用UART,那么建议使用哪个UART引脚进行OTP编程。
Thanks and Regards
Rohit
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
谢谢mt_dialog.
Hello MT_dialog,
感谢您的答复。
我已经提交了UART引脚的文件。
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
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 ?
谢谢mt_dialog.
谢谢你的回复。
For OTP programming i have done the following connection:(UART connection)
Mother board Custom board
VPP VPP
GND GND.
VDD VDD
PO_4 P0_4
p0_5 po_5.
在连接两个板引脚后,我尝试使用SmartSnippets编程OTP,但我得到了RST错误,
@Reset信号未检测到超过16000毫秒。
@失败将固件文件下载到电路板。
Is the above procedure is correct? if yes then why i am not able to read RST pin.
请帮助我解决这个问题,这对我来说是非常紧迫的,是我解决问题的必要条件。
Thanks and Regards
Rohit
Hi Rajapurerohit,
关于您的连接,您提到将主板的P04连接到自定义板的P04,如果您想使用主板的FTDI,那么您必须将自定义板的引脚连接到RX / TX引脚对话框主板有的FTDI。P04和P05引脚由于在Daugher Board槽上没有580,因此在任何地方都没有连接。还请看看您的其他帖子。
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...
谢谢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-semiconductor.com/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配置错误或遵循错误的过程,请向我解释一下.hex。
谢谢和ragards.
Rohit
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.
谢谢mt_dialog.
Hi MT_dialog,
Thank you for the response, it help lot to detect custom board RESET pin.
现在我能够检测到重置引脚,但我正在收到在OTP上写下错误。我附上了截图。在SmartSnippets Board文件中是否需要设置任何内容。
And regarding SPI_Flash i am getting following error log,
[信息SPI Flash Programmer @ 17-11-03 12:53:15]固件文件f:\ diasemi \ smartsnippetsstudio \ toolbox \ common_resources \ flash_programmer.bin已被选中以下载。
[INFO SPI Flash Programmer @17-11-03 12:53:15] Connection to COM6 port has successfully opened.
[信息SPI Flash Programmer @ 17-11-03 12:53:15]开始下载程序...
[动作SPI Flash Programmer @ 17-11-03 12:53:16]请按电路板上的硬件重置按钮开始下载过程。
[信息SPI Flash Programmer @ 17-11-03 12:53:17]重置检测到
[info booter @ 17-11-03 12:53:18]成功与COM6端口断开连接。
[INFO SPI Flash Programmer @17-11-03 12:53:19] Connection to COM6 port has successfully opened.
[INFO Booter @17-11-03 12:53:19] Successfully disconnected from port 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.
[信息SPI Flash Programmer @ 17-11-03 12:53:33]与COM6端口的连接已成功打开。
[信息Booter @ 17-11-03 12:53:33]成功与COM6端口断开连接。
[信息SPI Flash Programmer @ 17-11-03 12:53:33] SPI内存擦除成功完成。
[信息SPI Flash Programmer @ 17-11-03 12:53:33]阅读内存验证其内容擦除后...
[信息SPI Flash Programmer @ 17-11-03 12:53:33]与COM6端口的连接已成功打开。
[信息Booter @ 17-11-03 12:53:33]成功与COM6端口断开连接。
[ERROR SPI Flash Programmer @17-11-03 12:53:33] Verification failed at address 0x00
[信息SPI闪存程序员@ 17-11-03 12:53:33]阅读内存刷新内存内容....
[信息SPI Flash Programmer @ 17-11-03 12:53:33]与COM6端口的连接已成功打开。
[信息Booter @ 17-11-03 12:53:33]成功与COM6端口断开连接。
[信息SPI Flash Programmer @ 17-11-03 12:53:33]阅读已完成。阅读32768字节。
[INFO SPI Flash Programmer @17-11-03 12:53:52] Started burning memory with 25064 bytes of data at address 0x00000.
[信息SPI Flash Programmer @ 17-11-03 12:53:52]连接到COM6端口已成功打开。
[信息Booter @ 17-11-03 12:53:59]成功断开了Port Com6。
[INFO SPI Flash Programmer @17-11-03 12:53:59] Memory burning completed successfully.
[信息SPI Flash Programmer @ 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 Programmer @ 17-11-03 12:54:06] SPI闪存验证失败。地址0x00时出错
Please help
Thanks and Regards
Rohit
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.
谢谢mt_dialog.