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);
  • Ilary said:
    it's Correct ?

    Hi, yes, that looks correct. But it only shows how it's connected at the debugger side, not how this is further connected to your PCB.

    1) Have you done any HW modifications, changed some wires, etc, that could explain why it suddenly is not working?

    2) Did you get nrfjprog to work? What did "nrfjprog --deviceversion" return?

  • Sigurd said:
    Ma mostra solo come è collegato sul lato del debugger, non come questo è ulteriormente collegato al tuo PCB.

    I send you a photo of the part soldered on the pins but it is very chaotic because in addition to the connection to the debugger for nRF52 I also have the wires for the connection of the STM8

    Sigurd said:
    Hai apportato modifiche all'HW, cambiato alcuni cavi, ecc., che potrebbero spiegare perché improvvisamente non funziona?

    no one except that a thread that had unsoldered on the side of my card was rewelded

    Sigurd said:
    Hai fatto funzionare nrfjprog? Cosa ha restituito "nrfjprog --deviceversion"?

    no I tried the desktop version of which you had told me (programmer) that shows me a successful connection as regards the simple DK card but as soon as I connect my card gives me the error of which I sent you the screen

  • Hi,

    I suggest going over the wires again, and check the everything is connected correct.

    A log from nrfjprog might reveal something, 

    (this will generate a log.txt):

    C:\Logs>nrfjprog --recover --log log.txt
    Recovering device. This operation might take 30s.
    Erasing user code and UICR flash areas.
     

    but I mainly suspect something is wrong with the wiring. Maybe some wires changed, or was not connected properly after the re-welding.

  • I checked all the wiring on my board and it is fully functional, the only particular thing I noticed, is that the module on my board is powered at 2.7 V and the nRF52Dk already has a power supply of 2.9 V. As for nrfjprog I haven't checked yet

Related