These are chat archives for esp8266/Arduino

23rd
Aug 2016
bbx10
@bbx10
Aug 23 2016 00:38
@me-no-dev Is that for asyncwebserver? I have not tried that yet. I was getting about 1.9 seconds for a single 1024*1024 byte file using non-async webserver. which is pretty close. I suspect a lot of variation is due to distance to AP, RF interference, etc. I will try async webserver and see if it really is slower.
Comino
@cominous_twitter
Aug 23 2016 01:42
wow crazy problems with ".pioenvs/esp12e/firmware.elf section .text' will not fit in regioniram1_0_seg" now using github instead of stable version . Already read its due to newlib.
Any idea how to save IRAM ? (Apart from not including stuff)
I cant even see how far away I am since no .elf is generated -_-
Comino
@cominous_twitter
Aug 23 2016 02:05
I read F ( ) around constant strings help, any more ideas?
Ivan Grokhotkov
@igrr
Aug 23 2016 02:08
@cominous_twitter have you modified compiler/linker flags in platformio to match those in platform.txt?
Comino
@cominous_twitter
Aug 23 2016 02:08
yep
to be honest it was more trial and error
Ivan Grokhotkov
@igrr
Aug 23 2016 02:10
You can check how much excess there is by increasing .iram0_seg memory segment size in the linker script
Comino
@cominous_twitter
Aug 23 2016 02:10
oh okay will check that - read somewhere its already to max
Ivan Grokhotkov
@igrr
Aug 23 2016 02:10
the binary will obviously fail to run, but at least you will be able to run xtensa-lx106-elf-objdump -h on the elf file
Comino
@cominous_twitter
Aug 23 2016 02:10
oh understand
Comino
@cominous_twitter
Aug 23 2016 02:23
text size : 41k - well thats a lot :O
Even ~50k before I commented out stuff.
With staging I was defnetly below 32k since it compiled :O That realy hurts
Ivan Grokhotkov
@igrr
Aug 23 2016 02:29
It shouldn't be that bad. I think something is still wrong with the linker command line options.
there may be slight increase, 2k tops, but not that much.
Comino
@cominous_twitter
Aug 23 2016 02:29
Yes Im starting to think the same
Michael Miller
@Makuna
Aug 23 2016 02:29
@cominous_twitter while F () will move string literals into flash, you need can also use progmem to move other array tables into flash if you happen to have any.
Ivan Grokhotkov
@igrr
Aug 23 2016 02:29
compile blank sketch with arduino, then compile with platformio, then compare linker command lines
note the order in which library directories appear. it should be exactly the same.
Comino
@cominous_twitter
Aug 23 2016 02:30
ok I will check again
@Makuna : like this: const char any PROGMEM = ... ?
Comino
@cominous_twitter
Aug 23 2016 03:04
well double checked and still the same size :/. Well - will catch some sleep and investigate tomorrow
Would be nice if someone using platformio + latest sends his "main.py" / "arduino.py"
thanks so far @igrr
Clemens Kirchgatterer
@everslick
Aug 23 2016 07:51
@0xPIT hehe, hi there!
long time no see
Me No Dev
@me-no-dev
Aug 23 2016 07:55
@cominous_twitter did you edit the LD to add the new libc?
I have pio running with latest git
in the ld script:
you need to add to irom0text *libc.a:(.literal .text .literal.* .text.*) and EXTERN(core_version) before PROVIDE(_memmap_vecbase_reset = 0x40000000);
Me No Dev
@me-no-dev
Aug 23 2016 08:01
[env:esp12e]
platform = espressif
framework = arduino
board = esp12e
board_f_cpu = 160000000L
board_f_flash = 80000000L
board_flash_mode = qio
upload_resetmethod = nodemcu
build_flags = -Wl,-Tesp8266.flash.4m.ld -I/Users/ficeto/.platformio/packages/framework-arduinoespressif/tools/sdk/libc/xtensa-lx106-elf/include -L/Users/ficeto/.platformio/packages/framework-arduinoespressif/tools/sdk/libc/xtensa-lx106-elf/lib -lc
upload_speed = 921600
#upload_port = IP_ADDRESS_HERE or mDNS_NAME.local
#upload_flags = --port=8266 --auth=AUTH --spiffs
lib_install = 305,306,359
Comino
@cominous_twitter
Aug 23 2016 09:46
@me-no-dev : jep I added them in "arduino.py"
http://pastebin.com/NWkPQAfW
Are u using that platformio.ini with untouched pio version?
Me No Dev
@me-no-dev
Aug 23 2016 10:31
I have added version.txt in the root of the esp arduino with 2.4.0 in it
Comino
@cominous_twitter
Aug 23 2016 10:41

