Problem with IoT kit and Keil

嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
10个帖子/ 0新
最后一篇
terry.lim.
离线
最后一次露面:3 years 3 weeks ago
加入:2018-01-11 19:10
Problem with IoT kit and Keil

我拥有DA14583 IOT传感器开发套件,并能够使用SmartSnippets Toolbox编程零件。但是,我无法用keil调试。我收到以下错误消息:

“找不到Cortex-M SW设备”

我下载了最新的Segger J-Link软件,但它没有帮助。

Device:
mt_dialog.
离线
最后一次露面:2天前1周
职员
加入:2015-06-08 11:34
嗨terry.lim,

嗨terry.lim,

最重要的是您面临的问题是因为IOT已完成编程及其睡眠,因此调试器无法附加到设备,您可以做的是重置设备,在2秒内连接调试器。设备睡眠前等待2秒,因此这是您可以附加调试器的窗口。或者您可以连接到智能片段工具,连接然后擦除闪光灯,这样的方式只会运行Bootloader,并将有调试器模块始终打开您要附加。另请确保设备通过keil可见,转到“调试”选项卡中的“目标选项”,点击“设置”按钮,并确保归档的“端口”已切换到SW而不是JTAG,而不是JTAG。您可以看到jlink的SN和附件的ARM的IDcode。

谢谢mt_dialog.

terry.lim.
离线
最后一次露面:3 years 3 weeks ago
加入:2018-01-11 19:10
Thanks for the explanation,

Thanks for the explanation, this helps. I erased the flash and now the J-Link Commander app can detect the Cortex-M0. Also, in Keil, the the IDCODE shows up. However, I am now facing a new problem. When I try to start a debug session I get a "Cannot Access Memory" pop-up, some debug windows show up briefly and then disappears.

mt_dialog.
离线
最后一次露面:2天前1周
职员
加入:2015-06-08 11:34
嗨terry.lim,

嗨terry.lim,

Have you builded the project before downloading it into the device. You will be able to find some guidance regarding the Keil tool in the following document UM-B-048 Getting started with Development Kit Basic on paragraph 4 (the document describes on how to debug the Blinky demo code so disregard the setting and the file paths indicated by the document, the settings should be ready for running the IoT code directly from RAM). So open the project, hit the "Build" button so that the project will compile and then hit the "Start/Stop Debug Session". Are you certain that you haven't changed any settings in keil from the default settings of the project ? Have you tried to run any other project from the SDK (builded for the 583 device) ?

谢谢mt_dialog.

terry.lim.
离线
最后一次露面:3 years 3 weeks ago
加入:2018-01-11 19:10
我能够建立和调试

我能够从最新的SDK构建和调试“眨眼”演示程序,而不存在问题。我提取了一个清洁的IOT项目版本并构建并试图调试,但获取相同的“无法访问内存”弹出。我正在使用32kb Limited版本的Keil,但Wrbl_raw项目的小于该限制。

我假设项目设置是在IOT加密狗上调试的正确值。我检查了UM-B-048文件(即使它似乎是不同的开发套件),一切似乎都是正确的。

mt_dialog.
离线
最后一次露面:2天前1周
职员
加入:2015-06-08 11:34
嗨terry.lim,

嗨terry.lim,

That isn't an issue, i mean using the evaluation version of keil, and yes, all the projects are properly configured (from keil's perspective) in order to directly run on the kits with no extra configurations. Have you tried to redownload the project ? Perhaps something went wrong during download or due to keil installation or version ? since i am not familiar with that specific error and also i am not able to replicate it. Using Keil 5.22.

谢谢mt_dialog.

JK_DIALOG.
离线
最后一次露面:2 weeks 1 day ago
职员
加入:2016-08-22 23:07
嗨特里,

嗨特里,

Could you check the User manual, in particular, Section 4.1 for connecting the IOT sensor kit to a CIB?

https://support.dialog-semicondiondiondum/system/files/restricted/um-b-06 ...

If this doesn't resolve it, can you make sure that under your project settings (right click on the project, go to to Options->Debug->JLink Settings), make sure that this is set to SW and not Standard JTAG.

/JK

terry.lim.
离线
最后一次露面:3 years 3 weeks ago
加入:2018-01-11 19:10
我很确定我做了所有

我很确定我已经完成了所有这些,但是当我有机会时,我会再试一次。

gme_johannes
离线
最后一次露面:3天14小时前
加入:2017-12-22 10:09
我面临着同样的问题

我面临着同样的问题with the IoT Kit.
Hopefully it is ok to post this very related question here. Let me know if I should open a new thread.

我正在使用物联网固件da1458x_iot \ v5.160.1.19运行keilμvisionv5.24.2.0。

Please find attache screenshots of the configuration.
If I set "Use Target Driver for Flash Programming" the log yields


Load "D:\\GME\\Downloads\\Dialog\\DA1458x_IOT\\v5.160.1.19\\projects\\target_apps\\wrbl\\wrbl_sfl\\Keil_5\\out_583\\wrbl_sfl_583.axf"
设置JLink项目文件to "D:\GME\Downloads\Dialog\DA1458x_IOT\v5.160.1.19\projects\target_apps\wrbl\wrbl_sfl\Keil_5\JLinkSettings.ini"
*JLink Info: Device "CORTEX-M0" selected.
jlink信息:
-------------
DLL: V6.16c, compiled Jun 16 2017 18:14:49
固件:J-Link Ob-Sam3u128 V3编译Jun 13 2017 10:37:47
硬件:v3.00
S / N:483014303
功能:RDI
*JLink Info: Found SW-DP with ID 0x0BB11477
* JLINK INFO:扫描AP,在第一个AHB-AP中停止。
*JLink Info: AP[0] IDR: 0x04770021 (AHB-AP)
*JLink Info: AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
*JLink Info: CPUID reg: 0x410CC200. Implementer code: 0x41 (ARM)
* jlink信息:找到cortex-m0 r0p0,小endian。
* jlink信息:fpUnit:4代码(BP)插槽和0个字幕插槽
* jlink信息:coresight组件:
*JLink Info: ROMTbl[0] @ E00FF000
* jlink信息:romtbl [0] [0]:e000000,cid:b105e00d,pid:000bb008 scs
*JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
* JLINK INFO:ROMTBL [0] [2]:E0002000,CID:B105E00D,PID:000BB00B FPB
romtableddr = 0xe00ff000
* jlink信息:设置aircr.sysresetreq
Target info:
-------------
设备:ARMC0.
VTarget = 3.300V
State of Pins:
TCK:0,TDI:1,TDO:1,TMS:1,TRES:1,TRST:1
硬件断点:4
软件断点:8192
观察点:2
JTAG speed: 1000 kHz
没有找到算法:00000000H - 0000009FH
没有找到算法:00000160H - 00000323H
No Algorithm found for: 00000340H - 000003E3H
没有找到算法:00000440H - 000080EBH
Programming skipped!
错误:Flash下载失败 - “Cortex-M0”
闪存负载在11:08:06完成

如果我设置“使用Flash编程外部工具”,则错误消息与提到的OP相同

When I try to start a debug session I get a "Cannot Access Memory" pop-up, some debug windows show up briefly and then disappears.

I was able to quickly copy what appears in the debug output:

使用代码大小限制:32K
将JLink项目文件设置为“D:\ Gme \ Downloads \ Dialog \ Da1458x_iot \ v5.160.1.19 \ projects \ target_apps \ wrbl \ wrbl_sfl \ keil_5 \ jlinksettings.ini”* jlink信息:设备“cortex-m0”所选。
jlink信息:
-------------
DLL: V6.16c, compiled Jun 16 2017 18:14:49
固件:J-Link Ob-Sam3u128 V3编译Jun 13 2017 10:37:47
硬件:v3.00
S / N:483014303
功能:RDI
*JLink Info: Found SW-DP with ID 0x0BB11477
* JLINK INFO:扫描AP,在第一个AHB-AP中停止。
*JLink Info: AP[0] IDR: 0x04770021 (AHB-AP)
*JLink Info: AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
*JLink Info: CPUID reg: 0x410CC200. Implementer code: 0x41 (ARM)
* jlink信息:找到cortex-m0 r0p0,小endian。
* jlink信息:fpUnit:4代码(BP)插槽和0个字幕插槽
* jlink信息:coresight组件:
*JLink Info: ROMTbl[0] @ E00FF000
* jlink信息:romtbl [0] [0]:e000000,cid:b105e00d,pid:000bb008 scs
*JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
* JLINK INFO:ROMTBL [0] [2]:E0002000,CID:B105E00D,PID:000BB00B FPB
romtableddr = 0xe00ff000
* jlink信息:设置aircr.sysresetreq
Target info:
-------------
设备:ARMC0.
VTarget = 3.300V
State of Pins: TCK: 0, TDI: 1, TDO: 1, TMS: 1, TRES: 1, TRST: 1
硬件断点:4
软件断点:8192
观察点:2
JTAG speed: 1000 kHz
Load "D:\\GME\\Downloads\\Dialog\\DA1458x_IOT\\v5.160.1.19\\projects\\target_apps\\wrbl\\wrbl_sfl\\Keil_5\\out_583\\wrbl_sfl_583.axf"
***具有32768字节代码大小限制的限制版本
***目前使用:32692字节(99%)
Cannot access Memory
***error 57: illegal address (0x00000160)
包括“d:\\ gme \\ downloads \\对话框\\ da1458x_iot \\ v5.160.1.19 \\ projects \\ target_apps \\ wrbl \\ wrbl_sfl \\ keil_5 \\ .. \\ .. \\ ..\\ .. \\ .. \\ sdk_580 \\ sdk \\ common_project_files \\ misc \\ sysram_0x0.ini“
重启
E long 0x50000012 = 0xa6
__ ^
***错误121,第2行:AGDI:在执行时无法访问目标
E long 0x50003308 = 0x2e
__ ^
***错误121,第3行:AGDI:在执行时无法访问目标
加载%L.
***具有32768字节代码大小限制的限制版本
***目前使用:32692字节(99%)
***error 57: illegal address (0x00000160)
SP = _RDWORD (0x00000000) // Use for base address 0x00000000
_____ ^
***error 121, line 6: AGDI: cannot access target while executing
$ = _rdword(0x00000004)
____^
***error 121, line 7: AGDI: cannot access target while executing

JK_DIALOG.
离线
最后一次露面:2 weeks 1 day ago
职员
加入:2016-08-22 23:07
嗨,请参阅附件

嗨,请参阅附件screenshots of working configuration.

我在我的项目中看到的两个主要差异是我在启动时在启动时加载应用程序,而且在实用程序中使用外部工具for flash编程(没有空的参数。

请参阅上传。

附件: