nrf54l15 SB_CONFIG_BOOTLOADER_MCUBOOT=y makes main() gpio toggle stop.

As title.

  In nRF54L15 DK,  I set "SB_CONFIG_BOOTLOADER_MCUBOOT=y" in file "sysbuild.conf".

  It makes main function GPIO toggle stop.

  Do have any solution to prevent this problem?

result:

Parents Reply
  • Hi Austin,

    Thanks for confirming. 10 us was too short anyway. What is likely happening is that your main loop is preempted by the system timer interrupt (GRTC IRQn). This can happen regardless if you have a bootloader present or not. To confirm this, you can try to mask the interrupts before entering the while loop.

    #include <zephyr/kernel.h>
    
    int main(void)
    {
        ...
        (void) irq_lock();
        while(1) {
            ...
        }
        ...

    Best regards,

    Vidar

Children
Related