flashing pico with stm32loader.py #5505
Replies: 1 comment
-
Posted at 2016-09-26 by @gfwilliams Unplug, and re-plug with the button held down? Posted at 2016-09-26 by @MaBecker ok - now the red and green led alternately blink
ok - no more errors - led red and green alternately blink re-plug - permanent red led , usb device does not show up in WebIDE hmm - what else is missing ? Posted at 2016-09-26 by @gfwilliams You probably want to erase first as well? see http://www.espruino.com/Serial+Bootloader
Hopefully on the Pico you don't need If this a binary that you built yourself? If so, you need to offset the address as well with Posted at 2016-09-26 by @MaBecker using a official build 240488 13 Sep 11:44 espruino_1v87_espruino_1r3.bin
tried a different usb cable - same result Posted at 2016-09-26 by @gfwilliams Ahh, yes you could leave off the That's expected. It's because (luckily :) ) the USB bootloader won't overwrite itself - so everything between 0 and 0x3fff is the bootloader and won't match what's in the binary. Did you check to see if the Pico worked after this? (Also, are you doing this for a reason? You could just use the flasher that's built into the Web IDE...) Posted at 2016-09-26 by @MaBecker hmm, replaced -v with -X and tested some images: err : espruino_1v87_espruino_1r3.bin ok : espruino_1v87_pico_1r3_wiznet.bin ok : and espruino_1v87_pico_1r3_wiznet.bin Is there a reason why espruino_1v87_espruino_1r3.bin is not working for pico Which image is needed for pico + shim with esp01 ? WebIDE works fine, just a fan of command line tools ;-) Posted at 2016-09-27 by @gfwilliams
Yes, it's the image for the Original Espruino board (not the pico), and it uses a totally different processor.
Either the WIZnet or CC3000 works fine. I'd say use the WIZnet one though - the code is nicer :) Posted at 2016-09-28 by @MaBecker Thanks a lot for your great support ! Posted at 2016-12-06 by Wayne_Contello I am trying to flash an STM32F0 device and added the ID to the list by modifying the python source as follows:
Then I invoke the python script as follows:
then I get the response:
Any thoughts on whether this is python script problem? or something with the device I am trying to program? I have held the boot pin button while resetting the device. I should note that I am on macOS Sierra (10.12.1) Posted at 2016-12-06 by Wayne_Contello The indentation of the source code segment is all correct (even though this site is showing the last two entries as being indented less than the previous lines). Posted at 2016-12-07 by DrAzzy What board are you using? Sounds like this must be a custom build? I didn't realize Espruino was working on any STM32F0 parts yet! As for that error - could it be the python version? The python 2.7.x and 3.x versions are not entirely code compatible. When there's code that other people claim works, which you try to use and are get errors implying it could never work, that's something you should check. IME, lots of code you download doesn't work in python 3. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-09-26 by @MaBecker
starting to work with a pico attached to USB.
o connected WebIDE to pico and did a reset() and disconnected
o next step: update to 1v87
what is missing ?
Beta Was this translation helpful? Give feedback.
All reactions