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
  • Hi,

    libuarte can use either RTC or TIMER instance:

    _rtc1_idx RTC instance used for timeout. If set to NRF_LIBUARTE_PERIPHERAL_NOT_USED then TIMER instance is used or app_timer instance if _timer1_idx is also set to NRF_LIBUARTE_PERIPHERAL_NOT_USED.
    _timer1_idx TIMER instance used for timeout. If set to NRF_LIBUARTE_PERIPHERAL_NOT_USED then RTC instance is used or app_timer instance if _rtc1_idx is also set to NRF_LIBUARTE_PERIPHERAL_NOT_USED.
Reply
  • Hi,

    libuarte can use either RTC or TIMER instance:

    _rtc1_idx RTC instance used for timeout. If set to NRF_LIBUARTE_PERIPHERAL_NOT_USED then TIMER instance is used or app_timer instance if _timer1_idx is also set to NRF_LIBUARTE_PERIPHERAL_NOT_USED.
    _timer1_idx TIMER instance used for timeout. If set to NRF_LIBUARTE_PERIPHERAL_NOT_USED then RTC instance is used or app_timer instance if _rtc1_idx is also set to NRF_LIBUARTE_PERIPHERAL_NOT_USED.
Children
No Data
Related