while compiling , A fatal error: invalid segment count 25 (max 16)

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
kenjican
Posts: 13
Joined: Sat Sep 15, 2018 1:32 am

while compiling , A fatal error: invalid segment count 25 (max 16)

Post by kenjican » Mon Mar 18, 2019 8:28 am

Detailed error message as below:
GEN build/esp32.common.ld
LINK build/application.elf
text data bss dec hex filename
843420 214080 27868 1085368 108fb8 build/application.elf
Create build/application.bin
esptool.py v2.6

A fatal error occurred: Invalid segment count 25 (max 16). Usually this indicates a linker script problem.
Makefile:844: recipe for target 'build/application.bin' failed
make: *** [build/application.bin] Error 2

my environment:
OS: Ubuntu 18.04 64-bits
xtensa-esp32-elf-gcc version : gcc version 5.2.0 (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a)
esp-idf commit hash :commit 5c88c5996dbde6208e3bec05abc21ff6cd822d26 ,the same as micropython's makefile
micropython : master branch

What should I do to make compiling move on? Thanks~~

Post Reply