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

Configuration UARTE with nrf52805 for ESB - Part 2


My previous ticket is closed. I would need, but still help with the configuration of the pins. I report my last post.

Hello,
I did some tests with the oscilloscope directly connected to pins 21 and 18 of the nrf52805.
The transmission on pin 18 by the Stm8l works perfectly. The problem I encounter now is that nrf52805 I have the pull up instruction on this pin

 nrf_gpio_cfg_input(PIN_RXD,GPIO_PIN_CNF_PULL_Pullup);

but nothing happens when oscilloscopes.
It could be that I get the pin definition wrong initially

 #define UARTE_BASE           0x40002000
  #define PORTA_UARTE          ((NRF_UARTE_Type *) UARTE_BASE )
  #define PIN_TXD            21
  #define PIN_RXD            18


or the pull up configuration of pin 18, set as input and pin 21 as output?

 nrf_gpio_cfg_input(PIN_RXD,GPIO_PIN_CNF_PULL_Pullup);
     nrf_gpio_cfg_output(PIN_TXD);
Parents
  • Hi,

    Ilary said:
    No_Mem error as a value of 4

    This is from the ERRORSRC register, that UART have detected a framing error.

    "A valid stop bit is not detected on the serial data input after all bits in a character have been received."


    1)

    Ilary said:
    comment on the lines of error handling code to see what was happening. The problem arose after making this change to the code now I can no longer compile (see photo below)

    Commenting out this single line of code shouldn’t generate this error. Could you upload the project?

    2) Could you try to add some delay before STM8 sends the data?

    3) Do you have a logic analyzers that you can use to capture how the UART transmission looks like ? e.g Saleae Logic or similar?

Reply
  • Hi,

    Ilary said:
    No_Mem error as a value of 4

    This is from the ERRORSRC register, that UART have detected a framing error.

    "A valid stop bit is not detected on the serial data input after all bits in a character have been received."


    1)

    Ilary said:
    comment on the lines of error handling code to see what was happening. The problem arose after making this change to the code now I can no longer compile (see photo below)

    Commenting out this single line of code shouldn’t generate this error. Could you upload the project?

    2) Could you try to add some delay before STM8 sends the data?

    3) Do you have a logic analyzers that you can use to capture how the UART transmission looks like ? e.g Saleae Logic or similar?

Children
No Data
Related