Custom firmware on Pico

Posted on
  • I am trying to load my own code that was developed on a STM32F401 nucleo with Keil into the Pico. I tried through DfuSe and it seems to load with no errors but the program doesn't seem to be running since the led is not blinking like I set up.

    My question is how do I go about wiping out the Espruino code to load my own?
    I ruined my ability to use SWD since one of the pads pulled off. Not happy about that. usart1 PA9 isn't available to load through serial so it seems DFU is the only option. I tried with the web IDE and advanced firmware option and the red led stayed lit and that was it.

    I have read through the forums some but found nothing related.

    Any help is appreciated.

  • I'm not sure what to suggest - using DfuSe should work fine to update everything - you should have total control over what's on the chip... so I'd think the lack of LED is probably some issue in your code (no idea what though!).

    Chances are you found it but: http://www.espruino.com/Pico#advanced-re­flashing

    If you install an actual release binary like https://www.espruino.com/binaries/esprui­no_1v99_pico_1r3_wiznet.bin then it should spring back to life as an Espruino. Travis builds may not work as I don't think the bootloader gets added to the firmware in those.

  • Ok Ill check my code again. In Keil I did change the target to Pico chip but it is essential the same chip as my nucleo 401RE.

    Yes I can reload Espruino back on it and it works and can program through web IDE even. That's how I know the DFU process is working.

    Guess I wasn't sure if this process got rid of the Espruino bootloader too and that was causing problems if left behind.

  • Yes, the Espruino bootloader sits in the first 16kB page of flash - so that's probably the first thing that gets removed when you upload your own code - I'd be pretty sure the issue is just with the code you're uploading.

  • I figured it out. I had some GPIOB configuration wrong. All seems to be working now.

    Thanks Gordon

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

Custom firmware on Pico

Posted by Avatar for user91236 @user91236

Actions