[quote]
With the software NodeMCU-PyFlasher and NodeMCU-PyFlasher the openevse_huzzah32.bin is installed
flash and done?
[/quote]
If you have an ESP32 with a USB connection, then you can use NodeMCU etc. But not everyone has that slightly more expensive style of ESP32 module, which is why some people say, "this is so easy, it doesn't even require instructions" and others have had to jump through many hoops and outdated instructions that do not apply to our hardware.
That is why this thread contains at least two different ways to update firmware.
To further confuse: there are two different modules in every OpenEVSE:
The Controller
The ESP32/Wi-Fi
Each have their own separate firmware to be updated. Updating the ESP32 can be relatively straightforward; updating the Controller' firmware is not. And, if you update the ESP32 without updating the Controller's firmware as well, some of the firmware mis-matches will trigger other issues, depending on the age of the unit you're working with. And, the hardware interfaces of the two modules are different, requiring separate tools and toolchains:
Controller: USB AVRISP hardware, and avrdude software
ESP32: USB to TTL hardware, and esptool software
(or, with the USB-equipped version of the ESP32: NodeMCU (etc.))
I've hit all of these problems over the years with my 2017-era OpenEVSE (now upgraded from ESP2866->ESP32). Regardless of how old your hardware or firmware is, the recipe I posted should handle all of these issues for all versions and revisions.
So, after a lot of struggle I figured out what was caused the compile error. I hope it will help others to get rid of this issue.
It turns out that the platformio is not able to find the "framework-arduinoespressif32" at version "2.10004.191002" required by "espressif32" version "1.11.1". It should be downloaded manually, I found it at sourceforge:
The content of the compressed file must be copied into folder:
C:\Users\YOUR_USERNAME\.platformio\packages\framework-arduinoespressif32\
This way the project will compile and binaries will be created.
P.S.:
With version 4.1.3 on first boot the webpage now says "Loading, please wait... (/)". It does the same using precompiled binaries from the git project page.
I'm running windows 10 with visual studio code + platformio
However, I had already installed Arduino IDE, so I don't know if reusing some of the libraries
Just now I have recompiled the code on platformio, in this case what I did was to decompress the github 4.1.2 zip file to a location on my drive, then on Platformio click on Open Project and point the project to that location. I did recompile and flashed and worked first time!
However, I do not know how to change the board, so it used the wroom32 board
Even if I knew how to change the board , I don't have an MCU32 board to test
ok, I have recompiled the code using "import Arduino Project", selected the (first) Node MCU 32S (not sure why there more than 2 instances).,I did NOT select "Use libraries installed by Arduino IDE"
Then I pointed to the location of the decomppressed zip folder. Afterwards I compiled and after some warnings it finished compiling with the resulting firmware files
As I said if I had a board I would flash to test, but I don't have one
I'm an idiot!
Just found that I was compiling with the "default_envs = openevse_wifi_v1" instead of "default_envs = openevse_nodemcu-32s"
on the platformio.ini file
This explains why the code would not work for you!
I tried to compile and the first time I got an error:
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Downloads\\ESP32_WiFi_V4.x-4.1.2\\.pio\\build\\openevse_wifi_v1\\.sconsign39.tmp'
After that I tried again and now compiled succesfully
I have uploaded the files to the same location:
https://www.mediafire.com/folder/mxuon5qisbfx3/nodemcu-32+code
I will now try compile fronm scratch
I will let you know how it goes
NOW I have compiled from scratch:
From platformio Open Project , select location of unzipped folder
Then modify platformio.ini file, so it says: "default_envs = openevse_nodemcu-32s"
Compile and flash
I have copied the last version of the files same place:
https://www.mediafire.com/folder/mxuon5qisbfx3/nodemcu-32+code
Hope this works for you
I don't know!
How can I check?
I've just installed a new VSCode + Platformio environment on a fresh Win10 machine, downloaded the the latest V4.1.3 project from github and tried to compile it, without success so far. It fails immediately.
Please take a look on the picture attached. You will also see how to check the espressif32 version that you are using.
By the way, the binary you made yesterday has been compiled from a V4.1.2dev version source code. Can you double check which version of code are you using?
Thank you!
It seems I may have two exprssif libraies installed, see snapshot
I don't know how to check the version, this is all I could get
There are several firmware update paths, but the choices you have are more limited if your ESP32 module does not have the USB interface.
I posted a reasonably comprehensive overview on updating the controller, and the ESP32, here:
Javier Mitchell
Hi
Just received my openevse 5.5 board
However, upon checking some of the options it seems some are missing
My version is 7.1.3, but the latest is 8.2.0.
I bit dissapointed that I did not received a module with the last release
Looking at the upgrade instructions, and they don't seem to have been updated
https://openevse.dozuki.com/Guide/How+to+Load+OpenEVSE+Firmware+(WinAVR)/7
On one of the last steps, it mention yo need 3 files; flash.bat, open_evse.hex and eeprom_24.bin
However, on the repository for the last release ( 8.2.0) there are a couple of hex files ( I assume I should use openevse.hex), there is no bin o flash.bat files
What am I missing?
should just run the command to flash the hex file as per the Readme file:
`$ avrdude -p atmega328p -B6 -c usbasp -P usb -e -U flash:w:firmware.hex`
Any help appreciated