Start a new topic

firmware upgrade

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


I have a few Wroom32 boards but I was curious about what I'm doing wrong.


So, at the end I've got it flashed, the correct procedure came from this topic:

https://community.openenergymonitor.org/t/esp32-firmware-problems/15685


The bootloader.bin and partitions.bin files needs to be flashed to.They can be downloaded here:

https://github.com/OpenEVSE/ESP32_WiFi_V4.x/releases


You can find the files under release V4.1.1 in Assets

After that, using the esptool.py the command will be (change the port number to one you have):


python -m esptool --chip esp32 --port com2 --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader.bin 0x8000 partitions.bin 0x10000 firmware.bin


Thank you Javierfor your king help!




As they say: well is when it ends well Ienjoy!

Hi Javie,


Which environment do you use for compiling? I use VS Code with Platformio addon on Windows 10.

After importing the arduino project as you did I still have the same "missing Arduino.h" compile error.

Also I need to comment out the line

platform = espressif32@1.11.1


because it is not able to find it and uncomment the line:
#platform = https://github.com/platformio/platform-espressif32.git


After that, building the project it downloads the platform-espressif32and fails with "Arduino.h not found" error.

So I think there is something missing in my dev environment.

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

 

 

Javier,


The latest binary you compiled works just fine, thank you.
Which version of the "espressif32" are you using in your environment?

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!

version.png
(41.2 KB)

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

Javier,


OpenEVSE has not officially tested 8.2.0 yet. We ship with the latest fully tested release, which is 7.1.3. 


flash.bat just automates the commands:


Required only the first programming

avrdude -c USBasp -p m328p -U lfuse:w:0xFF:m -U hfuse:w:0xDF:m -U efuse:w:0x05:m 


loading firmware

avrdude -c USBasp -p m328p -U flash:w:open_evse.hex 


The EEPROM loads the factory default settings (not required).


Chris

Chris

Thanks for your response

I thought 8.2.0 was a stable ( tested) version

I am after support for OCPP, and - apparently- is supported on ver 8.2.0

Is there any other version that has OCPP support?


Javier

Login or Signup to post a comment