我是“Pan1740A蓝牙模块”的新程序员,Pan1740A的核心是DA14585 MCU芯片。
在数据表上,它表示这个MCU有3个模式。“普通OTP”模式非常容易理解,让我混淆是“开发”模式。
下面是来自数据表的QueoE:“在开发模式期间,使用ARM Cortex-M0 SW环境开发了阶段应用程序代码。通过SWD(JTAG)或任何串行接口,将编译的代码下载到系统RAM或任何保留RAM中(e.g. UART). Address 0x00 is remapped to the physical memory that contains the code and the CPU is configured to reset and execute code from the remapped device. This mode enables application development, debugging and on-the-fly testing."
这是我的问题:当设备在“开发模式”下时,由于所有应用程序代码仅存在RAM中,一旦我掉电设备,设备中的代码将会消失,当我再次启动设备时,我需要再次下载代码?
手上缺乏经济博拉,我只是想知道......
设备:
嗨Jame0769,
谢谢你的问题。请检查数据表中的bootrom序列。当设备靴子时,BootRom代码从OTP读取应用程序标志。如果编程该标志,则从OTP启动它。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. So, this should be done the product it ready and the OTP should be burnt. This is the normal mode.
在开发阶段,不应编程应用程序闪光灯。在该阶段,OTP为空白,芯片可以从不同的串行接口引导,例如UART,SPI主/从和I2C,并且将应用程序代码下载到System-RAM,然后将设备靴子下载。
由于您是一个新的程序员,您应该使用开发模式,以便您可以调试代码。
如果代码存储到系统内存中,则重置或断电DA14585后,则代码丢失,因此您应该重新编程它。如果您想保留代码,则应刻录SPI闪光灯,因此当芯片重置或上电时,它将再次启动。
要燃烧SPI闪光灯,请使用Windows操作系统的SmartSnippets工具箱V5.0.14。
http://lpccs-docs.dialog-seminiondiond.com/um-b-083/tools/board_setup.html.
http://lpccs-docs.dialog-seminiondiond.com/um-b-083/tools/spiflashprogrammer.html.
谢谢,PM_DIALOG.
嗨PM_DIALOG.
谢谢你的答案!