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

segmentation fault / bricked nrf52832

Hi there,

Until todayI had no problem programming/controlling my nrf52832 on my custom board. Suddenly Im getting segmentation fault whenever I try to communicate with the chip.
Im using my nrf52 DK as my programmer via 10-pin debug out-connector. 


Segger alerts when trying to "build and run":
"Failed to connect to target. 
 no idcode detected.
 Please check connection and Target Interface Type"

Nrf connect just gives me a blank white screen when I try to connect to chip.

nrfjprog returns: segmentation fault

nrfjprog version: 10.6.0
JLinkARM.dll version: 6.60e
SDK 16


Im doubt it has something to do with my problem but the last thing I change before this happend was changing NRF_SPI_DRV_MISO_PULLUP_CFG 0 to 1. I also made sure that RESET PIN was activated by manipulation PSELRES register and the rebuild. That worked out as expected. I am having no problem programming my NRF52 or my Sparkfun via the same 10 pin debug out-connector.
Im on a rather expensive prototype board so It would be really nice to  solve this wierd behaviour.

Running: "nrfjprog --log --family NRF52 --recover" gives me:

"Recovering device. This operation might take 30s.
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again."

Running: "
nrfjprog --recover" gives me:

"zsh: segmentation fault  nrfjprog --recover"

Please advice
Regards /Rasmus



Parents
  • Hi,

    Is the board working fine apart from programming, i.e. does the last application that you programmed to the board run when you power it?

    Is the board powered through the 10-pin debug cable, or is it powered externally? Have you checked that there are connections between the debug connector and the chip on the board (for instance that there are no soldering issues, etc. that have broken the connections or created shorts)? Some people have solved similar issues by heating the device to fix lost connections.

    Best regards,
    Jørgen

  • Hi,

    Its kinda of hard to tell if the board is working fine apart from the programming part, that is because Im not 100% sure if the last command was --program or --recover. My guess would be that it is not running as it should. 

    The board is powered externally.
    Its hard to measure the connections between the debug connector and the chip due to lack of space. Its pretty crowded with components and its a 4 layer pcb. The board is manufactured and assembled by an experienced company, so soldering issues is not very likely, but of course not impossible.. also if I recall correct, I didnt touch any of the boards nor the connections when the problem occured.
    We have more prototype boards but I feel nervous when this seemed to occur without any particular reason.

    I´ve also tried with an other NRF52 DK just to be sure. 


    I´m attaching the log.log file from running 

    nrfjprog --recover --log



    0654.log.log

    What does "segmention fault" mean btw? 

    Best regards, Rasmus

Reply
  • Hi,

    Its kinda of hard to tell if the board is working fine apart from the programming part, that is because Im not 100% sure if the last command was --program or --recover. My guess would be that it is not running as it should. 

    The board is powered externally.
    Its hard to measure the connections between the debug connector and the chip due to lack of space. Its pretty crowded with components and its a 4 layer pcb. The board is manufactured and assembled by an experienced company, so soldering issues is not very likely, but of course not impossible.. also if I recall correct, I didnt touch any of the boards nor the connections when the problem occured.
    We have more prototype boards but I feel nervous when this seemed to occur without any particular reason.

    I´ve also tried with an other NRF52 DK just to be sure. 


    I´m attaching the log.log file from running 

    nrfjprog --recover --log



    0654.log.log

    What does "segmention fault" mean btw? 

    Best regards, Rasmus

Children
No Data
Related