I am using a DA14531 with SDK version 6.0.14.1114.
I am using a custom PCB, but I have also confirmed this behaviour on a dev board kit.
I have confirmed the behaviour using the blinky demo in both cases.
I have modified the blinky demo (main.c:blinky_test() function) like so:
main.c:blinky_test()
void blinky_test(void) { volatile int i=0; // printf_string(UART, "\n\r\n\r"); // printf_string(UART, "***************\n\r"); // printf_string(UART, "* BLINKY DEMO *\n\r"); // printf_string(UART, "***************\n\r"); while(1) { i++; if (LED_OFF_THRESHOLD == i) { GPIO_ConfigurePin(LED_PORT, LED_PIN, INPUT_PULLDOWN, PID_GPIO, false); // GPIO_SetActive(LED_PORT, LED_PIN); // printf_string(UART, "\n\r *LED ON* "); } if (LED_ON_THRESHOLD == i) { GPIO_ConfigurePin(LED_PORT, LED_PIN, INPUT_PULLUP, PID_GPIO, true); // GPIO_SetInactive(LED_PORT, LED_PIN); // printf_string(UART, "\n\r *LED OFF* "); } if (i == 2 * LED_ON_THRESHOLD) { i = 0; } } }
I change the pin via \blinky\include\user_periph_setup.h
\blinky\include\user_periph_setup.h
/****************************************************************************************/ /* LED configuration */ /****************************************************************************************/ // Define LED Pad #if defined (__DA14531__) #define LED_PORT GPIO_PORT_0 #define LED_PIN GPIO_PIN_3 // #define LED_PIN GPIO_PIN_5 // #define LED_PIN GPIO_PIN_2 #else #define LED_PORT GPIO_PORT_1 #define LED_PIN GPIO_PIN_0 #endif
I have tested the behaviour with:
To test the behaviour I program the dev daughter board with the J1 jumpers on SWCLK and SWDIO and RST enabled. I then disconnect the jumpers and probe the headers (on the daughterboard connection side). I can probe the MISO point on J1 for P0_03 and that is where I confirm I get the correct blinky behaviour.
Similarly when testing my target PCB I am using the Dev motherboard as a J-Link and after programming the PCB I disconnect the SWCLK, SWDIO and RST headers and then probe the test points on the target PCB. I have the grounds linked between my target PCB and the dev motherboard when using this configuration.
In both cases, when I do not disconnect the J1 jumpers for SWD I can see activity on the lines while debugging as expected, hence why they are disconnected to properly measure the signal.
I need to use P0_02 and P0_05 for my target application, am I missing a configuration in order to use those pins?
Hi There,Thank you for posting your question online.Let me check on this and I will get back to you as soon as possible.Kind Regards,OV_Renesas