⚠️ 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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
You could use the arch_printf() API in order to print into the serial monitor.
#define CFG_PRINTF in the da1458x_config_basic.h
Change the uart ports of the fw and assign the UART_TX port/pin to P04 and UART_RX port/pin to P05 (make sure that the configuration that you have changed is under the HW_CONFIG_PRO_DK and that this the board declared in the HW_CONFIG definition).
#elif HW_CONFIG_PRO_DK
#定义UART2_TX_GPIO_PORTGPIO_PORT_0
#define UART2_TX_GPIO_PIN GPIO_PIN_4
#define UART2_RX_GPIO_PORT GPIO_PORT_0
#define UART2_RX_GPIO_PIN GPIO_PIN_5
If you have one other of our DKs or if you are working on a custom board, please modify the definitions above with the appropriate GPIOs
Include the arch_console.h file into user_barebone.c
Invoke arch_printf() into your application
Change the baud rate of the terminal into 115200.
Also, you could have a look at the UART2 asynchronous example of SDK which demonstrates how to use the UART2 driver.
嗨Jasu,
You could use the arch_printf() API in order to print into the serial monitor.
#elif HW_CONFIG_PRO_DK
#定义UART2_TX_GPIO_PORTGPIO_PORT_0
#define UART2_TX_GPIO_PIN GPIO_PIN_4
#define UART2_RX_GPIO_PORT GPIO_PORT_0
#define UART2_RX_GPIO_PIN GPIO_PIN_5
If you have one other of our DKs or if you are working on a custom board, please modify the definitions above with the appropriate GPIOs
Also, you could have a look at the UART2 asynchronous example of SDK which demonstrates how to use the UART2 driver.
Thanks, PM_Dialog