⚠️
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.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
bobspam@free.fr
Offline
Last seen:2 months 4 days ago
加入:2018-06-20 08:07
ad_uart & JTAG

Hello

I am running SDK DA1468x_DA15xxx_SDK_1.0.14.1081 on a DA14683.

I am using ad_uart to communicate asynchronously with a peripheral on UART with DMA and circular buffer activated.

- When JTAG probe is attached (using Ozone), the ad_uart_read does not receive data while I can see data flowing using a scope in both directions (meaning that ad_uart_write is ok).
If I detach the probe and let the software goes, my software works ok.

Are there any setting to use so I can debug my software ? (disable DMA ? disable FIFO ?)

- I do not see RTS / CTS moving using a scope despite the "autoflow" setting at 1 ?

Thank you in advance

Keywords:
Device:
PM_Dialog
Offline
Last seen:5天23小时前
工作人员
加入:2018-02-08 11:03
Hi bobspam@free.fr,

Hibobspam@free.fr,

My apologies for the delay. In fact that you have the debugger attached, all interrupt are disabled and the interrupt will be reenables if you push the “play” button. If you have the debugger attached, you will not have any kind of interrupts (like CTS/RTS) and the DMA controller uses interrupts. Could you please clarify what you are trying to accomplish? Is there any specific reason for doing that procedure? For your information, when the system is in debugging mode, the 68x will never go to sleep and the interrupts are disabled.

Thanks, PM_Dialog

bobspam@free.fr
Offline
Last seen:2 months 4 days ago
加入:2018-06-20 08:07
Hello

Hello

Thank you for your answer

I am debugging AT command asynchronous exchanges with an external GSM modem.
When I do connect JTAG, no serial data reception occurs and my software get stuck waiting for modem answers.

When I do halt the cpu while stuck, DA68x is executing "pm_execute_active_wfi" function in sys_power_mgr.c (probably freertos idle tasks because all my other tasks are waiting for input data).

I am using JTAG RTT to collect my logs but it interfere badly with the software.
I suppose I need to move to RETARGET in order to collect my logs using a serial port.

Thank you for your help and please receive my best wishes for this new year !

PM_Dialog
Offline
Last seen:5天23小时前
工作人员
加入:2018-02-08 11:03
Hi bobspam@free.fr,

Hibobspam@free.fr,

It would be good idea to remove the RETARGET and try to debug it again. Let me know if you have any other issues. Happy new year too. I wish you all the bests.

Thanks, PM_Dialog