Hi
I'm using the NRF51422 with hardware UART. Brief outline of the configuration: 115200 Baud, 8-N-1, no HW flowcontrol SoftDevice S130 V2.0.1 lib: app uart fifo
The main problem seems to be the SoC trying to send over UART while BLE timeslot is started.
My question: How do I manage to send data, when the SD is not in a BLE timeslot and if there is more data resume sending remaining data over UART when the transmission was interrupted by a timeslot to push all data to the PC. I already looked at all examples, but non of them handles large data over UART and fifo send resume...
Any hint is appreciated.
If it helps, this is my uart send function:
inline void uart_put_string(const char *str, ...){
char buffer[1024];
va_list args;
va_start(args, str);
vsprintf((char*)buffer, (char*)str, args);
va_end(args);
int len = strlen(buffer);
for(int i=0; i<len;i++){
while(app_uart_put(buffer[i]) != NRF_SUCCESS);
}
}