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

nRF52840 custom board won't boot without debugger reset

My nRF52840 custom boards seem to be unable to boot without RTT viewer started of JLink commander connected.

The hardware configuration is taken from the nRF52840 PS 1.0 and is circuit #3:

The problem occurs with and without softdevice, with my code but also the ble_peripheral/hrs example.

I have already checked that:

- Semihosting is disabled

- It occurs when logs are enabled & disabled

Strangely this seems to be connected to clocks, but happens even if the RC internal osc is selected as the source for LF clock.

Please help ?

Parents
  • Hi,

     

    Does this occur even if you use one of the precompiled .hex files in the SDK?

    What SDK version and compiler/IDE are you using?

    How are you loading the binary to the chip (nrfjprog, using an IDE, J-Link Commander)? If using nrfjprog, you should add a "nrfjprog --run" or "nrfjprog -r" afterwards as nrfjprog leaves the chip in a halted state.

     

    Best regards,

    Håkon

  • I havn't tried with thr precompiled hex from the examples.

    I am using GCC 6.3 q2 update as recommended.

    The issue occurs with the custom board but not with my pca10056 V0.9.0

    After some debugging I found the "stuck in boot" board came from an erroneous nrf_sdh_enable_request().

    So this seems connected to Low frequency clocks not being able to start as expected if no debugger is connected

    at boot.

    In this configuration if I get past softdevice enabling, peripherals such as UART seem not to be working properly and

    can't decode bytes...

Reply
  • I havn't tried with thr precompiled hex from the examples.

    I am using GCC 6.3 q2 update as recommended.

    The issue occurs with the custom board but not with my pca10056 V0.9.0

    After some debugging I found the "stuck in boot" board came from an erroneous nrf_sdh_enable_request().

    So this seems connected to Low frequency clocks not being able to start as expected if no debugger is connected

    at boot.

    In this configuration if I get past softdevice enabling, peripherals such as UART seem not to be working properly and

    can't decode bytes...

Children
Related