pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
198 stars 167 forks source link

Error building image for esp32 #83

Closed jingai closed 6 years ago

jingai commented 6 years ago

Everything compiles fine until it goes to build the image:

% cd esp32
% make BOARD=LOPY LORA_BAND=USE_BAND_915 TARGET=app
[snipped]
Building partitions from lib/partitions.csv...
IMAGE build/LOPY_915/release/lopy_915.bin
esptool.py v2.0.1

A fatal error occurred: Segment loaded at 0x401b274c lands in same 64KB flash mapping as segment loaded at 0x401b2734. Can't generate binary. Suggest changing linker script or ELF to merge sections.
application.mk:371: recipe for target 'build/LOPY_915/release/lopy_915.bin' failed
robert-hh commented 6 years ago

This is recently a common problem with the extensa gcc compiler. You have to use an older version of the compiler. See this discussion with links at the end: https://forum.pycom.io/topic/1429/solved-having-issues-build-firmware-from-soure

virtualguy commented 6 years ago

Using the correct compiler for a given firmware seems to be a recurring issue. Would adding a check / warning to the makefile be worthwhile? There are already similar checks for the esp-idf and would ensure consistent results for users which is especially important as the compiler is changing a lot.

On 11/10/2017 6:28 PM, "robert-hh" notifications@github.com wrote:

This is recently a common problem with the extensa gcc compiler. You have to use an older version of the compiler. See this discussion with links at the end: https://forum.pycom.io/topic/1429/solved-having-issues- build-firmware-from-soure

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pycom/pycom-micropython-sigfox/issues/83#issuecomment-335687264, or mute the thread https://github.com/notifications/unsubscribe-auth/ABU_KTvKWz4cmqHTjeRvvuTdGUYnhUhkks5srFH0gaJpZM4P00ka .

jingai commented 6 years ago

@robert-hh thanks -- using specifically 1.22.0-61-gab8375a finally got it to build.

robert-hh commented 6 years ago

Which version of the C-Compiler are you actually using?

jingai commented 6 years ago

I managed to get it to build with 1.22.0-61-gab8375a. Thanks again.

Xykon commented 6 years ago

I have pushed a new version of README.md to reflect the correct compiler version... closing this issue.