Use swd swk pin configured as Uart

⚠️
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.
5 posts / 0 new
Last post
GGQ_in
Offline
Last seen:4 months 3 weeks ago
加入:2019-07-23 04:41
Use swd swk pin configured as Uart

Hi,

I used 580 modle's swk and swd pins (P1_4,P1_5) configured as Uart,and I disable the debug before system_init() and periph_init().

I failed to connect to Debug Session When I plugged in the module. So I add the Delay() before disable the debug. However, The serial port has not been working.

What are the correct configuration steps?

Thanks.

Device:
PM_Dialog
Offline
Last seen:2 days 12 hours ago
工作人员
加入:2018-02-08 11:03
Hi GGG_in,

Hi GGG_in,

Which is the development board that you are using? Can you please indicate this?

Does the device boot from SPI Flash or System-RAM? Did you modify any of SDK files? Where did you disable the debugger?

Thanks, PM_Dialog

GGQ_in
Offline
Last seen:4 months 3 weeks ago
加入:2019-07-23 04:41
Hi,

Hi,

I disable the debugger before Power up peripherals' power domain.

Thanks.

GGQ_in
Offline
Last seen:4 months 3 weeks ago
加入:2019-07-23 04:41
Hi,

Hi,

I use DA14580-01 modle. I did it successfully when I stop the watch dog and swap the CLK and DIO pins of the SWD PORT.

Thank you for your answer.

PM_Dialog
Offline
Last seen:2 days 12 hours ago
工作人员
加入:2018-02-08 11:03
Hi GGQ_in,

Hi GGQ_in,

Thanks for your indication and glad that you got it working. If you found the comment useful please mark it as “accepted”.

Thanks, PM_Dialog