FW 5.0.1 compiled sketch too big out of the box

90 views
Skip to first unread message

vegasbrad

unread,
Dec 2, 2020, 1:41:41 AM12/2/20
to OpenEVSE
I messaged Chris H about this tonight and was wondering if any one else has ran into this.
I built a charging station kit I've had for awhile and want to update the FW to 5.0.1  I DL'ed 5.0.1 tonight and Arduino 1.6.5 is giving me an error that the sketch is too big. It's at 105% with no edits done. I tried to delete a few things hoping to make room but it didn't help, I deleted the two Mennekes files on a guess (as I'm not using a Mennekes lock) in the firmware folder that contains the plethora of files (libraries?) and the open_evse file. After spending a few hours I'm stuck. I can't understand why the sketch is too big right out of the box.

chris1howell

unread,
Dec 2, 2020, 7:05:18 AM12/2/20
to OpenEVSE
Check the version of build tools you may have to download an older version. If you are building and testing you own build you can also try the latest development version at lincomatic GitHub.

  • Current official build tools version is Arduino AVR Boards by Arduino v1.6.15. You can install any version of the GUI, but make sure to use that version of the build tools, as it was used for UL certification. WITH LATEST CHANGES, v1.6.15 results in a sketch that's too big (>32768). MUST DISABLE FEATURES TO BUILD A COMPATIBLE SKETCH.. disabling RAPI_WF does the trick. 

On Wed, Dec 2, 2020, 12:41 AM vegasbrad <civict...@gmail.com> wrote:
I messaged Chris H about this tonight and was wondering if any one else has ran into this.
I built a charging station kit I've had for awhile and want to update the FW to 5.0.1  I DL'ed 5.0.1 tonight and Arduino 1.6.5 is giving me an error that the sketch is too big. It's at 105% with no edits done. I tried to delete a few things hoping to make room but it didn't help, I deleted the two Mennekes files on a guess (as I'm not using a Mennekes lock) in the firmware folder that contains the plethora of files (libraries?) and the open_evse file. After spending a few hours I'm stuck. I can't understand why the sketch is too big right out of the box.

--
You received this message because you are subscribed to the Google Groups "OpenEVSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openevse+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openevse/e176d10e-8f0d-4e57-9d2a-8ee9b301b6ben%40googlegroups.com.

vegasbrad

unread,
Dec 2, 2020, 5:05:47 PM12/2/20
to OpenEVSE
Thanks for the quick response Chris, I looked at https://www.arduino.cc/en/Main/OldSoftwareReleases#previous for older Arduino IDE software and it skips from 1.6.13 to 1.8.0 Is 1.6.15 the correct number?  I'm trying to wrap my head around the terms, perhaps I'm not following you.

Won't disabling RAPI_WF disable communication via the header that the wifi module plugs into?

chris1howell

unread,
Dec 2, 2020, 5:42:53 PM12/2/20
to OpenEVSE
Open Arduino
Select Tools
Boards: Board Manager...
Find Arduino AVR Boards
Change version to 1.6.15
Select Install





vegasbrad

unread,
Dec 2, 2020, 7:11:13 PM12/2/20
to OpenEVSE
Thanks for the detailed steps, I did that. Now under the Tools, Board, drop down, "Open EVSE programmer" is no longer listed. I chose Arduino/Genuino Uno and The sketch does compile and ends up at 99% but it wont load, I get
avrdude: stk500_recv(): programmer is not responding

vegasbrad

unread,
Dec 2, 2020, 7:20:50 PM12/2/20
to OpenEVSE
for programmer I still have USBasp selected

chris1howell

unread,
Dec 2, 2020, 7:32:46 PM12/2/20
to OpenEVSE
You need to select "Upload using programmer" under Sketch


vegasbrad

unread,
Dec 2, 2020, 8:24:35 PM12/2/20
to OpenEVSE
I tried that and also using the checkmark button , i get;

Sketch uses 32,012 bytes (99%) of program storage space. Maximum is 32,256 bytes.
Global variables use 1,546 bytes (75%) of dynamic memory, leaving 502 bytes for local variables. Maximum is 2,048 bytes.
Low memory available, stability problems may occur.
avrdude: Warning: cannot query manufacturer for device: No such file or directory
avrdude: Warning: cannot query product for device: No such file or directory
avrdude: error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp'

vegasbrad

unread,
Dec 2, 2020, 8:52:46 PM12/2/20
to OpenEVSE
is there something about boards.txt that needs to be changed? a vaguely remember something from years ago, is this related to getting [Programmer]OpenEVSE back as a option?

vegasbrad

unread,
Dec 2, 2020, 9:08:25 PM12/2/20
to OpenEVSE
I followed this guys post and selected [Programmer]OpenEVSE  but now it wont even compile :

Steve Waltner
said almost 5 years ago

OK, I finally was able to compile the code that I downloaded from https://github.com/OpenEVSE/open_evse.

To correct the compilation error, I just downgraded my copy of the Arduino toolset from version 1.6.6 down to 1.6.5. For whatever reason, the stable code branch available now doesn't compile cleanly using the latest toolset. While I understand that I could have added the function prototypes, until I learn a little more about Arduino in general and OpenEVSE in particular, I'm going to keep it as simple as possible.

To correct the second issue that we ran into, with the compiler saying the resulting code object is too large, adding the board definition worked. There apparently are multiple ways to define new board/connection types. I did this by selecting Arduino->Preferences and then entering https://github.com/chris1howell/Arduino_Board_Manager/releases/download/v0.1/package_OpenEVSE_328p_index.json in the "Additional Board Manager URLs" field, closing that dialog box, then selecting "Tools->Boards->Board Manager", selecting the OpenEVSE entry and then clicking Install. "[Programmer]OpenEVSE" was now a board type.

After downgrading the toolset and installing the custom board type, the current code set compiles cleanly. Just hoping this helps others as they work through this process.


now i get:
C:\Program Files\Arduino\hardware\tools\avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\Brad\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.15\cores\arduino -IC:\Users\Brad\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.15\variants\standard C:\Users\Brad\AppData\Local\Temp\build6683425470897689960.tmp\twi.c -o C:\Users\Brad\AppData\Local\Temp\build6683425470897689960.tmp\twi.c.o
cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.
Error compiling.

i tried switching back to uno for the board and get the same error

vegasbrad

unread,
Dec 2, 2020, 9:14:46 PM12/2/20
to OpenEVSE
i uninstalled Arduino_Board_Manager , closed IDE and relaunched, now it compiles fine again, i tried upload with programmer again and get:

Sketch uses 32,012 bytes (99%) of program storage space. Maximum is 32,256 bytes.
Global variables use 1,546 bytes (75%) of dynamic memory, leaving 502 bytes for local variables. Maximum is 2,048 bytes.
Low memory available, stability problems may occur.
avrdude: Warning: cannot query manufacturer for device: No such file or directory
avrdude: Warning: cannot query product for device: No such file or directory
avrdude: error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp'

also the power light on my openevse programmer is on but the busy light never comes on so even though the IDE screen says uploading i know its not.



sooo frustrating!

vegasbrad

unread,
Dec 2, 2020, 9:25:48 PM12/2/20
to OpenEVSE
i need to post the way back out of the rabbit hole here for reference
i tired to install fw v 3.11.3 to test and now i cant even do that, i get avr dude not recognizing programmer. so i upgraded boards ver back to 1.6.5, still errror, reinstalled Programmer Openevse and now its back to working before i started all this.

given the previous post what am i missing?
Reply all
Reply to author
Forward
0 new messages