Yes you can find more info about programming with Smart Snippets and CLI in the documents in the Smart Snippets help pdf (in smart snippets tool check the help option), at the end of the file you can find some examples about the CLI.
建议做OTPprogramming as follows: 1.拔下USB并断开PC的基本套件。 2.模块和基本DK之间的接线,首先取下J4的所有跳线。 GND - 别针2的J4 SWCLK - J4的PIN 27 SWDIO - Pin 25 of J4 VPP - TP2(j8跳线打开) vbat - j5的引脚1(j5跳线未安装) 3. Plug-in USB to PC to power up DK and module. 4. To verify your setup, goto your Keil project to compile your source, download to the DUT. 5.如果确定,请退出Keil调试器。 6. Start SmartSnippets tool and select JTAG and DA14580-01 in the front page. 7.选择OTP标题部分,按“Connect”键以查看“JTAG_PRIGHIMMER.BIN”的下载成功。 8.按“读取”图标读取OTP标题内容。 9. If no issue, the setup and the connection is ready for OTP image programming. 对于OTP编程程序,您可以有关详细信息,请参阅我们的应用笔记。 要启用OTP编程,需要安装J8跳线以启用VPP 6.8V。 For better BLE performance and longer range, suggest to tune the 16M crystal and program the value and enable this calibration in OTP header section. In debugging stage, recommend to leave the JTAG feature enabled in the OTP header section to leave a back door for further debugging work. This can be disabled later, if necessary. 请注意您的应用程序没有禁用JTAG功能。或者JTAG启用位无效。 希望这个信息有用。
As I said before I want to program the OTP memory of DA 14580 based module, but I haven't tried it yet. I got to know that I have to disable/enable a macro in the code also to compile it for OTP programming. I would appreciate if you can tell me the exact steps including code compilation for OTP programming, as I have limited modules to do this. For now, I am using Proximity Reporter example project in SDK 5, so you can explain me in respect of that example.
1.启动SmartSnippets v3.8 2. Selects JTAG and DA14580-01 3.转到OTP程序员,然后选择“OTP图像”选项卡 4. Browse and select the HEX file to be loaded on OTP Memort, in this case Proximity Reporter project hex file that build with 'GPIO_DRV_PIN_ALLOC_MON_DISABLED' macro defined. It shows the Data File Contents on 'OTP Image' tab. 5.成功连接到设备。 6. Read the OTP memory. 7.刻录所选的十六进制文件。
在步骤7之后,我收到以下错误:
[INFO @16-01-21 00:01:21] OTP Image: Started burning memory with 25036 bytes of data at address 0x40000. (错误@16-01-21 00:01:22]OTP形象:Adddittionalerror info at address 0x81FEC (MSB first): FF FF FF FE [ERROR @16-01-21 00:01:22] OTP Image: Memory burning failed.
Also, when I am starting the SmartSnippets I am getting error "ftd2xx.dll not found at C:\Windows\System32".
我已附加了包含SmartSnippets日志的ZIP文件和FTDI错误的快照。
Please help me to resolve these errors, so that I can burn the OTP memory.
The error you receive might be the root cause of this manfunction, try to use the latest version of Smart Snippets, also this might be a problem of your OTP programming supply as well. Please make sure that your J-link connection to the board is as short as possible and the grounding is solid. The Vpp must be clean and must not exceed 6.8V.
The error is resolved now and I am able to program OTP memory of DA14580 based module using Basic Kit. I forgot to install the jumper on J8 connector on Basic kit!
Every time you are suggesting new application note/user manual. Nothing has been covered at one place for the beginner and nothing has been provided at once. I request you to please let me know the exact steps that I need to follow to successfully program the OTP memory of the module.
If your OTP is burned with the header_log.txt you ve uploaded then you should be able to reattach the debugger and reburn your OTP (fields that are not allready burned) since the application flags aren't burned and the JTAG is still enabled. Its difficult to keep all the informations about how to program the OTP, the different fields of the OTP, connect a reference design by using a development kit and troubleshooting the OTP in one single tutorial so we are trying to redirect you to the corresponding manuals.
关于编程OTP我认为您已经熟悉如何使用开发套件连接到模块。
1)选择OTP图像选项卡
2)选择您的.hex文件并将您的程序刻录到OTP。
3)转到OTP标题选项卡,将两个应用程序标志字段更改为“是”(仅启动从OTP执行的代码)I VE附加到OTP .hex从Ref Design I Ve刚刻录,供您参考。
After that your device should advertise after a reset. As you can see from the attachemnt the JTAG is still enabled, therefore i am able to reconnect to the allready burned module as soon as i hit connect to OTP Header tab in the smart snippets tool.
嗨dv,
您可以使用智能片段或CLI工具来编程OTP,您也可以使用它来开发目的来使用UART接口编程Sysram。
就使用DEV套件编程了您的定制板没有应用笔记,请您按照以下帖子进行操作:
http://support.dialog-semicondiondiondum/programming-external-board-basic ...
谢谢mt_dialog.
嗨mt_dialog,
感谢您的回复!
So is there any guide which describe how to use the Smart Snippets or CLI to program sysram/OTP?
此外,我还阅读了你提到的帖子,但它没有描述基本开发套件和DA14580模块之间需要进行的连接。所以如果你可以解释它是自我的,那就太好了。
谢谢,
DV
嗨dv,
Yes you can find more info about programming with Smart Snippets and CLI in the documents in the Smart Snippets help pdf (in smart snippets tool check the help option), at the end of the file you can find some examples about the CLI.
关于使用DEV套件进行编程的配置是:
SWCLK - > TCK
SWDIO - > TMS
VBAT -> VBAT580
GND -> GND
VPP - > TP2(请放置OTP跳线,以燃烧OTP)
谢谢mt_dialog.
嗨mt_dialog,
Thanks for your quick reply.
我们尝试了以下连接:
Module Side - Development Kit Side
J4(TCK)的SWCLK - PIN 27
J4(TMS)的SWDIO - PIN 25
J4(VBAT)的VBAT - PIN 1
GND - 别针2的J4(GND)
但随着上面提到的,我无法编程基于DA 14580的模块。我得到“没有找到Cortex-M个SW设备。”使用UVISION KEIL V5.16A编程时出错。
我无法理解我做错了什么。你能帮我这里吗?
谢谢,
DV
建议做OTPprogramming as follows:
1.拔下USB并断开PC的基本套件。
2.模块和基本DK之间的接线,首先取下J4的所有跳线。
GND - 别针2的J4
SWCLK - J4的PIN 27
SWDIO - Pin 25 of J4
VPP - TP2(j8跳线打开)
vbat - j5的引脚1(j5跳线未安装)
3. Plug-in USB to PC to power up DK and module.
4. To verify your setup, goto your Keil project to compile your source, download to the DUT.
5.如果确定,请退出Keil调试器。
6. Start SmartSnippets tool and select JTAG and DA14580-01 in the front page.
7.选择OTP标题部分,按“Connect”键以查看“JTAG_PRIGHIMMER.BIN”的下载成功。
8.按“读取”图标读取OTP标题内容。
9. If no issue, the setup and the connection is ready for OTP image programming.
对于OTP编程程序,您可以有关详细信息,请参阅我们的应用笔记。
要启用OTP编程,需要安装J8跳线以启用VPP 6.8V。
For better BLE performance and longer range, suggest to tune the 16M crystal and program the value and enable this calibration in OTP header section.
In debugging stage, recommend to leave the JTAG feature enabled in the OTP header section to leave a back door for further debugging work. This can be disabled later, if necessary.
请注意您的应用程序没有禁用JTAG功能。或者JTAG启用位无效。
希望这个信息有用。
嗨mt_dialog,
Thanks for your quick response.
您建议的连接工作。虽然我还没有尝试过OTP编程。
谢谢,
DV
Hi MT_dialog,
As I said before I want to program the OTP memory of DA 14580 based module, but I haven't tried it yet. I got to know that I have to disable/enable a macro in the code also to compile it for OTP programming. I would appreciate if you can tell me the exact steps including code compilation for OTP programming, as I have limited modules to do this. For now, I am using Proximity Reporter example project in SDK 5, so you can explain me in respect of that example.
谢谢,
DV
嗨dv,
请检查以下帖子:
http://support.dialog-semicondiondiondum/step-step-guidelines-programming ...。
http://support.dialog-semicondiondiond.com/document-programming-otp-da14580 ...
还要用于OTP编程,请检查AN-B-020.PDF文件。
谢谢mt_dialog.
Hi MT_dialog,
我读取了应用笔记,也可以帮助SmartSnippets工具的帮助。之后,我将模块的必要连接到基本套件,如前一篇文章所述。请注意,使用这些连接,我能够使用Keil UVision5和模块工作正常的SRAM。现在我完成了以下步骤:
1.启动SmartSnippets v3.8
2. Selects JTAG and DA14580-01
3.转到OTP程序员,然后选择“OTP图像”选项卡
4. Browse and select the HEX file to be loaded on OTP Memort, in this case Proximity Reporter project hex file that build with 'GPIO_DRV_PIN_ALLOC_MON_DISABLED' macro defined. It shows the Data File Contents on 'OTP Image' tab.
5.成功连接到设备。
6. Read the OTP memory.
7.刻录所选的十六进制文件。
在步骤7之后,我收到以下错误:
[INFO @16-01-21 00:01:21] OTP Image: Started burning memory with 25036 bytes of data at address 0x40000.
(错误@16-01-21 00:01:22]OTP形象:Adddittionalerror info at address 0x81FEC (MSB first): FF FF FF FE
[ERROR @16-01-21 00:01:22] OTP Image: Memory burning failed.
Also, when I am starting the SmartSnippets I am getting error "ftd2xx.dll not found at C:\Windows\System32".
我已附加了包含SmartSnippets日志的ZIP文件和FTDI错误的快照。
Please help me to resolve these errors, so that I can burn the OTP memory.
谢谢,
DV
嗨dv,
The error you receive might be the root cause of this manfunction, try to use the latest version of Smart Snippets, also this might be a problem of your OTP programming supply as well. Please make sure that your J-link connection to the board is as short as possible and the grounding is solid. The Vpp must be clean and must not exceed 6.8V.
另外请检查以下帖子。
http://support.dialog-semicondiondiondum/otp-programming-1.
http://support.dialog-semiconductor.com/otp-program-mass-production-vpp-...
http://support.dialog-semicondiondiondum/vpp-current-consumption.
谢谢mt_dialog.
Hi MT_dialog,
Thanks for your quick reply.
The error is resolved now and I am able to program OTP memory of DA14580 based module using Basic Kit. I forgot to install the jumper on J8 connector on Basic kit!
但现在,即使在编程OTP图像和OTP标题之后,模块无法独立工作。为什么会这样?设置中有什么不对劲吗?我需要做别的事情吗?我已附加了OTP图像和OTP标题编程日志以进行参考。
我正在使用最新的smartsnippets i.e.v3.9。而且我仍然得到这个ftdi错误。请帮我解决这个错误。
谢谢,
DV
嗨dv,
很高兴听到你做到了,我没有得到“模块无法独立工作”你的意思是什么?没有电力,只有电池?如果是这种情况,您是否在电池电源中更改了J5标题上的跳线?就OTP标题而言,我注意到您没有编程的应用程序标志。请检查AN-B-001以获取580的启动过程和应用程序标志的功能。关于FTDI错误我猜这与系统中安装的FTDI驱动程序有关,请尝试更新它们。
谢谢mt_dialog.
Hi MT_dialog,
Thanks for your quick reply.
通过“模块无法独立工作”,我的意思是直到现在我正在将程序加载到模块通过基本套件,使用Keil Uvision 5和它运行正常。但在闪烁的OTP内存之后,我期待那个,没有必要使用keil加载程序,它应该只需提供电量,但不会发生这种情况。
关于连接,模块的VBAT连接到J5的PIN1,模块的GND连接到J4的PIN2。
我应该如何编程到应用程序标志,我现在可以在同一模块上更改它吗?我还需要将Bool Loader编程到OTP内存吗?如果是的话,我在哪里可以找到它?
等待您的回复。
谢谢,
DV
嗨dv,
由于AN-B-001表示Pootloader检查应用程序标志是否被编程为YES,因此从OTP中启动Bootrom靴子否则它遵循普通过程,就好像它未编程一样,只需连接您的模块并将您的OTP应用程序标记设置为“是”。在580中有一个引导加载程序,辅助引导程序用于替代目的(有关详细信息,请检查UM-B-012:辅助引导程序的创建)。
谢谢mt_dialog.
Hi MT_dialog,
感谢您的回复。
我无法使用SmartSnippet将模块“连接”,它给了我错误。我认为这是由于OTP已经编程了。似乎模块被浪费了,现在我甚至不能在从Keil UVISION 5中编程系统RAM以在调试模式下运行它。
Every time you are suggesting new application note/user manual. Nothing has been covered at one place for the beginner and nothing has been provided at once. I request you to please let me know the exact steps that I need to follow to successfully program the OTP memory of the module.
谢谢,
DV
嗨dv,
If your OTP is burned with the header_log.txt you ve uploaded then you should be able to reattach the debugger and reburn your OTP (fields that are not allready burned) since the application flags aren't burned and the JTAG is still enabled. Its difficult to keep all the informations about how to program the OTP, the different fields of the OTP, connect a reference design by using a development kit and troubleshooting the OTP in one single tutorial so we are trying to redirect you to the corresponding manuals.
关于编程OTP我认为您已经熟悉如何使用开发套件连接到模块。
1)选择OTP图像选项卡
2)选择您的.hex文件并将您的程序刻录到OTP。
3)转到OTP标题选项卡,将两个应用程序标志字段更改为“是”(仅启动从OTP执行的代码)I VE附加到OTP .hex从Ref Design I Ve刚刻录,供您参考。
After that your device should advertise after a reset. As you can see from the attachemnt the JTAG is still enabled, therefore i am able to reconnect to the allready burned module as soon as i hit connect to OTP Header tab in the smart snippets tool.
谢谢mt_dialog.
Hi MT_dialog,
如果不可能拥有单个教程,那么至少应该是一个文档,可以是应用笔记,这解释了如何使用SmartSnippet来编程OTP内存。这有助于初学者,像我一样,很多。无论如何,非常感谢您的帮助。我能够编程OTP内存并能够设置这些标志。现在我的代码和模块工作正常。
问候,
DV
嗨dv,
很高兴你能做到。我会将您的请求转发给团队有关具有完全文档如何与OTP互动的。
谢谢mt_dialog.