load() not called on reboot?

Posted on
  • Been trying to debug this for awhile, with this code:

    function onInit(){
        setInterval(function(){
            console.log("X");
        },1000)
    }
    

    upload to board, then

    save()
    

    disconnect usb and then reconnect, connect to terminal, nothing outputted. If I type

    load()
    

    then it the interval prints:

    >load()
    =undefined
    WARNING: --- gap_setScan 0
    
    WARNING: Scan stop failed
    WARNING: set rssi scan not implemeted yet
    
    WARNING: has central connection not implemented yet
    
    Loading 1746 bytes from flash...
    Running onInit()...
    X
    X
    X
    X
    X
    

    Pico immediately prints after reconnect without needing to manually kicking it. Im on v1.99. I'll try downgrade the firmware to see if it's a regression.

  • So I tried a different board from a different vendor and that one works... :/

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

load() not called on reboot?

Posted by Avatar for n00b @n00b

Actions