I am working on the multi peripheral example and added the uart services uart working fine but how i can see the data without enabling the nrf_log.if i am enabling the nrf_log file then i am getting the error in the uart init.
I am working on the multi peripheral example and added the uart services uart working fine but how i can see the data without enabling the nrf_log.if i am enabling the nrf_log file then i am getting the error in the uart init.
Hi,
The logger module support UART as a backend. If you have enabled the UART backend, the UART driver will already have been initialized by the logger. Trying to initialize the UART peripheral again will result in an error.
You should still be able to enable logger module with RTT backend. Please make sure NRF_LOG_BACKEND_UART_ENABLED is set to 0 in sdk_config.h.
Best regards,
Jørgen
Thank you sir,
i have to send the data continuous data but i am getting only 20 bytes in multi peripheral
*in uart example code #define NRF_SDH_BLE_GAP_DATA_LENGTH 251 &
#define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 247 is set.
*in multi peripheral example code #define NRF_SDH_BLE_GAP_DATA_LENGTH 27
#define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 23 is set
if i am changing the multiperiphreal to uart i am changed the NRF_SDH_BLE_GAP_DATA_LENGTH &NRF_SDH_BLE_GATT_MAX_MTU_SIZE to 251 and 247 .my device is not advertising.but data is coming.
What do you mean by "but data is coming"? Where is data coming if it is not advertising? Have you debugged the application to see if any function calls return error codes?
sir,i am checked in the debug mode,it showing my data in debug terminal.but it is not advertising my device name.i am not getting in smart phone.
sir.after connection it is going to hardfault handler,it is not coming back uart reception process.