Compile error after upgrading to 3.1.4

jrounds
Posts: 15
Joined: Thu Dec 13, 2018 6:11 pm

Compile error after upgrading to 3.1.4

Postby jrounds » Thu Apr 25, 2019 1:24 pm

Hello I have upgraded to the lasted version when I go to compile my code I now get this error
A fatal error occurred: Segment loaded at 0x40156208 lands in same 64KB flash mapping as segment loaded at 0x40156204. Can't generate binary. Suggest changing linker script or ELF to merge sections.

Any suggestions?

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Compile error after upgrading to 3.1.4

Postby ESP_Angus » Fri Apr 26, 2019 12:41 am

Hi jrounds,

What ESP-IDF version were you using before you updated to v3.1.4?

Can you please run the following command and post the full output: "xtensa-esp32-elf-objdump -h build/PROJECT_NAME.elf"

Thanks,

Angus

jrounds
Posts: 15
Joined: Thu Dec 13, 2018 6:11 pm

Re: Compile error after upgrading to 3.1.4

Postby jrounds » Tue Apr 30, 2019 7:05 pm

I upgraded from 3.1.3 see below for output of the command
build/G2.elf: file format elf32-xtensa-le

Sections:
Idx Name Size VMA LMA File off Algn
0 .rtc.text 00000000 400c0000 400c0000 000bddc4 2**0
CONTENTS
1 .rtc.dummy 00000000 00000000 00000000 000bddc4 2**0
CONTENTS
2 .rtc.force_fast 00000000 00000000 00000000 000bddc4 2**0
CONTENTS
3 .rtc_noinit 00000000 00000000 00000000 000bddc4 2**0
CONTENTS
4 .rtc.force_slow 00000000 50000000 50000000 000bddc4 2**0
CONTENTS
5 .iram0.vectors 00000400 40080000 40080000 00024488 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
6 .iram0.text 000130f9 40080400 40080400 00024888 2**2
CONTENTS, ALLOC, LOAD, CODE
7 .dram0.data 00003538 3ffb0000 3ffb0000 00020f50 2**4
CONTENTS, ALLOC, LOAD, DATA
8 .noinit 00000000 3ffb3538 3ffb3538 000bddc4 2**0
CONTENTS
9 .dram0.bss 00006108 3ffb3538 3ffb3538 00024488 2**3
ALLOC
10 .flash.rodata 00020e30 3f400020 3f400020 00000120 2**4
CONTENTS, ALLOC, LOAD, DATA
11 .flash.text 000861ea 400d0018 400d0018 00037984 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
12 .literal.udp_netif_ipv4_addr_changed 00000004 40156204 40156204 000bdb70 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
13 .text.udp_netif_ipv4_addr_changed 00000033 40156208 40156208 000bdb74 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
14 .literal.etharp_ip_input 0000000c 4015623c 4015623c 000bdba8 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
15 .literal.etharp_arp_input 0000002c 40156248 40156248 000bdbb4 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
16 .text.etharp_ip_input 0000004c 40156274 40156274 000bdbe0 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
17 .text.etharp_arp_input 00000198 401562c0 401562c0 000bdc2c 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
18 .debug_frame 00019910 00000000 00000000 000bddc4 2**2
CONTENTS, READONLY, DEBUGGING
19 .debug_info 001b78a5 00000000 00000000 000d76d4 2**0
CONTENTS, READONLY, DEBUGGING
20 .debug_abbrev 0003414e 00000000 00000000 0028ef79 2**0
CONTENTS, READONLY, DEBUGGING
21 .debug_aranges 0000a030 00000000 00000000 002c30c8 2**3
CONTENTS, READONLY, DEBUGGING
22 .debug_ranges 0000a008 00000000 00000000 002cd0f8 2**3
CONTENTS, READONLY, DEBUGGING
23 .debug_line 000c1b84 00000000 00000000 002d7100 2**0
CONTENTS, READONLY, DEBUGGING
24 .debug_str 0004a599 00000000 00000000 00398c84 2**0
CONTENTS, READONLY, DEBUGGING
25 .comment 00000168 00000000 00000000 003e321d 2**0
CONTENTS, READONLY
26 .xtensa.info 00000038 00000000 00000000 003e3385 2**0
CONTENTS, READONLY
27 .xt.lit._ZN3nvs4ItemC5EhNS_8ItemTypeEhPKch 00000000 00000000 00000000 003e33bd 2**0
CONTENTS, READONLY
28 .xt.prop._ZN3nvs4ItemC5EhNS_8ItemTypeEhPKch 00000000 00000000 00000000 003e33bd 2**0
CONTENTS, READONLY
29 .xt.prop._ZN3nvs4ItemC2EhNS_8ItemTypeEhPKch 0000006c 00000000 00000000 003e33bd 2**0
CONTENTS, READONLY
30 .xt.prop._ZTISt9exception 0000000c 00000000 00000000 003e3429 2**0
CONTENTS, READONLY
31 .xt.prop._ZTISt9bad_alloc 0000000c 00000000 00000000 003e3435 2**0
CONTENTS, READONLY
32 .xt.prop._ZTVN10__cxxabiv120__si_class_type_infoE 0000000c 00000000 00000000 003e3441 2**0
CONTENTS, READONLY
33 .xt.prop._ZTVSt9bad_alloc 0000000c 00000000 00000000 003e344d 2**0
CONTENTS, READONLY
34 .xt.prop._ZTVN10__cxxabiv117__class_type_infoE 0000000c 00000000 00000000 003e3459 2**0
CONTENTS, READONLY
35 .debug_loc 000ba5e3 00000000 00000000 003e3465 2**0
CONTENTS, READONLY, DEBUGGING

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Compile error after upgrading to 3.1.4

Postby ESP_Angus » Mon Jun 24, 2019 11:08 am

Hi,

Sorry noone got back to you before now. It seems like there is some problem with the linker script, not all output sections of the ELF are linking properly.

If you do a "make clean" or delete the build directory and then rebuild, does the problem go away?

If that doesn't work, is there any chance you could send us your project privately so we can reproduce?

Thanks,

Angus

Who is online

Users browsing this forum: No registered users and 172 guests