⚠️ Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
This is our English forum and customers posts their question in English. So, please try to translate your question in English. Otherwise, you can post your question in our Chinese forums.
Printf(“>>>非Ret堆<<< \ n”); printf("Used size in this HEAP : %4d (current) - %4d (maximum)\n", mem_log[3].used_sz, mem_log[3].max_used_sz); printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n", mem_log[3].used_other_sz, mem_log[3].max_used_other_sz);
exec("log off"); } //disp_memlog() ends
** jlink警告:CPU无法停止 ***JLink Error: Can not read register 15 (R15) while CPU is running *** jlink错误:CPU正在运行时无法读取寄存器16(XPSR) *** jlink错误:CPU运行时无法读取寄存器0(R0) ***JLink Error: Can not read register 1 (R1) while CPU is running *** JLINK错误:CPU运行时无法读取寄存器2(R2) ***JLink Error: Can not read register 3 (R3) while CPU is running *** JLINK错误:CPU运行时无法读取寄存器4(R4) *** jlink错误:CPU运行时无法读取寄存器5(R5) *** jlink错误:CPU运行时无法读取寄存器6(R6) ***JLink Error: Can not read register 7 (R7) while CPU is running *** JLINK错误:CPU运行时无法读取寄存器8(R8) ***JLink Error: Can not read register 9 (R9) while CPU is running *** JLINK错误:CPU运行时无法读取寄存器10(R10) ***JLink Error: Can not read register 11 (R11) while CPU is running *** jlink错误:CPU运行时无法读取寄存器12(R12) ***JLink Error: Can not read register 13 (R13) while CPU is running ***JLink Error: Can not read register 14 (R14) while CPU is running ***JLink Error: Can not read register 15 (R15) while CPU is running *** jlink错误:CPU正在运行时无法读取寄存器16(XPSR) ***JLink Error: Can not read register 17 (MSP) while CPU is running ***JLink Error: Can not read register 18 (PSP) while CPU is running *** jlink错误:CPU正在运行时无法读取寄存器20(CFBP)
我used Jlink to download the program. I can guarantee that the connection is correct, because the same way to debug the DA1458x_SDK5.0.1 version of the program downloaded from the official website is no problem.
Could you please provide me some additional inputs regarding your issue? Are you using any of our development boards or you have a custom board? Are you able to download firmware form any other example of the SDK into the System-RAM?
我have a custom board.I can download firmware to System-RAM from any other example of the SDK. Only the example of this DSPS has a problem, I know that there is no problem with the configuration of the keil environment. I can also see the serial number of JLINK, and click on ok, but there will still be problems I described earlier.
Thank you for your answer, I have solved the previous problem, now I have a new question I would like to ask, the same is the dsps program, I can only send data after running, can not accept data, whether it is to be done in the program What modified?
Glad that you figured your issue out, If you found my answer useful please mark it as accepted. Could you please clarify your second question? You connected the DA14580 with the DSPS mobile application, didn’t you? Did you make any modification in the source code? Be aware that if you are using extended sleep mode, you have to use UART flow control (either HW for SW flow control). Otherwise, you will not be able to wake up.
我connected the DA14580 to the DSPS mobile app. I have not made any changes to the source code. Now I can send data to the mobile phone through the computer, but I can't send data to the serial port of the computer through the mobile phone. Now the data transmission is one-way transmission. Do I need to make some modifications in the DSPS program to achieve two-way data transmission?
Qyt,
This is our English forum and customers posts their question in English. So, please try to translate your question in English. Otherwise, you can post your question in our Chinese forums.
Thanks, PM_Dialog
嗨,pm_dialog.
Sorry,I repeat my question again.
我在官方网站上下载了最新的DSPs程序,但是当我在运行程序时输入调试模式时,程序易于运行。是否有任何修改下载程序的地方?如何正常输入调试模式?我使用的芯片是DA14580。
Thanks, Qyt
Qyt,
谢谢你用英语翻译你的问题。
你能澄清你的问题吗?你的意思是,在将固件下载到系统内的固件后,您仍然附加了调试器,您想修改固件?如果是,这是不可能的/
我强烈建议你看看教程8:调试方法这正在描述如何调试代码。
Thanks, PM_Dialog
Hi,PM_Dialog
我will describe my problem in detail.
我使用了Keil IDE打开了工程V5.15版的DSP。打开调试模式的过程中存在问题。当我启动Debug会话并运行它时,命令将打印以下信息:
func void disp_memlog(void)
{
int idx;
unsigned int min_delta;
exec("log > Memlog.log");
printf(“\ n \ n ***内存记录结果*** \ n \ n”);
printf(“>>> env heap <<< \ n”);
printf(“此堆中的使用大小:%4d(当前) - %4d(最大)\ n”,mem_log [0] .use_sz,mem_log [0] .max_used_sz);
printf(“其他堆的使用大小:%4d(当前) - %4d(最大)\ n \ n”,mem_log [0] .used_other_sz,mem_log [0] .max_used_other_sz);
printf(“>>> db heap <<< \ n”);
printf("Used size in this HEAP : %4d (current) - %4d (maximum)\n", mem_log[1].used_sz, mem_log[1].max_used_sz);
printf(“其他堆的使用大小:%4d(current) - %4d(最大)\ n \ n”,mem_log [1] .used_other_sz,mem_log [1] .max_used_other_sz);
printf(“>>> msg heap <<< \ n”);
printf(“此堆中的使用大小:%4d(当前) - %4d(最大)\ n”,mem_log [2] .used_sz,mem_log [2] .max_used_sz);
printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n", mem_log[2].used_other_sz, mem_log[2].max_used_other_sz);
Printf(“>>>非Ret堆<<< \ n”);
printf("Used size in this HEAP : %4d (current) - %4d (maximum)\n", mem_log[3].used_sz, mem_log[3].max_used_sz);
printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n", mem_log[3].used_other_sz, mem_log[3].max_used_other_sz);
exec("log off");
} //disp_memlog() ends
** jlink警告:CPU无法停止
***JLink Error: Can not read register 15 (R15) while CPU is running
*** jlink错误:CPU正在运行时无法读取寄存器16(XPSR)
*** jlink错误:CPU运行时无法读取寄存器0(R0)
***JLink Error: Can not read register 1 (R1) while CPU is running
*** JLINK错误:CPU运行时无法读取寄存器2(R2)
***JLink Error: Can not read register 3 (R3) while CPU is running
*** JLINK错误:CPU运行时无法读取寄存器4(R4)
*** jlink错误:CPU运行时无法读取寄存器5(R5)
*** jlink错误:CPU运行时无法读取寄存器6(R6)
***JLink Error: Can not read register 7 (R7) while CPU is running
*** JLINK错误:CPU运行时无法读取寄存器8(R8)
***JLink Error: Can not read register 9 (R9) while CPU is running
*** JLINK错误:CPU运行时无法读取寄存器10(R10)
***JLink Error: Can not read register 11 (R11) while CPU is running
*** jlink错误:CPU运行时无法读取寄存器12(R12)
***JLink Error: Can not read register 13 (R13) while CPU is running
***JLink Error: Can not read register 14 (R14) while CPU is running
***JLink Error: Can not read register 15 (R15) while CPU is running
*** jlink错误:CPU正在运行时无法读取寄存器16(XPSR)
***JLink Error: Can not read register 17 (MSP) while CPU is running
***JLink Error: Can not read register 18 (PSP) while CPU is running
*** jlink错误:CPU正在运行时无法读取寄存器20(CFBP)
我used Jlink to download the program. I can guarantee that the connection is correct, because the same way to debug the DA1458x_SDK5.0.1 version of the program downloaded from the official website is no problem.
Please help me solve this problem.
Thanks,Qyt
Qyt,
Could you please provide me some additional inputs regarding your issue? Are you using any of our development boards or you have a custom board? Are you able to download firmware form any other example of the SDK into the System-RAM?
从Keil环境中,请导航至:
Project -> Options for target -> Debug -> Setting (right corner)
After that, you should be able to see the Serial Number of the J-Link. Press ok and try to download firmware into he System-RAM.
Thanks, PM_Dialog
Hi,PM_Dialog
我have a custom board.I can download firmware to System-RAM from any other example of the SDK. Only the example of this DSPS has a problem, I know that there is no problem with the configuration of the keil environment. I can also see the serial number of JLINK, and click on ok, but there will still be problems I described earlier.
谢谢,Qyt.
Qyt,
DSP项目默认使用扩展睡眠模式,因此如果将其更改为活动模式,请您现在可以让我在同一问题吗?
app_default_sleep_mode = arch_sleep_off;//在user_config.h.中
Thanks, PM_Dialog
嗨,pm_dialog.
Thank you for your answer, I have solved the previous problem, now I have a new question I would like to ask, the same is the dsps program, I can only send data after running, can not accept data, whether it is to be done in the program What modified?
Thanks,Qyt
Qyt,
Glad that you figured your issue out, If you found my answer useful please mark it as accepted. Could you please clarify your second question? You connected the DA14580 with the DSPS mobile application, didn’t you? Did you make any modification in the source code? Be aware that if you are using extended sleep mode, you have to use UART flow control (either HW for SW flow control). Otherwise, you will not be able to wake up.
Thanks, PM_Dialog
嗨,pm_dialog.
我connected the DA14580 to the DSPS mobile app. I have not made any changes to the source code. Now I can send data to the mobile phone through the computer, but I can't send data to the serial port of the computer through the mobile phone. Now the data transmission is one-way transmission. Do I need to make some modifications in the DSPS program to achieve two-way data transmission?
谢谢,Qyt.
Qyt,
不,您无需对DSP参考设计进行任何修改,以便将数据发送到PC。你能为我提供一些投入吗?您使用的是哪个PC串行应用程序?以及如何将数据从手机发送到PC?如果您发现任何答案有用,请将其中一个标记为“已接受”。
Thanks, PM_Dialog
嗨,pm_dialog.
我正在官方网站上使用DAPS应用程序。我使用这个软件连接到DA14580。我可以将数据发送到PC上的手机,但我无法将数据从手机发送到PC。目前尚不清楚是否有需要修改的软件方面是否存在任何配置。
PC串行端口应用程序应没有问题,使用通常用于打印数据的串口端口助手。DSPS程序的V5.15版本是否无法在串行端口应用程序中打印从手机发送的数据。但我可以使用V3.15版本的DSPS程序来发送和接收PC和移动电话的数据。因此,为了实现数据的双向发送和接收功能,我想知道是否有任何需要修改V5.15的版本。
Thanks,Qyt
Qyt,
如果您有一个定制板,您使用的是哪个UART引脚?请注意,如果您想使用扩展睡眠模式,则应有UART流控制(软件或硬件)。否则,您将无法唤醒,因为设备在广告或连接间隔之间进入扩展睡眠模式。
Thanks, PM_Dialog