Hi!
In order to test hibernation mode on the DA14531 USB development kit I need to free PIN0_5 for hibernation wake up. On the DK this pin is used for UART for debugging information: is there a way I can move UART to PIN0_6 (for example) so I can at the same time keep debug information and have PIN0_5 available to wake the device up from hibernation?
I've already read the hardware user manual (UM-B-125), but I only found how to use PIN0_5, but this will disable UART debugging function.
谢谢你!
Device:
Hi Paolog,
The 531 USB development kit facilitates debugging UART TX over the USB connection on either pin P0_5 (default setting of the S1) or P0_0. The latter requires that you
void set_pad_functions(void) {GPIO_Disable_HW_Reset();#if defined (CFG_PRINTF_UART2) // Configure UART2 TX Pad GPIO_ConfigurePin(UART2_TX_PORT, UART2_TX_PIN, OUTPUT, PID_UART2_TX, false); #endif }
You can use P0_6 or any other available pin as well, but this will require a 3rd party UART to USB converter. The PRO develoment kit offers a lot more flexibility because every GPIO is connected to a header pin.
/MHv
谢谢你!我设置了开关as described in section 5.6 of UM-B-125, but after that I'm not able to upload the firmware to the USB DK to be debugged with Keil uVision. Is this correct? Should I use SmartSnippets tools and not use the debug functionality of Keil?
You should be able to use the debugger from Keil. Have you set the Jlink Max Clock to 2MHz (options for target / debug tab / J-Link Settings / Max Clock)?
/MHv