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

LIBUARTE on ble_app_uart with DMA

Hi All,

I have 2 boards nrf52840 pc10056 and I need to run ble_app_uart using LIBUARTE with DMA in order to obtain a more robust uart communication

I would like to use an uart DMA that will work in background saving the byte received in a buffer (fixed length) and once that it is full having an interrupt where I can check this buffer and send it to the central unit.

Is there any easy way to set  everything up and change the code of ble_app_uart? Any suggestion??

Thanks

Parents Reply Children
  • I'm working on a projekt where I also want to use the libuarte but now i have the same issue with the "not enabled time instance" but i have set the instace in sdk_config to true. Can yu please share what you have done to fix this issue?

  • Hello,
    I am working on a project and need to use DMA and detect end of data reception before the DMA buffer is full. Therefore I tried to start with libuarte.

    I have added in sdk_config.h

    #define NRF_LIBUARTE_UARTE0 1

    #define NRFX_PRS_BOX_4_ENABLED 0

    In added

    #include "nrf_libuarte_async.h"

    NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 0, 0, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);

    to my source code and when I compile I get many compile errors.

    I guess I need to define some timers

    also I get something like:

    7> ../../../../../../components/libraries/balloc/nrf_balloc.h:219:9: sorry, unimplemented: non-trivial designated initializers not supported

    So can you tell me what configuration e.g. in sdk_config.h you have used to be able  to come some steps further?

    I appreciate any hint.

    Thanks in advance

    Thomas

  • I suggest creating a ticket of your own where you describe your problem in detail. If you think this case is relevant, feel free to link to it in your ticket.

    This will make it much easier to get a good overview, as starting over in an already existing thread can get messy quickly.

    Best regards,

    Simon

  • How did you get this sorted? I have followed your same steps and getting the same error, even with all the correct timer and RTC enabled in sdk_config.h

Related