SWD模式下,SWDIO和SWCLK管脚怎么复用,软件烧程序的时候发现,一旦设为GPIO口,就再也没法烧录程序了
The Chinese version of the question is : How to dual purpose the SWD pins ? Once it is set to GPIO, it cannot enter SWD mode to program the flash.
Once you set the SWD pins to GPIO, and go through POR, the SWD connection is gone.
My suggestion: If you need to program the flash only, then your schematic, make provision for UART ISP mode (with the ISP Entry pin). Then you can still enter ISP mode (on POR) to Erase and Program the Flash using UART.
The serial wire debug pins SWDIO and SWCLK are enabled by default on pins PIO0_2 and PIO0_3. The SWD functions are enabled by default. What you mean set the pins as GPIO?
Hi,
Thank you very much for contacting NXP Community. Our support engineers are located worldwide, therefore to better support you, could you please rewrite your question in English?
I apologize for the inconvenience this may cause to you.
Best Regards
Soledad