Hi Dialog team,
We are using DA14585 custom board designed by us. We have SPI external serial flash connected using P2.0, P2.3, P2.4 & P2.9. Do you see any restrictions or issues with this configuration. What is your recommendations?"
Device:
Hi MADHUSF,
Can you please indicate which SPI Flash model you are using int your custom board?
Thanks, PM_Dialog
Hi,
the serial flash number is AT25DF011_MAHN_T.
please find the below datasheet link
https://www.adestotech.com/wp-content/uploads/DS-AT25DF011_032.pdf
Hi MADHUSF,
Please check the 6.0.10.511\utilities\flash_programmer project of the SDK and you will see that the AT25DF011 is supported, so you will be able to use it. However, if you would like to boot from the SPI flash, be aware that the chips boots from standard pins. So, if you would like to boot from the pins that you mentioned, this requires the usage of a secondary bootloader. More specific, you can use the secondary bootloader burned in OTP in order for the 585 upon bootup to load the secondary loader and then the loader to use your custom pins on order to boot from an external flash memory. 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. Please check the following document:
UM-B-012 DA14580/581/583 Creation of a secondary boot loader
Thanks, PM_Dialog
hi, thanks for the reply and it helps. I have few questions and your recommendation on those options per below.
Option 1: Alter the pins on the board, but custom board can't be done now as its multilayer board.
Option 2: Program the OTP with the RAM code that we have. But, we can't use the OTP again. Question - Can we still debug our code on RAM with OTP already flashed with some old code?
Option 3: Develop secondary bootloader that will use our custom pins to boot from external flash. Question - Any good reference code you have for this? Can this secondary bootloader be altered by any means?
Option 4: Any other methods given the above scenario exist?
Please guide us further. Thank you.
Hi MADHUSF,
If I understood correctly, the OTP has been already burnt? Is that correct? The DA14585 boots from standard GPIOs, so you would like to override them? The only workaround requires the secondary bootloader, so you can use the secondary bootloader burned in OTP in order for the 585 upon bootup to load the secondary loader and then the loader to use your custom pins on order to boot from an external flash memory. So, you should change the secondary bootloader fw and apply the pins that you would like. If the application flags are burned and the JTAG enable flag is Disabled then the device becomes inaccessible, so you could not access the JTAG and debug your code.
Thanks, PM_Dialog
嗨对话团队,比ks for the inputs. Now we are able to update the OTP header with the modified flash(spi) pins and its working with that.
Hi MADHUSF,
Glad that you figured your issue out and thanks for accepting my answer.
Thanks, PM_Dialog