Hello support team,
I'm trying to use serial logging with the DA145858 pro dev kit, while changing the prox_reporter project.
UART2 works as I was able to receive messages with the Blinky project.
I've enabled the logging by defining CFG_PRINTF in da14585x_config_basic.h
uart2.c is present in sdk_driver and uart.h in sdk_driver_api
What did I miss?
By the way, I find it difficult to get into the development process as, if I understand well, I need to hook into various places.
But those places are not really obvious to me (even after going through UM-B-079).
例如,有什么区别user callback (code being called at specific point in your framework) and the user_default_app_operations.default_operation_adv
If I'd like to completely manage the timing and the content of the advertising could you confirm that user_default_app_operations.default_operation_adv is the place to write my own code?
Thanks.
Hi ohmi
I would suggest you to use the arch_printf () API from arc_console.h library.
#elif HW_CONFIG_PRO_DK
#define UART2_TX_GPIO_PORT GPIO_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
Thanks, PM_Dialog
Thanks,
I've added
#define UART2_TX_GPIO_PORT GPIO_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
in user_periph_setup.h under #elif HW_CONFIG_PRO_DK
jumpers are correct (same setings as for blinky)
I did the rest arch_printf() + includes
Same result call to NMI_HandlerC.
When I explore the code, I don't see any reference to UART2_TX_GPIO_PORT, UART2_TX_GPIO_PIN.
Hi ohmi,
I checked the prox_reporter and you should do the modifications as described in the attached file. Jumpers should be placed on P04 - JL_RxD and jumping wiring for JL_TxD on P13 (the P05 is used for the SPI flash). Be aware that these notifications should be done only in prox_reporter project. For example, in ble_app_peripheral project you should do the steps that I had provided you in my previous post.
Thanks, PM_Dialog