Generally, yes you can store data in the OTP but keep in mind that 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. This means that if you store your data, you cannot change them in the specific addresses.
嗨马克,
我很好,谢谢。希望你也做得很好。谢谢你的问题。
您想要存储什么样的数据?
DA14585不包括片上SPI闪光 - DA14586包括闪存。
但是,您可以使用外部SPI闪存并存储您的数据。您的设计中有此选项吗?
Generally, yes you can store data in the OTP but keep in mind that 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. This means that if you store your data, you cannot change them in the specific addresses.
谢谢,PM_DIALOG.
嗨pm_dialog,
我想要存储的数据是1kbytes。如果我在我的设计中转到DA14586,我可以使用内部闪存来存储数据。是否有任何代码在DA14586中读/写内部闪存数据?
问候,
标记
嗨马克,
SDK的SPI_FLASH示例可以作为参考。该示例在6.0.14.1114 \ projects \ target_apps \ peripheral_examples \ spi \ spi_flash \ keil_5 sdk路径下,应为da14586配置构建。在user_periph_setup.h / .c中,您将发现GPIO配置应用于DA14586内部闪光灯,因为它在标准引脚上。为了与Flash进行交互,应使用SPI Flash(SPI_FLASH.C)驱动程序。
谢谢,PM_DIALOG.