Page 1 of 1

platformIO compile error

Posted: 17 Jun 2018, 17:14
by countcobolt
Hi all

when I try to compile the mega branch using Atom I am getting the following error
Compiling .pioenvs/normal_ESP8285_1024/src/ESPEasy.ino.cpp.o
Linking .pioenvs/normal_ESP8285_1024/firmware.elf
Checking size .pioenvs/normal_ESP8285_1024/firmware.elf

Building .pioenvs/normal_ESP8285_1024/firmware.bin
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [===== ] 53.9% (used 44176 bytes from 81920 bytes)
PROGRAM: [==========] 133.9% (used 581380 bytes from 434160 bytes)
Error: The program size (581380 bytes) is greater than maximum allowed (434160 bytes)


I do find the compiled firmware.bin file under the location it should be. Any ideas why this happens?
PS: trying to compile P165 in the mega branch from GitHub
Kind regards

Steve

Re: platformIO compile error

Posted: 17 Jun 2018, 18:40
by grovkillen
Double compile (i.e do two tries after each other)?

Re: platformIO compile error

Posted: 18 Jun 2018, 08:47
by countcobolt
unfortunately no joy on this...

Re: platformIO compile error

Posted: 18 Jun 2018, 21:11
by TD-er
I tested here to build on my own computer and get the same result.

It seems like there have been some changes on the board definitions:

Code: Select all

[06/18/18 21:05:49] Processing normal_ESP8285_1024 (framework: arduino; platform: espressif8266@1.7.1; board: esp8285)
 
Warning! `board_flash_mode` option is deprecated and will be removed in the next release! Please use `board_build.flash_mode` instead.
Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: Espressif 8266 > Generic ESP8285 Module

SYSTEM: ESP8266 80MHz 80KB RAM (423.98KB Flash)
That's smaller than the actual flash size of 1M.
It looks like they're taking into account you have to leave room for OTA flashing?

Edit:
Could you make an issue about this on Github?
Just to make sure I don't forget.

Re: platformIO compile error

Posted: 02 Feb 2019, 13:32
by gorbounov
In section [env:normal_ESP8285_1024] of platfomio.ini need add

Code: Select all

board_upload.maximum_size=761840
Tested on Sonoff RF R2 Power (Sonoff Basic V2)

Re: platformIO compile error

Posted: 05 Feb 2019, 02:42
by RFDave
Hello I am new to this.
I am getting an error with PlatformIO. I would like to build a WI-mos D1 mini with plugins for IRTX (P016 & P035) and RF433 (P112). no other plugins are required.

src/_P112_RFTX.ino:202:56: error: invalid initialization of non-co
nst reference of type 'String&' from an rvalue of type 'char*'

Can some please point me in the right direction?

Thank in advance.

Re: platformIO compile error

Posted: 05 Feb 2019, 11:28
by RFDave
After trying to compile,

I found this which works.

"
Re: RF 433 plugin for KAKU in the playground
#42 Post by data » 16 Apr 2018, 09:19

Oh, sorry, I moved the folder last year. Try this one:
http://tinydevices.de/ESP-Easy/ESPEasy.ino.generic.bin "

Now I have One ESP8266 module which does IR and RF :D