Hello,
A stupid newbie question: APP_UART_FIFO_INIT seems to get stuck while trying to run example code.
Only modification I have made is the usage of SEGGER_RTT for debug. Does that mess up the uart somehow?
Best regards, Sampo
Hello,
A stupid newbie question: APP_UART_FIFO_INIT seems to get stuck while trying to run example code.
Only modification I have made is the usage of SEGGER_RTT for debug. Does that mess up the uart somehow?
Best regards, Sampo
Hello Joakim, Sorry for the slow reply, it's finally harvesting season here in Finland, I actually managed to solve this.
It turned out that simply linking in the nrf_log libraries together with segger RTT messed up the uart somehow, even tough I did not make any calls to those libs. I was trying to enable RTT logging for my uart app to connect an ultrasonic distance sensor. It turned out that without logging libs linked in, the UART works like charm.
This was a good discovery, because my next step would be mixing up the ble_app_uart example and the uart example to allow me to transfer the readings from the sensor to a mobile phone and the ble_app_uart actually uses nrf_log libraries.
On some EKG logging systems we have had to write a custom UART implementation using GPIO and I hope I will get away with less stuff as this is kind of hobby project for me.
But now I need to fight with the sensor it self. But this is the nature of embedded development, bang your head against a wall until you get trough only to find the next wall.
Hello Joakim, Sorry for the slow reply, it's finally harvesting season here in Finland, I actually managed to solve this.
It turned out that simply linking in the nrf_log libraries together with segger RTT messed up the uart somehow, even tough I did not make any calls to those libs. I was trying to enable RTT logging for my uart app to connect an ultrasonic distance sensor. It turned out that without logging libs linked in, the UART works like charm.
This was a good discovery, because my next step would be mixing up the ble_app_uart example and the uart example to allow me to transfer the readings from the sensor to a mobile phone and the ble_app_uart actually uses nrf_log libraries.
On some EKG logging systems we have had to write a custom UART implementation using GPIO and I hope I will get away with less stuff as this is kind of hobby project for me.
But now I need to fight with the sensor it self. But this is the nature of embedded development, bang your head against a wall until you get trough only to find the next wall.