These are chat archives for SmingHub/Sming

27th
Oct 2016
Daniel Pechmann
@dpechman
Oct 27 2016 01:26
Hey Guys, I have implemented some UDP routines to add to a large program in production. First I have tested this code isolated in a new empty program and the functions are working very well. then I include the libraries of mine new implementations to the main program and it also compiles without errors or warning, but dont run anymore. Then I tryed to coment some code in functions not used by the moment for test purposes and the after compile again the main program start to run and the new udp routines working without problem.
may be my code have reached the limits of space memory??
there are some warning about this? how I know how much space my code is using?
Daniel Pechmann
@dpechman
Oct 27 2016 02:43
When compiling the code it dont shows any informations about code space used?
johndoe8967
@johndoe8967
Oct 27 2016 08:20
hello,
I've a growing project and now my 0x00000.bin is exceeding the 0x09000 size limit
is there any way to increase this file and move the 0x09000.bin to 0x0a000 ?
I tried to move the offset in the esptool2 but then the same project will not start any more -> exception
johndoe8967
@johndoe8967
Oct 27 2016 09:05
or maybe is there a possibility to move some .rodata to the 0x09000.bin?
basically I fail to enable ftp support because all the ftp strings are in .rodata
hreintke
@hreintke
Oct 27 2016 10:26

@johndoe8967 :
Don't know the limits but you also will need to update ld file to facilitate.

  iram1_0_seg :                           org = 0x40100000, len = 0x9000
  irom0_0_seg :                           org = 0x4020A000, len = 0x52000

And the start of irom0 should be higher than end of iram1.
The esptool flash address should be set accordingly.

johndoe8967
@johndoe8967
Oct 27 2016 12:50
yeah, thanks for the help,
I also commented most of the debugf out of my code and sming itself, these strings used a lot of my 0x9000 bytes :-)
Daniel Pechmann
@dpechman
Oct 27 2016 21:27
can I use fwMeminfo.new to determine the size used by my code?

out/build/app.out: file format elf32-xtensa-le

Sections:
Idx Name Size VMA LMA File off Algn
0 .data 000009a8 3ffe8000 3ffe8000 000000e0 24
CONTENTS, ALLOC, LOAD, DATA
1 .rodata 00002578 3ffe89b0 3ffe89b0 00000a90 2
4
CONTENTS, ALLOC, LOAD, DATA
2 .bss 000077d8 3ffeaf28 3ffeaf28 00003008 24
ALLOC
3 .irom0.text 00043a92 40209000 40209000 00008f80 2
4
CONTENTS, ALLOC, LOAD, READONLY, CODE
4 .text 00005f77 40100000 40100000 00003008 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE