This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Bluetooth (SoftDevice) + high speed UART (libuarte)

Hi,

Currently I’m working on a device which is, on the one side connected to a smartphone via BLE and on the other side to another uC via UART.

Therefore, the UART speed is fixed to 1MB/s. For this reason, I must use DMA to get the UART running.

We use the nRF52840 DK.

I had a look to the example projects “ble_app_uart” and “libuarte”. Both projects fulfil our requirements to the BLE and UART connection.

Now I try to merge these projects and I’m struggling with the RTC’s.

I read that the Softdevice uses RTC0 and Timer0. Meanwhile the app_timer library is used the RTC1.

Is it true that there is no free RTC for the libuarte library?

So, I have no chance to get it running with the nRF52840?

 

Thank You,

Kilian

Parents Reply
  • Hi Simon,

    i have tried Timer2 & RTC2 (NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 2, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3)) and Timer2 & Timer3 (NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED,3, 255, 3);).

    Both with the same result. 

    I start the program with BLE running, everything works fine. If the UART communication starts the error accrues.

    The pc point at nrfx_timer or nrtx_rtc.

    Best regards,

    Kilian

Children
Related