Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MCU doesnt boot up during Power ON

I have a small problem with Bootloader + application in our custom board.

If I do the DFU update,application starts at  first time but if i do a power reset application doesn't start and if I connect a j-link ,it starts executing properly.

But If  i do follow the same procedure in EVM board its working fine.

Parents
  • Hi Gopi, 

    What do you mean by "EVM board" ? You mean it's our Dev Kit ? 

    Could you try to update a normal appliacation that doesn't use softdevice, and just toggle an LED for example ? 

    If you still see the issue, could you debugging the bootloader without using the debugger to find where it crashes ? You can enable logging and printout the log on UART or you can use an LED to check when the code stops. 

    Do you have 32kHz crystal on your board ? 

    I assume it's the BLE DFU you are testing ? 

  • Hi,

    I meant Dev Kit only.In Dev Kit its working fine.

    we have tried simple application without soft device but the result is same.

    We enabled log and tried but we didn't get any log during power on cycle. It looks like boot loader itself not started.

    But one thing I couldn't understand ,if i just connect the J-Link ,application starts automatically.

    We don't have an external 32khz crystal on our board

  • Please try with LED toggling. 


    If you don't have 32kHz crystal, you need to configure the bootloader/application to use 32kHz RC oscillator instead. It's configurable in the sdk_config.h file. Look for NRF_SDH_CLOCK_LF_SRC. 

Reply
  • Please try with LED toggling. 


    If you don't have 32kHz crystal, you need to configure the bootloader/application to use 32kHz RC oscillator instead. It's configurable in the sdk_config.h file. Look for NRF_SDH_CLOCK_LF_SRC. 

Children
  • Hi ,

    We tired the same configuration settings but it didn't work.

    can you please suggest any other debugging way.

  • Can you do LED toggling ? Simply put a LED turn on at a line of code inside main in the bootloader and move the LED command down until you don't see the LED turn on anymore, then we can find at which function the code stucks. 

    Please try to test DFU update a very simple application, what we need to verify is if the code stuck inside the bootloader or it manages to jump to application but stuck in application. 

  • Hi,

    We tried debugging as per your suggestion and found that during power on cycle clock is not generated ,Code stuck at clock configuration.

    I have attached screen shot of our clock configuration.

    Note: we do not have external crystal in our custom board.

    can you please suggest the solution?

  • Hi 

    Hung is currently out of office, and I will help you out in the mean time. 

    Are you able to share the schematics for your design, and a photo of the board if you have one? 

    Have you tested this on more than one board, or just the one?

    Best regards
    Torbjørn