Upgrading OpenEVSE / EmonEVSE Controller Firmware using ISP programmer

Now that I have the OpenEVSE module on the bench, I have again tried to program it. I followed your advice, Jeremy, to try and power the module from the Polulu progammer, following the instructions to enable the 5V output from the programmer, in the documentation you pointed me at, John.

Reading those docs, I was dubious that the programmer had enough oomph to power the module, in particular the capacitance it can cope with on Vcc is pretty small. This turned out to be the case, as the programmer just gave up when trying to power the target directly. I think the 5V output from the programmer is only really intended to power a target with not much more than the processor chip itself. Maybe the programmer you have, Jeremy, has more oomph than this one.

So taking your advice, Jeremy, that it would be ok to power the OpenEVSE module with 5V inserted on the ISP connector, and since the 5V and GND on the FTDI interface connector are common with those on the ISP connector, I inserted 5V DC from a separate power supply into that connector.

The Polulu programmer now detected the target Vcc just fine, but I still get the same error from avrdude when trying to read or write anything from the Atmega chip.

From the docs that John pointed me at, I was able to download the programmer status and setup utility. This gives me the additional info that, after attempting to connect to the target, I have the error message “The SPI command for entering programming mode was sent, but the expected response from the target was not received”.

This tends to confirm my suspicion that I have managed to disable ISP programming by corrupting the “fuse” value that enables this. I have been advised that this can only be fixed with HVP and that cannot be done with the chip in circuit. Does that sound correct to you, Jeremy? I do understand that you have really only been involved in the Wi-Fi module.

In the absence of any help and support from the actual hardware designer or firmware author of the OpenEVSE module, I think my next step has to be to replace the Atmega328P chip with a new blank one, unless anyone can suggest anything else I can try? (A friend from MERG has offered to send me a blank chip, as they seem to be out of stock at all suppliers).

Thanks,

Pete

Hi,

i have the same Polulu programmer.
Can you tell me which windows drivers you used?

I don’t understand if i need to use the same drivers as explained in the guide ( libusb-win32), or the one delivered with Polulu software.

Also, should i use the programming port ?

image

Regards

Hi,

I just used the included drivers but did not bother with the TTL one as was not using that side of the programmer. Did not use the programing port as I think this was to change how the device worked and as it was OK using the default settings was happy with that.

John

Hi,

upgrade done.
Thanks so much for your help.
Lots of help on this forum. (commands, plans etc…)
Regards from france

1 Like

Glad we were of help :slight_smile:

Hi,
i just bought an openEVSE on the US website (out of stock on UK) and i look at for the upgrade process. I saw here (How to Load OpenEVSE Firmware (WinAVR) - OpenEVSE) that i need a usb avr programmer to update the openEVSE module, is it the only way to do this ?
On this website i also saw that we don’t need to connect the openEVSE module to 12v and/or 230v to do the upgrade but in this forum I saw that it was necessary to connect 12v and 230v, who’s right ?

Hi,

you can change the AVR bit to power the module but I have been told this is not always reliable. It is better to power the unit up from the 240V supply (but you need to be very careful) this should then allow you to program the new firmware. You can update the Wi-Fi board from the WEB interface.

John

Hi,
thank you for your reply, it’s clear.
For upgrading the openEVSE module is it possible to use this usb programmer (https://www.amazon.fr/programmateurs-ATMEGA8-télécharger-broches-données/dp/B07Y1DH2JC/ref=sr_1_4_sspa?crid=2064VMSZ75XPA&dib=eyJ2IjoiMSJ9.QNq9q7C4jALfAMk2zPsxi1wwMzl06RaMhECFk2S0QQ03uUoRoL9usQqf8qdr0UgldOQ9fxS7DHtaZjLblKZdRLh0qQ3j2GX6q370nbmO6TuTANb995L9kn1OXDJrtrHDhrukluC4GnQOElC7ZhQAzyP2WDFzzIVNZ5y5huYMTEe1lfWuw5VUzKimNAQiR2GL4Fm0gX8x3oLyC-U6F2RS94RRGpohT4TUumVfc2L5NwC2mf5nF5XGX2QkUeTrebf1SdbGPw4_QWGLSsQ7sqP94hsgev_shs-c3PjxZLZFXhA.UpCZymAicwc8P5mwv26GErc7t42dtTgauge68XzXkY8&dib_tag=se&keywords=avr+programmer&qid=1723039040&sprefix=avr+progra%2Caps%2C91&sr=8-4-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1) instead of this sold on the official website because i forgotten it in my order ?

You will need to get a converter cable from the 6 pin connection on the EVSE to the 10 pin socket on the programmer you have listed above is the info I posted before in the subject

John

Ok, thank you so this one (https://www.amazon.fr/SP-COW-Microcontrôleur-Programmeur-Téléchargeur-Câble/dp/B09TXJPSZN/ref=sr_1_3_sspa?crid=2064VMSZ75XPA&dib=eyJ2IjoiMSJ9.QNq9q7C4jALfAMk2zPsxi1wwMzl06RaMhECFk2S0QQ03uUoRoL9usQqf8qdr0UgldOQ9fxS7DHtaZjLblKZdRDZjZDupWbBgfh-RtBtEVPru9hI_ggVpE6sP4alwxkIeCVWbM2NNOp2z8Hf1IQXx4E1jUuGJY42jrEGXR-NM0jQtVVaYO0I6FsmR1sPB0W7pAZlXFNlQ_F9N0GdBevOZ3H1DZPB2pVRef4wLYP4L7xtv66RLa9c3BmNDpwiSGjR65vNnyxbVKCZu20gO5xqAP-Kmsjz1QRvp_UBTSuY4lpw.8143qv0yjUWT57ZtLElwLPghVkLijKyLCcxHcRMz4N4&dib_tag=se&keywords=avr+programmer&qid=1723104002&sprefix=avr+progra%2Caps%2C91&sr=8-3-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1) with converter 10 to 6 pins seems to be more appropriate ?

Hi,

That may be OK but note it says does not work with Win 10 so suspect would also not work with Win 11

John

i saw this so it may be ok :