嗨,对话框中,
As we know DA14580 OTP only program one less than 32K bin file.
The size of my bin file is 32,652 is less than 32KB and is very close to 32KB.
but it can't be burned to DA14580 OTP.
我们正在优化有限公司de size.
Any idea about the issue at the moment ? thanks!
Device:
Add log file of Dialog PLT tool. thanks!
------------------------------------------------------------
time> | | |
##########################################################################################################################
|16:14:53.439 |DUT_UDLL_FW_DOWNLOAD_INIT | STARTED |UDLL firmware download initialized. Firmware is=[D:\DA1458x_DA1468x_PLT_v_4.1.0.132\DA1458x_DA1468x_PLT_v_4.1.0.132\executables\binaries\flash_programmer_580.bin].
|16:14:53.486 |DUT_UDLL_FW_DOWNLOAD_START | STARTED |UDLL firmware download started OK. Firmware is=[D:\DA1458x_DA1468x_PLT_v_4.1.0.132\DA1458x_DA1468x_PLT_v_4.1.0.132\executables\binaries\flash_programmer_580.bin].
| 16:14:55.045 | DUT_UDLL_FW_DOWNLOAD_OK | PASS |UDLL firmware downloaded OK. Firmware is=[D:\DA1458x_DA1468x_PLT_v_4.1.0.132\DA1458x_DA1468x_PLT_v_4.1.0.132\executables\binaries\flash_programmer_580.bin].
|16:14:55.056 |DUT_UDLL_FW_DOWNLOAD_OK | PASS |UDLL firmware downloaded OK. Firmware is=[D:\DA1458x_DA1468x_PLT_v_4.1.0.132\DA1458x_DA1468x_PLT_v_4.1.0.132\executables\binaries\flash_programmer_580.bin].
|16:14:55.069 |DUT_UDLL_FW_VER_GET_INIT | STARTED |UDLL 'firmware version get' operation initialized.
|16:14:55.080 |DUT_UDLL_FW_VER_GET_STARTED | STARTED |UDLL 'firmware version get' operation started.
|16:14:55.093 |DUT_UDLL_FW_VER_GET_OK | PASS |UDLL 'firmware version get' operation ended OK. UDLL version=[v_4.1.0.132], Firmware version=[v_5.0.4_PLT_v4.1]
|16:14:55.169 |DUT_UDLL_OTP_IMG_WR_INIT | STARTED |OTP image write operation initialized. Image to write is [C:\Users\909552\Desktop\ble_boot_2017092820.bin].
|16:14:55.169 |DUT_UDLL_OTP_IMG_WR_STARTED | STARTED |OTP image write operation started. Image to write is [C:\Users\909552\Desktop\ble_boot_2017092820.bin].
|16:14:55.185 |DUT_UDLL_OTP_IMG_WR_FAILED | FAIL |OTP image write operation FAILED. Image is [C:\Users\909552\Desktop\ble_boot_2017092820.bin].Current device status=[194].
|16:14:55.185 |DUT_UDLL_OTP_IMG_WR_FAILED | FAIL |OTP image write operation FAILED. Image is [C:\Users\909552\Desktop\ble_boot_2017092820.bin].Current device status=[194].
嗨Jacky_SZ,
The OTP totals in 32K bytes, which means 32.768 bytes, out of those bytes you should remove the 256 bytes which is the OTP header so the total amount of memory that can be used by the image is 32.512 bytes, so you should check the fw that you have in order to save 140 bytes in order to reach the maximum of the OTP, i am not aware what its been used in your project and how you can save some space. In general from the SDK side there aren't much to do since the code is quite optimized, so will have to check what modules you have used and what can be ommited, for example if you are not using the TRNG module you can undefine it and that will save you some space (but there will be no trully random number generation). Additionally in the user_modules_config.h file you there are some swicthes in order to include or remove some dialog API's you can remove some of those modules and apply your minimal API's in order to save some space. Last i suppose that the compilation is done with the CFG_DEVELOPMENT_DEBUG undefined, since this will occupy additional space in your image.
Thanks MT_dialog
Does the space 32512 bytes include the NVDS used by application? Now my project built image size is 32440(CODE:29652,RO-DATA 2308,RW-DATA 168), and my project is based on Dialog official ANCS sample project. I can now burn my image into my board without any problem. Why? I suppose 32440 is larger than 32768-256(header)-256(NVDS) = 32256.
Hi cgha,
Can you please indicate the chip and the SDK that you are using in your product? Is it DA14580 and SDK5.0.4? Also, have you bunt the OTP with the application code? Or you are booting from System-RAM or external SPI Flash?
You can also create a new forum thread as this one is very old and closed.
Thanks, PM_Dialog
Yes, my application is based on sdk 5.0.4 and DA14580-01, the image is burned into on chip OTP .
Hi cgha,
It’s expected that you are able to burn the 32256 bytes image in the OTP, as the NVDS is a part of the image. The maximum image that you can burn is 32.512 bytes (32K – 256 bytes (header) ).
Thanks, PM_Dialog
I got it, Thanks!