Hi, I have a DA14585 basic development kit and am attempting to run the ADXL345 I2C to bluetooth demo (关联)。要设置示例的Python脚本在没有错误的情况下运行,并且项目在keil uvision5中编译,而不错误或更改任何设置。安装和工作J-Link软件V6.40。
一世have run other demos in the past (1wire example, i2c_eeprom, etc) without issue so I assume this is not a hardware problem.
The issue is when I go to run the debugger. The default setting (under Options for target > debug) is to useULINK2/ME Cortex Debugger这显然失败了,因为我的电路板有J-Link调试器。
当我纠正此设置时(切换到J-LINK / J-TRACE Cortex),我收到错误,Flash下载失败 - “Cortex-M0”。下面列出了构建输出。
一世assume this is because my board does not have a flash chip on it, and that code must be loaded to the ROM. How do I correct this?
谢谢!
load“c:\\ users \\ me \\ downloads \\ i2c_accel_data_notiifcation \\ i2c_accel_data_notiifcation \\ project_environment \\ out_585 \\ adxl345_585.axf”将jlink项目文件设置为“c:\ users \ me \ downloads \ i2c_accel_data_notiifcation \ i2c_accel_data_notiifcation \project_environment \ jlinksettings.ini“* jlink信息:选择”cortex-m0“选择。jlink信息:------------ DLL:v6.46,2019年5月23日编译17:49:56固件:J-Link ob-Sam3u128 V1编译1月7日2019 14:05:40硬件:v1.00 s / n:480061187 * jlink信息:找到带ID 0x0BB11477 * JLINK INFO的SW-DP:扫描AP地图查找所有可用的APS * JLINK INFO:AP [1]:AP地图结束时停止了AP扫描达到* jlink信息:AP [0]:AHB-AP(IDR:0x04770021)* JLINK信息:通过AP地图迭代以查找AHB-AP使用* JLINK INFO:AP [0]:Core找到* JLINK INFO:AP [0]:AHB-AP ROM基础:0xE00FF000 * JLINK INFO:CPUID寄存器:0x410cc200。实施者代码:0x41(ARM)* JLINK信息:找到Cortex-M0 R0P0,Little Endian。* jlink信息:fpUnit:4代码(BP)插槽和0个文字插槽* JLINK信息:Coresight组件:* jlink信息: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信息:重置:通过demcr.vc_corereset重置后停止核心。* jlink信息:重置:通过aircr.sysresetreq重置设备。目标信息:------------设备:ARMCM0 VTarget = 3.300V引脚状态:TCK:0,TDI:1,TDO:1,TMS:1,TRES:1,TRST:1硬件- Breakpoints:4软件断点:8192观察点:2 JTAG速度:2667 kHz无算法用于:07FC0000H - 07FC009FH无算法:07FC0510H - 07FC7A27H擦除! Error: Flash Download failed - "Cortex-M0" Flash Load finished at 09:01:02
设备:

好吧,这是一种embarrassing, but maybe it will help someone else with the same problem.
Under Options for target > Debug >J-Link / J-Trace Cortex设置>闪存下载,我选择了不要抹去并取消选择所有3程序,验证,resetand运行选项也是如此。
Debugger现在运行,我可以在手机上使用BLE Scanner应用程序连接到我的电路板。
Was this the correct solution???
嗨ahiggs,
这种错误的最可能原因是为什么在Keil IDE中未正确检测到JTAG。在通过KEIL IDE下载固件时,二进制图像存储在系统内部和芯片靴中。为此,“请勿擦除”选项不会影响工具环境设置,因为没有选择将代码下载到SPI Flash中的函数,并使用Keil IDE。请查找附上推荐的-Link / J-Trace Cortex设置。下次获取这些错误时,您应该导航到目标>调试> J-Link / J-Trace Cortex设置的选项,确保窗口中出现SN和SWD Idcode,然后按OK。为您的信息,如果您想将FW下载到外部SPI闪光灯中,则应使用SmartSnippets Toolbox中的Flash Programmer。有一个选择通过UART或JTAG下载FW。该工具可在DA14585 / 586产品页面上使用。请记住,将FW下载到系统RAM中,二进制代码将在每个引导或重置中丢失。
Thanks, PM_Dialog
感谢你的回复。我看过你附着的jlink设置,它们与我已经使用的jlink设置相同。S / N和我的电路板的IDCODE都显示出来。
嗨ahiggs,
Thanks for the update. Since you have the appropriate S/N and IDcode this should be enough, and you should able to download/debug the project. If you found the answer useful, please mark it as “accepted”.
Thanks, PM_Dialog
我似乎能调试项目,但仍然l am not sure why I wasn't able to debug this project in the same way as the others that I've experimented with
嗨ahiggs,
可能在Keil IDE中未正确检测到JTAG。
Thanks, PM_Dialog