Unable to flash new Espruino WiFi #4520
Replies: 1 comment
-
Posted at 2017-07-01 by EricMeyer After a fumbling around a bit I was able to use the DfuFileMgr to generate a .dfu from the .bin and then selected the upgrade option which it said was successful. Cleaned off the graphite mark and reconnected in the IDE and it still says that I have 1v91. I thought I had it ... suggestions? One more thing ... I have confirmed that my button is working, because I wrote some code that would light the LED when button was pressed. Worked like a champ. Push the button and it lights, release and it goes out. Posted at 2017-07-01 by @allObjects What board model is it? Posted at 2017-07-01 by EricMeyer Espruino Wifi Posted at 2017-07-01 by @allObjects Sometimes it is difficult to keep the switch pressed while powering / plugging in the micro USB connector. To make it work reliably, I plug the USB cable first to the Espruino Wifi, then press and hold the switch and plug the other end of the cable into the USB connector of my computer. Posted at 2017-07-03 by @gfwilliams But you used the DFU tool from here and couldn't get it to go? http://www.st.com/en/development-tools/stsw-stm32080.html If you can get the bootloader working rather than using DFU, that'd definitely be easiest though. As @allObjects says, the micro USB connector is quick tight and the button is hard to press, so I generally hold the button while plugging the other end of the USB cable into the PC. It's odd about the red & green LEDs flashing though. That should only really happen if the power gets interrupted after the bootloader mode starts. Just to help try and rule some things out, please could you try and do it while connected to another PC, and/or a USB charger? On the USB charger the red&green LEDs should be solidly on when in bootloader mode - if that fails then we know something's up with the . Posted at 2017-07-03 by EricMeyer I know those micro-usb connectors are fragile, so I try to do all my plugging and unplugging at the PC end of the cable. (I have tried it on two different computers with different cables.) I'm at the office currently, so I'll try the USB Charger test when I get home. I'm having one other problem when I do a require("neopixel"), I'm getting a module not found error and I don't see it in the github repository along with the other modules. Did you forget to commit it to github? Gordon, kudos on a great piece of work! I have been doing lots of node.js work over the last 6 months and this feels very similar. Posted at 2017-07-04 by @gfwilliams Thanks - hope you have some luck getting it going. Did you use the DFU tool linked above when you tried it? Unless ST have changed it somehow, it should have been able to upload the bin file directly. The On the Espruino WiFi you can still use neopixels directly without the library, but honestly I'd wait - there are lots of other fixes/features in 1v92 that'd be helpful. Posted at 2017-07-04 by EricMeyer Using just a USB charger the red and green lights stay on longer (maybe a full second) and then go out. Tried the DefuSeDemo tool again and did an upgrade and it said it was successful, but the version number did not change when I went to the Web IDE. Can you provide some brief step by step instructions on using the DFU tool? I have a feeling I'm just missing a step somewhere and it is uploading the firmware to the wrong place or something. Posted at 2017-07-04 by EricMeyer More info ... if I use the utility to make a dfu from the device I still see 1v91 in a hexeditor. Even though the dfu that I'm using for the upgrade save 1v92. Very frustrating. Posted at 2017-07-04 by EricMeyer I found this video and it matches what I tried. https://www.youtube.com/watch?v=Kx7yWVi8kbU Posted at 2017-07-05 by @gfwilliams Where are you getting the firmware from that you're finding When you connect the Espruino WiFi and press the button, do you keep the button held down? If you hold the button down then it'll leave the bootloader mode after a second or two - which might be what you're seeing when you plug into USB (it's the only way I can get a device here to light the LEDs for just a second).# Can you try plugging in with the button pressed, but releasing the button as soon as the LEDs light? Posted at 2017-07-05 by EricMeyer That did it! Worked first try. I never noticed that I needed to release the button immediately after it started flashing. Thank you Gordon! Posted at 2017-07-05 by @gfwilliams Great! I'll update the instructions in the Web IDE to mention it :) Posted at 2017-10-17 by PapaPavo Hello, I had the same issue until I found this post. The Web IDE instructions are still not clear. I'm really enjoying the ease of JS in a microcontroller :) Posted at 2017-10-18 by @gfwilliams Thanks for letting me know. What exactly was the problem - that you needed to release the button soon after applying power? If so I can update the Web IDE instructions and maybe the troubleshooting. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-07-01 by EricMeyer
Board came with 1v91 and I would like to upgrade to 1v92. I can't get it into boot loader mode after trying 5 different cables and dozens of attempts. (red and green leds blink once and go out.) Board is working, but I just can't get it into boot loader mode. So now I would like to try advanced flashing I downloaded the windows utility at the link you provided and it installed something called DFuseDemo and when I run it it sees my board (after shorting the pins on the underside with a graphite pencil mark). It will not load a .bin file however, the utility only supports .dfu files. How do I generate or get one of those?
Beta Was this translation helpful? Give feedback.
All reactions