Hello ,
On NRF52840 DK my logger works fine and I get no problem with printf(). However, on my custom board the program goes into hard fault with the following :
0x4001
0x2003 FF14
Matter of fact, for my init function
void uart_init(void){
uint32_t err_code;
bsp_board_init(BSP_INIT_LEDS);
const app_uart_comm_params_t comm_params =
{
RX_PIN_NUMBER,
TX_PIN_NUMBER,
RTS_PIN_NUMBER,
CTS_PIN_NUMBER,
UART_HWFC,
false,
#if defined (UART_PRESENT)
NRF_UART_BAUDRATE_115200
#else
NRF_UARTE_BAUDRATE_115200
#endif
};
APP_UART_FIFO_INIT(&comm_params,
UART_RX_BUF_SIZE,
UART_TX_BUF_SIZE,
uart_error_handle,
APP_IRQ_PRIORITY_LOWEST,
err_code);
APP_ERROR_CHECK(err_code);
}
And I added retarget.c for my project. The pins are defined in pca10056.h
Like I said everything works just fine on NRF52840 DK, and I cannot remove the printf example because i'm including a library which needs printf.
Any idea about the probleme ?