platformIO compile error

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
countcobolt
Normal user
Posts: 29
Joined: 12 Jun 2017, 11:12

platformIO compile error

#1 Post by countcobolt » 17 Jun 2018, 17:14

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

User avatar
grovkillen
Core team member
Posts: 3296
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: platformIO compile error

#2 Post by grovkillen » 17 Jun 2018, 18:40

Double compile (i.e do two tries after each other)?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

countcobolt
Normal user
Posts: 29
Joined: 12 Jun 2017, 11:12

Re: platformIO compile error

#3 Post by countcobolt » 18 Jun 2018, 08:47

unfortunately no joy on this...

TD-er
Core team member
Posts: 1783
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: platformIO compile error

#4 Post by TD-er » 18 Jun 2018, 21:11

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.

gorbounov
Normal user
Posts: 1
Joined: 02 Feb 2019, 13:17
Location: Ukraine

Re: platformIO compile error

#5 Post by gorbounov » 02 Feb 2019, 13:32

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)

RFDave
Normal user
Posts: 3
Joined: 05 Feb 2019, 01:18

Re: platformIO compile error

#6 Post by RFDave » 05 Feb 2019, 02:42

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.

RFDave
Normal user
Posts: 3
Joined: 05 Feb 2019, 01:18

Re: platformIO compile error

#7 Post by RFDave » 05 Feb 2019, 11:28

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

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests