具有DA14585的新电路板未从Eclipse调试器加载Sysram

Learn MoreFAQsTutorials

6 posts / 0 new
Last post
Craig Flanagan
Offline
最后一次露面:1年9个月前
Joined:2016-04-25 20:17
具有DA14585的新电路板未从Eclipse调试器加载Sysram

Hello Dialog, I have a very odd problem. I have had some new boards made and the pin connections for the programming

interface are the same as the IOTMSK kit. Specifically, all of the lines going to the 10 pin connector which connects to the

CIB board are connected to the same processor pins (DA14585) as is shown in the schematic for the IOTMSK kit.

I am able to go into SmartSnippets Toolbox in SmartSnippets Studio using either JTAG or UART ONLY and then

from within the toolbox program and load a compiled hex file using the Booter option into Sysram. This works as noted

使用JTAG或UART仅选项。所以它看起来像工具箱至少可以将代码加载到我的sysram中

new boards using either JTAG or UART. Now the problem is that I have been using the Eclipse compiler to develop

code and when I try to run the Eclipse debugger with my new boards attached I would expect that Eclipse would just

在启动调试器时为IOTMSK板进行编程SYSRAM,但它不起作用。调试器崩溃了

with this message:

J-Link GDB Server failed: Could not connect to target. Please check if target is powered and if ribbon cable is plugged properly

有关更多详细信息,请参阅JlinkgdBserverCl.exe控制台。

这显然给我的印象是如此mething wrong with my connection but as noted it should be the same

正如IOTMSK上的那样。对于可能导致这一点的想法,我不一致。有任何想法吗?有什么我需要的

to do to prepare these new chips for interfacing with the eclipse debugger? I am stumped. Any help would be

appreciated. Craig

Keywords:
Device:
PM_DIALOG.
Offline
最后一次露面:12 hours 37 min ago
Staff
Joined:2018-02-08 11:03
Hi Craig Flanagan,

Hi Craig Flanagan,

Apologies but I am a little bit confused with your question, so I need some clarifications in order to understand your issue. Are you using the DA14585 IoT Multi-Sensor hardware or you have designed a custom board based on our reference design? Did you follow the AN-B-064 document?

//www.xmece.com/sites/default/files/an-b-064_da14585_iot_sensors_reference_application_with_eclipsegcc.pdf

Also, when using the SmartSnippets toolbox you are not able to download the firmware into the System-RAM, so I supposes that you burnt the SPI flash, is that correct?

谢谢,PM_DIALOG.

Craig Flanagan
Offline
最后一次露面:1年9个月前
Joined:2016-04-25 20:17
Sorry I was not clear, let me

Sorry I was not clear, let me try to do a bit better this time:

1. I did follow the AN-B-064 in setting up the Eclipse IDE to work with my DA14585 IOTMSK board/kit. It works fine.

2. I can compile and debug fine in Eclipse using my DA14585 IOTMSK kit/board, I have been using this configuration

for a number of weeks now with no issues.

3. I created a custom board. This custom board has a DA14585 processor and includes the equivalent 10 pin header as the

DA14585 IOTMSK套件/电路板和与处理器相同的头部连接(所以我期望它会正常工作

using Eclipse).

4. When I remove the IOTMSK kit/board from the 10 pin ribbon cable and hook up the ribbon cable to my board, the Eclipse debugger

不会加载,我收到以下错误:

J-Link GDB Server failed: Could not connect to target. Please check if target is powered and if ribbon cable is plugged properly

有关更多详细信息,请参阅JlinkgdBserverCl.exe控制台。

5.我怀疑我的新板硬件问题,所以我检查了所有引脚连接,一切都很好。此外,我进入了Keil

(要测试自定义板)并能够加载和调试SmartTag应用程序。我指出了蓝牙通信是

also working fine from my custom board to my smartphone. Thus, the custom board hardware is clearly working with no issues in the KEIL

environment.

6. Here is the jlink log file posted after my custom board failed to load the debugger (which I have been looking at but really dont know how to interpret):

Segger J-Link GDB Server v6.14h logfile
Logging started @ 2019-04-08 15:02
03-00000000-00-00000000-0023:----- GDB服务器启动设置-----
03-00000000-00-00000000-0023: GDBInit file: none
03-00000000-00-00000000-0023: GDB Server Listening port: 2331
03-00000000-00-0000000000-0023:SWO原始输出聆听端口:2332
03-00000000-00-0000000000-0023:端子I / O端口:2333
03-00000000-00-0000000000-002D:接受远程连接:仅限LocalHost
03-00000000-00-00000000-0021: Generate logfile: on
03-00000000-00-00000000-0021: Verify download: on
03-00000000-00-00000000-0021: Init regs on start: on
03-00000000-00-00000000-0022: Silent mode: off
03-00000000-00-00000000-0021: Single run mode: on
03-00000000-00-00000000-0023: Target connection timeout: 0 ms
03-0000000000-00-00000002-0023:------ J-LINK相关设置------
03-00000000-00-00000002-0022: J-Link Host interface: USB
03-00000000-00-00000002-0023: J-Link script: none
03-00000000-00-00000002-0023: J-Link settings file: none
03-00000000-00-00000002-0023: ------Target related settings------
03-00000000-00-00000002-0028: Target device: Cortex-M0
03-00000000-00-00000002-0022: Target interface: SWD
03-00000000-00-00000002-0026: Target interface speed: 8000kHz
03-00000000-00-00000002-0025: Target endian: little
03-00000000-00-00000003-0017: Connecting to J-Link...
02-0000000000-00-00000011-003D:固件:J-Link OB-SAM3U128 V3编译1月7日2019 14:06:26
02-00000000-00-00000011-000F: Hardware: V3.00
02-00000000-00-00000011-000E: S/N: 483031254
02-00000000-00-00000021-0052: Feature(s): RDIWEBSRV Webserver running on local port 19080 (0018ms, 0018ms total)
02-00000000-00-00000021-0033:T28CC 000:007返回O.K.(总计0018ms,0018ms)
03-0000000000-00-00000021-0014:J-Link已连接。
02-0000000000-00-00-00-00000213-00B3:T28CC 000:026 JLink_execCommand(“设备= Cortex-M0”,......)。C:\ Program Files(x86)\ segger \ jlink_v614h \ jlinkdevices.xml成功进行了评估。返回0x00(0191ms,总计0209ms)
02-00000000-00-00000214-006A: T28CC 000:218 JLINK_ExecCommand("SetFlashRewriteBehavior = 1", ...). returns 0x00 (0000ms, 0210ms total)
02-00000000-00-00000214-0041: T28CC 000:218 JLINK_GetFirmwareString(...) (0000ms, 0210ms total)
03-00000000-00-00000214-003D: Firmware: J-Link OB-SAM3U128 V3 compiled Jan 7 2019 14:06:26
02-0000000000-00-00-00000214-004F:T28CC 000:218 JLink_Gethardwareversion()返回0x7530(0000ms,总计0210ms)
03-00000000-00-00000214-000F: Hardware: V3.00
03-00000000-00-00000215-000E: S/N: 483031254
03-00000000-00-00000215-000F: Feature(s): RDI
02-00000000-00-00-00000215-0049:T28CC 000:219 JLink_Gethwstatus(...)返回0x00(0000ms,总计0210ms)
02-00000000-00-00000215-003C: T28CC 000:219 JLINK_EnableSoftBPs(ON) (0000ms, 0210ms total)
03-00000000-00-00000215-001A: Checking target voltage...
03-00000000-00-00000216-0016: Target voltage: 3.30 V
03-00000000-00-00000216-001D: Listening on TCP/IP port 2331
03-0000000000-00-00000216-0017:连接目标......
02-0000000000-00-0000000216-0035:T28CC 000:220 jlink_clrerror()(总计0210ms)
02-0000000000-00-00-00000216-0049:T28CC 000:220 jlink_gethwstatus(...)返回0x00(0000ms,总计0210ms)
02-00000000-00-00000217-0055: T28CC 000:220 JLINK_TIF_Select(JLINKARM_TIF_SWD) returns 0x00 (0001ms, 0211ms total)
02-00000000-00-00000217-0039: T28CC 000:221 JLINK_SetSpeed(8000) (0000ms, 0211ms total)
02-0000000000-0044:T28CC 000:221 jlink_getspeed()返回0xa6b(0000ms,总计0211ms)
02-00000000-00-00000217-0077: T28CC 000:221 JLINK_SetResetType(JLINKARM_RESET_TYPE_NORMAL) returns JLINKARM_RESET_TYPE_NORMAL (0000ms, 0211ms total)
02-0000000000-00-0000000217-003B:T28CC 000:221 JLink_SetResetdelay(0)(0000ms,总计0211ms)
02-0000000000-0055:T28CC 000:221 jlink_setendian(ARM_ENDIAN_LITTE)返回0x00(0000ms,总计0211ms)
02-0000000000-00-00CC:T28CC 000:221 JLINK_CONNECT()> 0x10B TIF>使用ID 0x0BB11477找到SW-DP> 0x0D TIF>> 0x28 TIF>> 0x0d TIF >>> 0x30 TIF >> 0x0D TIF >> 0x28tif>没有预选的ap。假设AP [0]是AHB-AP> 0x0D TIF>> 0x28 TIF >> 0x0D TIF >>>> 0x0D TIF>> 0x28 TIF >>>> 0x0d TIF >> 0x21 TIF >> 0x0x0d tif >> 0x21 tif>>>>> 0x0d tif >>>>> 0x0d tif >>> 0x21 tif >> 0x0d tif >>>>>21 tif >> 0x0d tif >>>>> 0x21 tif >> 0x0d tif> >> 0x21 tif >> 0x0d tif >>>>>0x0d tif >>>>>>>>>> 0x0d tif >>> 0x21 tif >>> 0x0d tif >>> 0x21 tif >> 0x0d tif>
02-00000000-00-00000234-01FA: >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF>
02 - 00000000 - 00 - 00000244 - 01 - fa: > 0气管无名动脉瘘管的x21 > > 0 x0d TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF>
02-0000000000-00-00-00000252-01FA:> 0x21 TIF >>>>>>>>>>>>>>>> 0x0D TIF >>>> 0x21 TIF >> 0x0D TIF >> 0x21 TIF >> 0x0D TIF >>> 0x21 TIF >>>>>>>> 0x21 tif >>>>> 0x21 tif >>>>> 0x0d tif >> 0x0d tif >>> 0x21 tif >> 0x0d tif >>>>>21 tif >> 0x0d tif >>>>>>>>>>>>>>>>>TIF >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 0x0D TIF >> 0x21 TIF >>>>> 0x0d TIF >> 0x21 TIF >> 0x0x0d TIF >>>>>>>>>>>>> 0x0D TIF >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
02-00000000-00-00000261-01FA: >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF>
02-00000000-00-00000269-01FA: >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF>
02-0000000000-00-0000027-01FA:> 0x21 TIF >>>> 0x0d TIF >>>>> 0x0d TIF >>>> 0x21 TIF >>> 0x0D TIF >>> 0x21 TIF >> 0x0D TIF >> 0x21 TIF >>>>>>>> 0x21 tif >>>>> 0x21 tif >>>>> 0x0d tif >> 0x0d tif >>> 0x21 tif >> 0x0d tif >>>>>21 tif >> 0x0d tif >>>>>>>>>>>>>>>>>TIF >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 0x0D TIF >> 0x21 TIF >>>>> 0x0d TIF >> 0x21 TIF >> 0x0x0d TIF >>>>>>>>>>>>> 0x0D TIF >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
02-00000000-00-00000285-01FA: >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF>
02-0000000000-00-00000293-01FA:> 0x21 TIF >>>>>>>>>>>>> 0x0D TIF >>>>> 0x21 TIF >> 0x0D TIF >>>> 0x21 TIF >> 0x0D TIF >> 0x21 TIF>> 0x0d TIF >>> 0x21 tif >>>>> 0x21 tif >>>>> 0x0d tif >> 0x0d tif >>> 0x21 tif >> 0x0d tif >>>>>21 tif >> 0x0d tif >>>>>>>>>>>>>>>>>TIF >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 0x0D TIF >> 0x21 TIF >>>>> 0x0d TIF >> 0x21 TIF >> 0x0x0d TIF >>>>>>>>>>>>> 0x0D TIF >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
02-0000000000-00C:> 0x21 tif >>>>> 0x0d tif >>>> 0x0d tif >>>> 0x21 tif >> 0x0d tif >>> 0x21 tif >> 0x0d tif >>>>> 0x0d tif >> 0x21 tif >> 0x0d tif >>> 0x21 tif >>> 0x0d tif >>> 0x21 tif>无法上电调试电源域。> 0x0d tif >>>> 0x0d tif >> 0x0d tif >>> 0x0d tif >>>> 0x0d tif>
02-00000000-00-00000350-0109: ***** Error: DAP error while reading AHB-AP IDR. >0x10B TIF>Found SW-DP with ID 0x0BB11477 >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x30 TIF> >0x0D TIF> >0x28 TIF>No AP preselected. Assuming that AP[0] is the AHB-AP >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x30 TIF> >0x0D TIF>
02-00000000-00-00000353-0113: >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x30 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x30 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF>AP-IDR: 0x00030003, Type: Custom AP (Unknown) returns 0xFFFFFEFB (0136ms, 0347ms total)
03-00000000-00-00000353-002A: ERROR: DAP error while reading AHB-AP IDR.
03-00000000-00-00000353-0023: ERROR: Could not connect to target.
03-00000000-00-00000353-0035:目标连接失败。GDBSERVER将关闭......
03-00000000-00-00000365-0037: Restoring target state and closing J-Link connection...
02-00000000-00-00000365-0041: T28CC 000:369 JLINK_IsOpen() returns 0x01 (0000ms, 0347ms total)
02-00000000-00-00000365-0058: T28CC 000:369 JLINK_ExecCommand("ClrAllBPs", ...). returns 0x00 (0000ms, 0347ms total)
03-0000000000-00-00000398-0010:关闭...

7.此时,鉴于我的定制板在Keil IDE中工作,但在每个附加的日志文件中在Eclipse中工作,我陷入困境。任何想法都会有所帮助。

Craig

Craig Flanagan
Offline
最后一次露面:1年9个月前
Joined:2016-04-25 20:17
解决问题(我相信)

解决问题(我相信)

I suspected a download speed issue. So within Eclipse I selected "run" then "debug configurations" then in the left

panel double click GDB SEGGER J-LINK DEBUGGING then on the right select the debugger tab then set

初始速度小于它的8k。我选择了1000 kHz。现在重新编译和调试

the debugger will not give you the error message again....

PM_DIALOG.
Offline
最后一次露面:12 hours 37 min ago
Staff
Joined:2018-02-08 11:03
Hi Craig Flanagan,

Hi Craig Flanagan,

So, you figured your issue out, didn’t you? Thanks for your indication! Do you need any other support on that?

Thanks. PM_Dialog

Craig Flanagan
Offline
最后一次露面:1年9个月前
Joined:2016-04-25 20:17
我很好谢谢。

我很好谢谢。