LIBUARTE PROBLEMS

Hello ,

I'm using the libuarte library so i can send data and receive it , i'm enabling RTC2,TIMER1,TIMER0 and TIMER2 .

this is the main definition of my libuarte NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 0, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3).

the problem is that i can transmit DATA but i can not receive (because no NRF_LIBUARTE_ASYNC_EVT_RX_DATA event was generated when receiving) 

i tried a lot of combination but none of them has worked.

in the hardware part i've visulazed the transmitted DATA by OSCILLOSCOPE,

And then in order to test the receiving i did a loopback (TX to RX directly), but no NRF_LIBUARTE_ASYNC_EVT_RX_DATA event has been generated till now .

I ve read other threads that are talking about this topic, i ve tried their solutions but that didn't work for me.

the project that i m working in and the example are in this thread https://devzone.nordicsemi.com/f/nordic-q-a/87954/i-can-send-data-by-libuarte-but-i-can-not-receive

i closed it by mistake.

Parents
  • Using the project from your previous ticket for this answer:

    I needed to include the two user directories:

    SDK\components\libraries\experimental_libuarte
    SDK\components\libraries\serial

    Where are your nrf_serial.h and nrf_libuarte.h files located?

    Also, a general hint:

    Add 

    NRF_LOG_DEFAULT_BACKENDS_INIT();

    after

    APP_ERROR_CHECK(NRF_LOG_INIT(NULL));

    if you want to enable the logging.

    After I did this, your application printed Salut1 - Salut5, and sent the hexadecimal values "0x41 00 41 00" over uart. When I wrote one byte back (just any character), it started blinking LED1-4 every second, and after 10 seconds, it echoed the byte back over uart.

    I added the BOARD_PCA10056, because that is what I am testing it on. Have you tested on a DK?

    And please check where your files nrf_serial.h and nrf_libuarte.h are located. Are they changed? Have you tried replacing the SDK with a new unzip of an unmodified SDK, which I tested with?

    Best regards,

    Edvin

Reply
  • Using the project from your previous ticket for this answer:

    I needed to include the two user directories:

    SDK\components\libraries\experimental_libuarte
    SDK\components\libraries\serial

    Where are your nrf_serial.h and nrf_libuarte.h files located?

    Also, a general hint:

    Add 

    NRF_LOG_DEFAULT_BACKENDS_INIT();

    after

    APP_ERROR_CHECK(NRF_LOG_INIT(NULL));

    if you want to enable the logging.

    After I did this, your application printed Salut1 - Salut5, and sent the hexadecimal values "0x41 00 41 00" over uart. When I wrote one byte back (just any character), it started blinking LED1-4 every second, and after 10 seconds, it echoed the byte back over uart.

    I added the BOARD_PCA10056, because that is what I am testing it on. Have you tested on a DK?

    And please check where your files nrf_serial.h and nrf_libuarte.h are located. Are they changed? Have you tried replacing the SDK with a new unzip of an unmodified SDK, which I tested with?

    Best regards,

    Edvin

Children
No Data
Related