我有一个干净的设置,编译了SPS演示,在基本套件中编程它
Then I hooked it up to a PAN1740. Have set the I2C pins and UART right, connected the JTAG-SWD pins and was able to program the EEPROM with SmartSnippets.
The device advertises and I can connect.
So now I want to overwrite the program with another version so I connect again and it can not find any core connected anymore, changed programmers, tried again. I get this:
[ERROR @15-12-09 23:55:21] No known chip found while opening JLink connection. Terminating proccess...
[信息@ 15-12-09 23:55:21]将固件文件下载到电路板上。
[INFO @15-12-09 23:55:51] Could not measure total IR len. TDO is constant high.
[INFO @15-12-09 23:55:51] Could not measure total IR len. TDO is constant high.
[INFO @15-12-09 23:55:52] Could not measure total IR len. TDO is constant high.
[INFO @15-12-09 23:55:52] Could not measure total IR len. TDO is constant high.
[INFO @15-12-09 23:55:52] Could not measure total IR len. TDO is constant high.
[ERROR @15-12-09 23:55:52] Could not read memory.
[ERROR @15-12-09 23:55:52] No known chip found while opening JLink connection. Terminating proccess...
[INFO @15-12-09 23:55:52] Failed downloading firmware file to the board.
[INFO @15-12-09 23:56:37] Could not measure total IR len. TDO is constant high.
[INFO @15-12-09 23:56:37] Could not measure total IR len. TDO is constant high.
我挂了基本董事会
[INFO @15-12-09 23:56:37] Found SWD-DP with ID 0x0BB11477
[INFO @15-12-09 23:56:37] FPUnit: 4 code (BP) slots and 0 literal slots
[信息@ 15-12-09 23:56:37]发现Cortex-M0 R0P0,Little Endian。
[INFO @15-12-09 23:56:38] BTLE device selected.
[info @ 15-12-09 23:56:38]固件文件c:\ ws \ smartsnippets \资源\ jtag_programmer.bin已被选中以下载。
[INFO @15-12-09 23:56:38] Started reading 256 bytes from address 47F00.
[INFO @15-12-09 23:56:38] Reading is complete. Read 256 bytes.
[info @ 15-12-09 23:56:38]成功下载了固件文件到电路板。
Connected the PAN1740 again, no changes in setup
[INFO @15-12-09 23:59:50] SYSRESETREQ has confused core. Trying to reconnect and use VECTRESET.
[警告@ 15-12-09 23:59:50]无法重置CPU。Vectreeset有困惑的核心。
[WARNING @15-12-09 23:59:50] CPU did not halt after reset.
[WARNING @15-12-09 23:59:50] CPU could not be halted
[INFO @15-12-09 23:59:50] Core did not halt after reset, trying to disable WDT.
[WARNING @15-12-09 23:59:50] CPU did not halt after reset.
[WARNING @15-12-09 23:59:50] CPU could not be halted
[WARNING @15-12-09 23:59:50] Could not set S_RESET_ST
[INFO @15-12-09 23:59:51] SYSRESETREQ has confused core. Trying to reconnect and use VECTRESET.
[警告@ 15-12-09 23:59:51]无法重置CPU。Vectreeset有困惑的核心。
[WARNING @15-12-09 23:59:51] CPU did not halt after reset.
[WARNING @15-12-09 23:59:51] CPU could not be halted
[info @ 15-12-09 23:59:51]核心重置后没有停止,尝试禁用WDT。
[WARNING @15-12-09 23:59:51] CPU did not halt after reset.
[WARNING @15-12-09 23:59:51] CPU could not be halted
[WARNING @15-12-09 23:59:52] Could not set S_RESET_ST
[ERROR @15-12-09 23:59:52] Failed writing value A7 at address 50000012.
[INFO @15-12-09 23:59:52] Failed downloading firmware file to the board.
So now I'm confused. Any pointers???
问候,罗兰
Hi roland,
你能plase check the selections you have on the Options for Target -> Debug-> Settings and make sure that SW interface is selected (are you able to see your SW device in the dialog box and your Jlink ?), also please have a look at the utilities tab and make sure that the option "Use External Tool for Flash programming is selected".
Thanks MT_dialog
亲爱的mt_dialog ,,
First of all thanks for the quick reply.
I use the SWDIO/SWCLK interface. None of the settings other than changing between seggers and tried again.
One thing I experienced is the following output in SmartSnippets when I started again:
[INFO @15-12-10 22:22:14] TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
[INFO @15-12-10 22:22:16] ID mismatch. Expected 0223, found 2A74
…另一个7试…
[INFO @15-12-10 22:22:19] ID mismatch. Expected 0223, found 2A74
[ERROR @15-12-10 22:22:19] Could not read memory.
[错误@ 15-12-10 22:22:19]在打开jlink连接时没有发现已知的芯片。终止Proccess ...
[信息@ 15-12-10 22:22:19]正在进行的调试模式已禁用。
[info @ 15-12-10 22:22:19]将固件文件下载到电路板上失败。
I prepared a fresh and new PAN1740 equipped PCB and bingo it works directly. I can connect, read OTP, EEPROM as what was possible before with the "defective" PAN1740.
I prepared another fresh and third PAN1740 based board and programmed it. With this one I can do everything as expected.
So I have now 2 out of 3. But no real explanation. I traced back what I have done...
1)我可以改变Smartsnippet的设置吗?
-- nothing that could damage the processor/OTP as the Vpp is not connected.
2) could I have done something in the code that could lock up the device?
-- the settings in the da14580_config.h file have changed, however the change seems unrelated.
/ *构建OTP或JTAG * /
#define development_debug 0 // 0:OTP的代码,1:通过JTAG代码
-----> Putting code in EEPROM is the same as if it were the OTP for the compiler I presume, so this should be "0"
/ *从OTP内存启动 - 引导加载程序将OTP标题复制到Sysram * /
#undef app_boot_from_otp.
-----> This must be #undef when using an EEPROM instead of the OTP itself?
/*NVDS structure is padded with 0 - NVDS struture data must be written in OTP in production procedure*/
#undef READ_NVDS_STRUCT_FROM_OTP
----> with the defective PAN the READ_NVDS_STRUCT_FROM_OTP was set as #define. WIth the two other PAN's it was set to #undef. Reason to change was the tip I got to check this because the defined name in .NVDS_TAG_DEVICE_NAME would not appear.
那么对Pan1740不能再连接的为什么有教育的猜测是什么?
此致,
R
Hi ronald,
您可以在您的软件中做任何事情,以便keil或智能片段无法与它连接。同样在智能片段内,由于您使用的是JTAG接口,没有配置您可以调整的配置,以便打破与DA的通信。由于您处于开发模式,您应该将CFG_Development_Debug留给1,因为它将帮助您跟踪错误并使您的生活更轻松,但仍然不是您的设备无法连接的原因。您是否尝试使用UART接口将代码下载到平移?还可以通过Keil查看您的设备,例如阅读其S / N?
Thanks MT_dialog