Error compiling esp mesh 0.61 with some test codes

TimLee
Posts: 8
Joined: Tue May 29, 2018 7:21 pm

Error compiling esp mesh 0.61 with some test codes

Postby TimLee » Sun May 05, 2019 7:14 pm

A fatal error occurred: Segment loaded at 0x401fea24 lands in same 64KB flash mapping as segment loaded at 0x401fea08. Can't generate binary. Suggest changing linker script or ELF to merge sections.

This is part of my compiling application.map
.rtc.text.24.literal
0x00000000401fea08 0x1c
.rtc.text.24.literal
0x00000000401fea08 0x1c build//home/user/esp32/esp-idf/components/esp32/sleep_modes.o

.rtc.text.24 0x00000000401fea24 0x47
.rtc.text.24 0x00000000401fea24 0x47 build//home/user/esp32/esp-idf/components/esp32/sleep_modes.o
0x00000000401fea24 esp_default_wake_deep_sleep
0x00000000401fea24 esp_wake_deep_sleep


This is part of the obj dump from the application.elf

build/application.elf: file format elf32-xtensa-le

Sections:
Idx Name Size VMA LMA File off Algn
0 .rtc.text 00000000 400c0000 400c0000 00221a98 2**0
CONTENTS
1 .rtc.bss 00000001 50000000 50000000 00221a98 2**0
ALLOC
2 .rtc_noinit 00000003 50000001 50000001 00221a98 2**0
ALLOC
3 .iram0.vectors 00000400 40080000 40080000 000d61d0 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
4 .iram0.text 0001c974 40080400 40080400 000d65d0 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
5 .dram0.data 00003ca0 3ffc0000 3ffc0000 000d2530 2**4
CONTENTS, ALLOC, LOAD, DATA
6 .dram0.bss 00016198 3ffc3ca0 3ffc3ca0 000d61d0 2**3
ALLOC
7 .flash.rodata 000d1fec 3f400020 3f400020 00000140 2**4
CONTENTS, ALLOC, LOAD, DATA
8 .rtc.data.12 00000400 3f4d200c 3f4d200c 000d212c 2**0
CONTENTS, ALLOC, LOAD, DATA
9 .flash.text 0012e9ef 400d0018 400d0018 000f2f44 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
10 .rtc.text.24.literal 0000001c 401fea08 401fea08 00221934 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
11 .rtc.text.24 00000047 401fea24 401fea24 00221950 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
12 .rodata_desc 00000100 401fea6c 401fea6c 00221998 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
13 .ext_ram.bss 00004830 3f800000 3f800000 000d252c 2**2
ALLOC
14 .comment 00000168 00000000 00000000 00221a98 2**0
CONTENTS, READONLY
15 .xtensa.info 00000038 00000000 00000000 00221c00 2**0
CONTENTS, READONLY


Any hints on what might be the cause of the problem? I did seek all of the ld files, didn't find any mem alloc have rtc.text.24 definition, where does this comes from?

Who is online

Users browsing this forum: Bing [Bot], MicroController and 141 guests