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

Custom nrf52832 board only boots right after flashing

I have a custom designed PCB that has the nRF52832 (taiyo yuden EYSHCNZWZ) on board. 

When I flash the board using pogo pins and the jlink (debug out) from a nRF52DK, everything works as expected. However, if I power off the board, and the power it back on, the board does not seem to boot (advertising led not blinking). 

I can't really debug this, as it works normally when the jlink is connected and I can see printfs. 

Any idea on what could be the issue? Thx!

  • Hello,

    Sorry. You are correct. I found the datasheet to the EYSHSNZWZ, not EYSHCNZWZ

    I can't find any information on the LFXTAL in that datasheet either. You can check with the vendor or producer of the module. They should know.

    I found a hint, though. On page 9 in the datasheet that you sent, there is a section regarding ANT:

    " *2 ANT specification requires +/-50ppm accuracy for 32.768kHz clock. the internal 32.768kHz crystal does not meet to +/-50ppm over the whole recommended operation temperature range. "

    So it probably means that the XTAL is in the field around 50ppm, but not below that value for all temperatures. It is probably not 20ppm, which is the default setting in the SDK examples. Try to just increase (/decrease) the accuracy from 20ppm to 50ppm or 75ppm in sdk_config.h.

    Just to be sure, you power up the chip the same way when you program it and when you don't?

    Best regards,

    Edvin

  • I will contact Taiyo Yuden for the LFXTAL specs. 

    Power is the same when programming or not.

    I also have some issues with SPI not getting the correct data at 8MHz, but it is working at 1MHz. When I connect the JLink debugger, 8MHz is working. Probably the same clock configuration issue?

  • JenR said:
    I also have some issues with SPI not getting the correct data at 8MHz, but it is working at 1MHz. When I connect the JLink debugger, 8MHz is working. Probably the same clock configuration issue?

     To be honest, that doesn't sound very likely. If you are the SPI master, you are the one generating the clock signal. It shouldn't matter whether it is a bit off. If you are the slave, you get the clk signal from the master, so that should be fine too. Either way, 1MHz is too fast for the 32kHz. It is not that clock that deals with SPI.

    It may be that you have too long SPI wires. Things start to act weird when you are around 4MHz. Unless it is a short PCB trace, 8MHz sounds a bit too fast.

    Best regards,

    Edvin

Related