I did so too. Im getting

././newlib/libc/time/lcltime.c:55: first defined here .pioenvs/esp12e/libFrameworkArduino.a(time.o): In functionctime':
time.c:(.text.ctime+0x8): multiple definition of ctime ´

and the same with more time related functions
Me No Dev
@me-no-dev
Aug 23 2016 10:47
you are using git version and have made the LD changes right? pulled latest toolchain and all?
Comino
@cominous_twitter
Aug 23 2016 11:12
yes :/
  • ld script is : http://pastebin.com/raw/cbKU5Mw0
  • fresh cloned github version arduino esp8266
  • 2 cups of black coffee
  • developement version platformio (but no difference to default - I tried)
  • removed everything and reinstalled everything
  • version.txt present
    Thanks for helping! :)
Comino
@cominous_twitter
Aug 23 2016 11:19
This message was deleted
Me No Dev
@me-no-dev
Aug 23 2016 11:31
is that platformio's LD or esp8266 repo LD?
Comino
@cominous_twitter
Aug 23 2016 11:31
platformio's
Me No Dev
@me-no-dev
Aug 23 2016 11:31
what was the path for that?
Comino
@cominous_twitter
Aug 23 2016 11:32
.platformio/platform/espressif/ldscripts/esp8266.flash.common.ld
( just reinstalling to release platformio)
you have stuff missing
Comino
@cominous_twitter
Aug 23 2016 11:40
:D !! It works!!
You made my day :) Thanks a lot! May I post that to platformio forum?
Me No Dev
@me-no-dev
Aug 23 2016 11:42
sure thing
pio devs are aware of the changes required and they will be put it once 2.4.0 is released
Comino
@cominous_twitter
Aug 23 2016 11:44
strangely I have like no increase in Iram usage now - that's a bit fishy :D Only +0.2KB
kiralikbeyin
@kiralikbeyin
Aug 23 2016 11:44
is there any date for 2.4.0
Me No Dev
@me-no-dev
Aug 23 2016 11:45
there is an undefined one :P
Krzysztof
@krzychb
Aug 23 2016 11:46
How much undefined one? :smile:
Me No Dev
@me-no-dev
Aug 23 2016 11:48
#ifdef 2_4_0_RELEASE_DATE
#undef 2_4_0_RELEASE_DATE
#endif
:D
Comino
@cominous_twitter
Aug 23 2016 11:49
I think everyone's welcome to PR to define that date :P
Me No Dev
@me-no-dev
Aug 23 2016 11:49
I know I have a few things that I need to fix, there is that new SDK... the new aproach to WiFiClient may backfire...
kiralikbeyin
@kiralikbeyin
Aug 23 2016 11:50
@me-no-dev can you confirm latest github version is working with latest ESPAsyncWebServer?
Me No Dev
@me-no-dev
Aug 23 2016 11:51
yes I confirm that latest ESP8266-Arduino + both latest Server and TCP are a working combo
I use that :D
kiralikbeyin
@kiralikbeyin
Aug 23 2016 11:51
are you using mdns ?
Me No Dev
@me-no-dev
Aug 23 2016 11:51
yes and ota and all
kiralikbeyin
@kiralikbeyin
Aug 23 2016 11:52
ok i will retry install
Me No Dev
@me-no-dev
Aug 23 2016 11:52
as a matter of fact if you get the latest esp8266 and latest AsyncTCP, you will have SSL support
Faraz Ahmed
@faraz117
Aug 23 2016 17:15
What files do i need to include to use axtls implementation seperately ?
axtls is a generalized lib so can be used on any controller what if i want to just implement RSA from axtls ?
How do i tell axtls that the controller to be used is ESP8266
Faraz Ahmed
@faraz117
Aug 23 2016 17:26
I am getting this error while trying to use RSA_priv_key_new() .. "bi_terminate: there were 1 unfreed big ints"
Holger Lembke
@holgerlembke
Aug 23 2016 17:38
(no files release because... yeah. some debugging + cleanup needed )
probonopd
@probonopd
Aug 23 2016 18:02
@holgerlembke why would one want to use FAT on a flash chip?
Germán Martín
@gmag11
Aug 23 2016 21:58
@igrr Can I run ESPExceptionDecoder out of arduino IDE, using command line?