I downloaded the latest DSPS program on the official website, but when I enter the debug mode when I run the program, the program is easy to run. Is there any place to modify the downloaded program? How can I enter debug mode normally? The chip I am using is DA14580.
Could you please clarify your question? You mean that after downloading the firmware into the System-RAM and you still have attached the debuggers, you would like to modify the firmware? If yes, this is not possible/
如何正常进入调试模式?
I would strongly recommend you to have a look atTutorial 8: Debugging methodswhich is describing how to debug your code.
I used the keil IDE to open the engineering v5.15 version of DSPS. There was a problem in the process of opening the debug mode.When I start debug session and run it,command will print the following information:
FUNC void disp_memlog(void) { int idx; 无符号整数最小增量;
exec(“log>Memlog.log”);
printf("\n\n*** Memory Logging Results ***\n\n");
printf(">>> ENV HEAP <<<\n"); printf("Used size in this HEAP : %4d (current) - %4d (maximum)\n", mem_log[0].used_sz, mem_log[0].max_used_sz); printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n", mem_log[0].used_other_sz, mem_log[0].max_used_other_sz);
printf(">>> DB HEAP <<<\n"); printf(“此堆中使用的大小:%4d(当前)-%4d(最大)\n”,mem\u log[1]。Used\u sz,mem\u log[1]。max\u Used\u sz); printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n", mem_log[1].used_other_sz, mem_log[1].max_used_other_sz);
**JLink Warning: CPU could not be halted ***JLink错误:CPU运行时无法读取寄存器15(R15) ***JLink Error: Can not read register 16 (XPSR) while CPU is running ***JLink Error: Can not read register 0 (R0) while CPU is running ***JLink错误:CPU运行时无法读取寄存器1(R1) ***JLink Error: Can not read register 2 (R2) while CPU is running ***JLink错误:CPU运行时无法读取寄存器3(R3) ***JLink Error: Can not read register 4 (R4) while CPU is running ***JLink Error: Can not read register 5 (R5) while CPU is running ***JLink Error: Can not read register 6 (R6) while CPU is running ***JLink错误:CPU运行时无法读取寄存器7(R7) ***JLink Error: Can not read register 8 (R8) while CPU is running ***JLink错误:CPU运行时无法读取寄存器9(R9) ***JLink Error: Can not read register 10 (R10) while CPU is running ***JLink错误:CPU运行时无法读取寄存器11(R11) ***JLink Error: Can not read register 12 (R12) while CPU is running ***JLink错误:CPU运行时无法读取寄存器13(R13) ***JLink错误:CPU运行时无法读取寄存器14(R14) ***JLink错误:CPU运行时无法读取寄存器15(R15) ***JLink Error: Can not read register 16 (XPSR) while CPU is running ***JLink错误:CPU运行时无法读取寄存器17(MSP) ***JLink错误:CPU运行时无法读取寄存器18(PSP) ***JLink Error: Can not read register 20 (CFBP) while CPU is running
The DSPS projects is by default using the extended sleep mode, so if you change it into the active mode, could you please let me now if you have the same issue?
app_default_sleep_mode = ARCH_SLEEP_OFF ; // in user_config.h
No, you will not need to do any modification into the DSPS reference design in order to send data form your mobile to the PC. Could you please provide me some inputs on that? Which PC serial application are you using? And how are you tying to send data from the mobile to the PC? If you found any answer useful, please mark one of them as “accepted”.
I am using the DAPS app on your official website. I use this software to connect to the DA14580. I can send data to the phone on the PC, but I can't send data from the phone to the PC. It is not clear whether there is any configuration on the software side that needs to be modified.
PC的串口应用程序应该没问题,using the serial port assistant I usually use to print data. Whether the v5.15 version of the DSPS program can not print the data sent from the mobile phone in the serial port application. But I can use the V3.15 version of the DSPS program to send and receive data normally on the PC and mobile phones. So in order to realize the two-way sending and receiving function of data, I would like to know if there is any need to modify the version of V5.15.
In case you have a custom board, which UART pins are you using? Be aware that if you would like to use extended sleep mode, you should have UART flow control (either software or hardware). Otherwise you will not be able to wake-up, because the device goes into extended sleep mode between advertising or connection intervals.
Hi Qyt,
这是我们的英语论坛,客户用英语发表他们的问题。所以,请试着用英语翻译你的问题。否则,你可以在我们的中文论坛上发表你的问题。
谢谢,下午好
Hi,PM_Dialog
对不起,我再重复一遍我的问题。
I downloaded the latest DSPS program on the official website, but when I enter the debug mode when I run the program, the program is easy to run. Is there any place to modify the downloaded program? How can I enter debug mode normally? The chip I am using is DA14580.
谢谢,Qyt
Hi Qyt,
谢谢你把问题翻译成英语。
Could you please clarify your question? You mean that after downloading the firmware into the System-RAM and you still have attached the debuggers, you would like to modify the firmware? If yes, this is not possible/
I would strongly recommend you to have a look atTutorial 8: Debugging methodswhich is describing how to debug your code.
谢谢,下午好
嗨,下午好
我将详细描述我的问题。
I used the keil IDE to open the engineering v5.15 version of DSPS. There was a problem in the process of opening the debug mode.When I start debug session and run it,command will print the following information:
FUNC void disp_memlog(void)
{
int idx;
无符号整数最小增量;
exec(“log>Memlog.log”);
printf("\n\n*** Memory Logging Results ***\n\n");
printf(">>> ENV HEAP <<<\n");
printf("Used size in this HEAP : %4d (current) - %4d (maximum)\n", mem_log[0].used_sz, mem_log[0].max_used_sz);
printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n", mem_log[0].used_other_sz, mem_log[0].max_used_other_sz);
printf(">>> DB HEAP <<<\n");
printf(“此堆中使用的大小:%4d(当前)-%4d(最大)\n”,mem\u log[1]。Used\u sz,mem\u log[1]。max\u Used\u sz);
printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n", mem_log[1].used_other_sz, mem_log[1].max_used_other_sz);
printf(">>> MSG HEAP <<<\n");
printf("Used size in this HEAP : %4d (current) - %4d (maximum)\n", mem_log[2].used_sz, mem_log[2].max_used_sz);
printf(“在其他堆中使用的大小:%4d(当前)-%4d(最大)\n\n”,mem\u log[2]。Used\u other\u sz,mem\u log[2]。max\u Used\u other\u sz);
printf(">>> Non-Ret HEAP <<<\n");
printf(“此堆中使用的大小:%4d(当前)-%4d(最大)\n”,mem\u log[3]。Used\u sz,mem\u log[3]。max\u Used\u sz);
printf(“在其他堆中使用的大小:%4d(当前)-%4d(最大)\n\n”,mem\u log[3]。Used\u other\u sz,mem\u log[3]。max\u Used\u other\u sz);
exec(“注销”);
}//disp\u memlog()结束
**JLink Warning: CPU could not be halted
***JLink错误:CPU运行时无法读取寄存器15(R15)
***JLink Error: Can not read register 16 (XPSR) while CPU is running
***JLink Error: Can not read register 0 (R0) while CPU is running
***JLink错误:CPU运行时无法读取寄存器1(R1)
***JLink Error: Can not read register 2 (R2) while CPU is running
***JLink错误:CPU运行时无法读取寄存器3(R3)
***JLink Error: Can not read register 4 (R4) while CPU is running
***JLink Error: Can not read register 5 (R5) while CPU is running
***JLink Error: Can not read register 6 (R6) while CPU is running
***JLink错误:CPU运行时无法读取寄存器7(R7)
***JLink Error: Can not read register 8 (R8) while CPU is running
***JLink错误:CPU运行时无法读取寄存器9(R9)
***JLink Error: Can not read register 10 (R10) while CPU is running
***JLink错误:CPU运行时无法读取寄存器11(R11)
***JLink Error: Can not read register 12 (R12) while CPU is running
***JLink错误:CPU运行时无法读取寄存器13(R13)
***JLink错误:CPU运行时无法读取寄存器14(R14)
***JLink错误:CPU运行时无法读取寄存器15(R15)
***JLink Error: Can not read register 16 (XPSR) while CPU is running
***JLink错误:CPU运行时无法读取寄存器17(MSP)
***JLink错误:CPU运行时无法读取寄存器18(PSP)
***JLink Error: Can not read register 20 (CFBP) while CPU is running
我用Jlink下载了这个程序。我可以保证连接是正确的,因为用同样的方式调试DA1458x琰usdk5.0.1版本的程序从官方网站下载是没有问题的。
请帮我解决这个问题。
谢谢,Qyt
Hi Qyt,
你能就你的问题给我一些补充意见吗?您使用的是我们的开发板还是定制板?您是否能够从SDK的任何其他示例下载固件到系统RAM中?
From the Keil environment, please navigate to:
项目->目标选项->调试->设置(右角)
之后,您应该能够看到J-Link的序列号。按ok并尝试将固件下载到系统RAM中。
谢谢,下午好
嗨,下午好
我有一个自定义板。我可以从SDK的任何其他示例下载固件到系统RAM。只有这个dsp的例子有问题,我知道keil环境的配置没有问题。我还可以看到JLINK的序列号,并单击ok,但是仍然存在我前面描述的问题。
thanks,Qyt
Hi Qyt,
The DSPS projects is by default using the extended sleep mode, so if you change it into the active mode, could you please let me now if you have the same issue?
app_default_sleep_mode = ARCH_SLEEP_OFF ; // in user_config.h
谢谢,下午好
Hi,PM_Dialog
谢谢你的回答,我已经解决了以前的问题,现在我有一个新问题想问,同样是dsps程序,我只能在运行后发送数据,不能接受数据,是否要在程序中做什么修改?
谢谢,Qyt
Hi Qyt,
很高兴你解决了你的问题,如果你觉得我的答案有用请标记为接受。你能澄清一下你的第二个问题吗?您将DA14580与DSPS移动应用程序连接,是吗?你对源代码做了任何修改吗?请注意,如果您使用的是扩展睡眠模式,则必须使用UART流量控制(硬件或软件流量控制)。否则,你将无法醒来。
谢谢,下午好
Hi,PM_Dialog
我将DA14580连接到DSPS移动应用程序。我没有对源代码做任何更改。现在我可以通过电脑向手机发送数据,但我不能通过手机向电脑的串口发送数据。现在的数据传输是单向传输。我需要在DSPS程序中做一些修改来实现双向数据传输吗?
Thanks,Qyt
Hi Qyt,
No, you will not need to do any modification into the DSPS reference design in order to send data form your mobile to the PC. Could you please provide me some inputs on that? Which PC serial application are you using? And how are you tying to send data from the mobile to the PC? If you found any answer useful, please mark one of them as “accepted”.
谢谢,下午好
Hi,PM_Dialog
I am using the DAPS app on your official website. I use this software to connect to the DA14580. I can send data to the phone on the PC, but I can't send data from the phone to the PC. It is not clear whether there is any configuration on the software side that needs to be modified.
PC的串口应用程序应该没问题,using the serial port assistant I usually use to print data. Whether the v5.15 version of the DSPS program can not print the data sent from the mobile phone in the serial port application. But I can use the V3.15 version of the DSPS program to send and receive data normally on the PC and mobile phones. So in order to realize the two-way sending and receiving function of data, I would like to know if there is any need to modify the version of V5.15.
谢谢,Qyt
Hi Qyt,
In case you have a custom board, which UART pins are you using? Be aware that if you would like to use extended sleep mode, you should have UART flow control (either software or hardware). Otherwise you will not be able to wake-up, because the device goes into extended sleep mode between advertising or connection intervals.
谢谢,下午好