MSPM0G3507: Boot Time running into seconds

Part Number: MSPM0G3507

Hi, i am using a 24MHz external crystal, alongwith a Custom Bootloader in Flash memory (address 0x0)
I am able to see a random delay ranging from 2-8 seconds in jumping from bootloader to App code(start address is 0x4000).

The 3.3V and the crystal waveform is quite stable. We have been unable to debug the reason. 

  • Hi,

    As the bootloader is customized, so the delay is much depends on the implementation details of your bootloader firmware.

    There is not a simple approach to directly identify the issue, but there is still some debug way you could try:

    • In debug mode, after you start run program, try "stop" the program execution within 2s. If there is something block program go forward, you should be possible to see the program stop in place it stuck.
    • Add some debugging GPIO toggling in bootloader code, for example, use different GPIO pulse width in different bootloader location, and check the GPIO output waveform. You could be able to see where program stuck if enough GPIO toggling code is added in code.

**Attention** This is a public forum