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; unsigned int min_delta;
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_log [1] .used_sz,mem_log [1] .max_used_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_log [2] .used_other_sz,mem_log [2] .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,
这是我们的英文论坛,客户用英语发布他们的问题。所以,请尝试用英语翻译你的问题。否则,您可以在中国论坛中发布您的问题。
谢谢,PM_DIALOG.
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.
谢谢,PM_DIALOG.
嗨,pm_dialog
我将详细描述我的问题。
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;
unsigned int min_delta;
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_log [1] .used_sz,mem_log [1] .max_used_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_log [2] .used_other_sz,mem_log [2] .max_used_other_sz);
printf(">>> Non-Ret HEAP <<<\n");
printf(“此堆中的使用大小:%4d(当前) - %4d(最大)\ n”,mem_log [3] .use_sz,mem_log [3] .max_used_sz);
printf(“其他堆中的使用大小:%4d(current) - %4d(最大)\ n \ n”,mem_log [3] .used_other_sz,mem_log [3] .max_used_other_sz);
exec(“注销”);
} // disp_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_sdk5.0.1从官方网站下载的程序的版本也没有问题。
请帮我解决这个问题。
谢谢,Qyt.
Hi Qyt,
您能否向我提供一些关于您的问题的额外投入?您使用的是我们的任何开发板或您有定制董事会吗?您是否能够下载固件表单中的任何其他示例的SDK进入System-RAM?
From the Keil environment, please navigate to:
项目 - >目标选项 - >调试 - >设置(右上角)
之后,您应该能够看到J-Link的序列号。按OK并尝试将固件下载到HE System-RAM中。
谢谢,PM_DIALOG.
嗨,pm_dialog
我有一个自定义板。我可以从SDK的任何其他示例下载到System-RAM的固件。只有这个DSP的示例才有问题,我知道Keil环境的配置没有问题。我还可以看到jlink的序列号,然后单击确定,但仍然会在前面描述的问题。
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
谢谢,PM_DIALOG.
Hi,PM_Dialog
谢谢你的回答,我已经解决了以前的问题,现在我有一个新的问题我想问一下,同样的是DSPS程序,我只能在运行后发送数据,不可接受数据,是否是在程序中完成了什么修改?
谢谢,Qyt.
Hi Qyt,
很高兴你读了你的问题,如果你发现我的答案有用请标记它。你能澄清第二个问题吗?您将DA14580连接到DSPS移动应用程序,不是吗?您是否在源代码中进行了任何修改?请注意,如果使用扩展睡眠模式,则必须使用UART流量控制(HW for SW流量控制)。否则,你将无法醒来。
谢谢,PM_DIALOG.
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”.
谢谢,PM_DIALOG.
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.
谢谢,PM_DIALOG.