Dear Sir,
I followed the below step mentioned even then i am getting memory write error.
"
Please refer Table 258: Recommended Operating Conditions in the DA14580 datasheet. The supply voltage on VPP pin during the OTP programming should be 6.6V – 6.8V. Can you please double check that you have the correct voltage supply on VPP pin? You need to ensure that the supply voltage on VPP pin during the OTP programming is within 6.6V – 6.8V. The supply voltage during programming should be clean and must not exceed 6.8V. Moreover, the 6.8V can only be applied to VPP after the VBAT3V is supplied and must be removed from VPP before the VBAT3V is removed, otherwise the chip could be damaged.
In addition, keep in mind that jumper should be placed into header J3 for enabling the VPP in the Pro-DK.
Regarding the connections, I can clarify that you are using the correct:
- J4 - Pin 1 (VBAT_580) - > Vcc of the custom board.
- J4 - 引脚25(TMS) - >自定义板的SWDIO引脚。
- J4 - Pin 27 (TCK) - > SW_CLK pin of custom board.
- TP2 -> to the Vpp of the custom board (if OTP needs to be programmed).
- J4 - Pin 2 (GND) - > to the ground of the custom board.
Let me kindly remind you the procedure you should follow in order to burn the OTP through SmartSnippets Toolbox. As far as I remember, you had posted a similar ticket before:
- 的OTP wh有3个区域ere the user can burn data:
- OTP图像区域,其中将用户代码放置并在引导时镜像到SYSRAM。
- The OTP NVDS area, where the NVDS structure is populated with the OTP at boot.
The OTP Header area, where flags and specific values that define the operation of the device are placed (more information regarding the values of the OTP Header can be found in the Smart Snippets User guide).
要使用最常用的配置刻录OTP,请按照以下说明操作:
- Open Smart Snippets either via JTAG or UART and hit open.
- 从工具栏按钮选择OTP程序员,以便为每个OTP区域打开3个不同的选项卡。
- Choose the OTP image tab and on the left tab browse to the .hex file you would like to burn and hit Burn.
- 一旦最后一步完成,您将烧掉您的海关OTP。需要一些其他配置,以便您的设备从中启动它。
- Go to the OTP Header tab.
- Change both of the application flags to YES (this is required in order to start the booting from OTP, when one does that the primary bootloader is disabled - scan of the peripherals for valid image, the user can reprogram his board using JTAG only).
- Hit the burn Button in order to burn the configuration to the OTP Header.
- The above steps are enough in order for the user to program the OTP
OTP stands for One Time Programmable, thus you can’t erase and re-write the OTP multiple times, but you can only flip the bits that are still set to 0 and turn them to 1. So you can change the JTAG enable flag as you described in you thread, but since you configure it as 1, you will NOT be able to change it again. When the OTP is burned and the application flags on the OTP header are also burned, the primary bootloader is disabled so the scanning procedure doesn't take place, thus you will not be able to boot from the SPI or UART or I2C. You will be able to directly burn your SystemRAM though JTAG as long as the OTP header field called JTAG enable flag stays Enabled. If the application flags are burned and the JTAG enable flag is Disabled then the device becomes inaccessible.
On the firmware side, you should ensure that the CFG_DEVELOPMENT_DEBUG macro in da1458x_config_basic.h is undefined. The specific flag just adds some breakpoints in order for the developer to identify any problems, if you downloaded the image as is this shouldn't occur. You can also define CFG_BOOT_FROM_OTP macro in da1458x_stack_config,h, but it is not mandatory. If this macro is defined, the OTP header data are read from SysRAM and they copied by bootrom code. Otherwise the OTP Header data are read from OTP memory.
总之,在刻录OTP之前,您应该确保您的固件完全正常。“
Kindly provide me proper solution.
Best Regards,
Mark
嗨MarkDsylva_2277,
We have discussed in previous forum threads regarding how to burn the OTP and you are following the correct steps. If you open the OTP programmer thought the SmartSnippets toolbox, are you able to connect and read the contents of the OTP and OTP header? Those errors occur only when trying to burn the OTP? Also, are you using JTAG or UART to connect with the tool. In the meanwhile, I would suggest you to download the latest version of the SmartSnippets toolbox from our support website. Have you tried to download FW directly to System-RAM thought Keil IDE? If yes, is the device advertising correctly?
Thanks, PM_Dialog
Hi PM_Dialog,
My issuse got solved after I used the latest smart snippets and latest Segger drivers. Thanks.
Mark
Hi Mark,
Glad that you figured your issue out with the latest version of SmartSnippets toolbox.
Thanks, PM_Dialog