Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`iram1_0_seg' overflowed after upy and sdk update #19

Open
ulno opened this issue Apr 21, 2018 · 4 comments · May be fixed by #23
Open

`iram1_0_seg' overflowed after upy and sdk update #19

ulno opened this issue Apr 21, 2018 · 4 comments · May be fixed by #23

Comments

@ulno
Copy link

ulno commented Apr 21, 2018

I just upgraded to micropython github head and have trouble compiling the ota enabled version.
I managed to compile boot8266 after commenting several lines in etshal.h (which were reported as doubly defined) and then my micropython compilations ends with:

xtensa-lx106-elf-ld -nostdlib -T./ota.ld -gc-sections -Map=ota.elf.map --cref -o ota.elf ota.o main.o ets_alt_task.o -L/home/ulno/unison/devel/ulnoiot/.local/external/firmware/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib -L. -laxtls -lmain -lnet80211 -lwpa -llwip_open -lpp -lphy -lnet80211 -lgcc
xtensa-lx106-elf-ld: ota.elf section `.text' will not fit in region `iram1_0_seg'
xtensa-lx106-elf-ld: region `iram1_0_seg' overflowed by 58084 bytes
Makefile:12: recipe for target 'ota.elf' failed
make[1]: *** [ota.elf] Error 1

I updated the sdk first and had to update micropython then to make it compile again, so now I am stuck at gettign OTA running again. Any hint or idea, what is wrong?

@ulno
Copy link
Author

ulno commented May 18, 2018

The original mistake mentions conflicting types in etshal.h for uart_div_modify (and others).
When I use etshal.h from microppython/ports/esp8266 these conflicting types go away, but I get the aforementioned overflow error.

I assume that it has to do with using the new version of the esp-open-sdk.

I will try to see, if I can still compile yaota with an older version of the sdk.

@ulno
Copy link
Author

ulno commented May 19, 2018

Using b4ca4e59a81bb7d818271623fa580ec543e0603f of the esp-open-sdk makes yaota compile again.

@dpgeorge
Copy link

When I use etshal.h from microppython/ports/esp8266 these conflicting types go away

Yes, the following patch from MicroPython which fixes this would need to be applied here: micropython/micropython@e766a4a

And to fix the linker error running out of iRAM1, a similar patch to this will be needed: micropython/micropython@964bf93

@schinckel schinckel linked a pull request May 25, 2018 that will close this issue
@jedie
Copy link

jedie commented Dec 30, 2019

confirm #23 fixed this, issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants