This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

S310 ble_ant_app_hrm with UART breaks program

I want to implement UART support in the S310 ble_ant_app_hrm example to pipe out the heart rate through UART as well as Bluetooth.

I attempted to set up UART with both simple_uart and app_uart. There is no error returned durring init however if I attempt a printf or a simple_uart_putstring the program hangs and advertising never starts.

Once I comment out the printf or the simple_uart_putstring the program functions as expected.

Any ideas?

Parents
  • Hi

    I think the app_uart is the preferred library to use since it is event driven. There is an example on Nordic's Github for the S110 v6.0.0 stack + nRF51 SDK v5.2.0 that uses the app_uart library. This example is ideal to use for the S310 v1.0.0 stack and can be ported directly. The porting guide is here.

  • I was able to port this over and app_uart works. One thing I would like to suggest is don't set the buffer lower than 64. If the buffer overflows the chip will call an assert and reset. The troublesome thing about this is there will be no errors printed to console since the buffer is overflowed.

Reply
  • I was able to port this over and app_uart works. One thing I would like to suggest is don't set the buffer lower than 64. If the buffer overflows the chip will call an assert and reset. The troublesome thing about this is there will be no errors printed to console since the buffer is overflowed.

Children
No Data