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
  • Good morning I looked at the code you sent me and the comments you put me on the previous post: the CTS and RTS pins I did not configure them because we did not provide them. as for the function esb_write_payload() I have not yet moved it from the main as the problem I have is still in the phase of receiving data on uart by the nrf52... from the stm8, however when this part will work I will certainly move the function from the main loop. One question alone is not clear to me: NRFX_PRS_BOX_2_ENABLED you had to set it to 1 to make it compile but I without touching the file sdk_config compiled quietly is due then, to the speech that you had a nrf52832_DK so I have to bring it back to 0 to compile?
Reply
  • Good morning I looked at the code you sent me and the comments you put me on the previous post: the CTS and RTS pins I did not configure them because we did not provide them. as for the function esb_write_payload() I have not yet moved it from the main as the problem I have is still in the phase of receiving data on uart by the nrf52... from the stm8, however when this part will work I will certainly move the function from the main loop. One question alone is not clear to me: NRFX_PRS_BOX_2_ENABLED you had to set it to 1 to make it compile but I without touching the file sdk_config compiled quietly is due then, to the speech that you had a nrf52832_DK so I have to bring it back to 0 to compile?
Children
No Data
Related