Sending hex values through nrf_libuarte_async_tx in LIBUARTE

Hi, 

I'm trying to config my SAM-M8Q with an array of HEX.

It's work beautifully with app_uart_put like the picture below.

However, when I try to implement LIBUARTE's nrf_libuarte_async_tx  function it didn't behave like I wanted.

B.r,

Hoang 

Parents
  • Hi,

    You should be able to do this with libuarte as well, and nrf_libuarte_async_tx() takes a pointer to a buffer and the length, just as you would expect.

    I notice one thing though, and that is that your source buffer in the code snippet you have posted here is const, which means the data will be placed on flash. And on the nRF5 devices, DMA does not work with flash. So you should remove the const so that it is placed in RAM instead.

Reply
  • Hi,

    You should be able to do this with libuarte as well, and nrf_libuarte_async_tx() takes a pointer to a buffer and the length, just as you would expect.

    I notice one thing though, and that is that your source buffer in the code snippet you have posted here is const, which means the data will be placed on flash. And on the nRF5 devices, DMA does not work with flash. So you should remove the const so that it is placed in RAM instead.

Children
No Data
Related