Hi,
I developed with the latest esp-idf, when I compile my project, I got the following error message: Segment loaded at 0x3f407a98 lands in same 64KB flash mapping as segment loaded at 0x3f400010. Can't generate binary.
What does this mean? Is there any suggestion to solve it? Thanks.
Problem with latest esp-idf
-
- Posts: 9759
- Joined: Thu Nov 26, 2015 4:08 am
Re: Problem with latest esp-idf
Does a 'make clean' solve anything maybe?
Re: Problem with latest esp-idf
Please run
and post the output here.
Thanks.
Code: Select all
xtensa-esp32-elf-objdump -h build/yourprogramname.elf
Thanks.
-
- Posts: 13
- Joined: Mon Apr 25, 2016 2:03 am
Re: Problem with latest esp-idf
@ESP_Sprite "make clean" is useless
@ESP_igrr the dumped info is as below:
app-template.elf: file format elf32-xtensa-le
Sections:
Idx Name Size VMA LMA File off Algn
0 .rtc.text 00000000 400c0000 400c0000 0002e5a0 2**0
CONTENTS
1 .rtc.data 00000008 50000000 50000000 0002e598 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .iram0.vectors 00000400 40080000 40080000 00005b30 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
3 .iram0.text 00011702 40080400 40080400 00005f30 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
4 .dram0.bss 00002d10 3ffb0000 3ffb0000 00003ff8 2**3
ALLOC
5 .dram0.data 00001b30 3ffb2d10 3ffb2d10 00004000 2**4
CONTENTS, ALLOC, LOAD, DATA
6 .flash.rodata 00003dd0 3f400010 3f400010 00000100 2**4
CONTENTS, ALLOC, LOAD, DATA
7 .irom.text 00000128 3f403de0 3f403de0 00003ed0 2**3
CONTENTS, ALLOC, LOAD, DATA
8 .flash.text 00016f63 400d0018 400d0018 00017634 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
9 .debug_frame 0000d1c0 00000000 00000000 0002e5a0 2**2
CONTENTS, READONLY, DEBUGGING
10 .debug_info 000d7782 00000000 00000000 0003b760 2**0
CONTENTS, READONLY, DEBUGGING
11 .debug_abbrev 0001d3bd 00000000 00000000 00112ee2 2**0
CONTENTS, READONLY, DEBUGGING
12 .debug_loc 0004ead0 00000000 00000000 0013029f 2**0
CONTENTS, READONLY, DEBUGGING
13 .debug_aranges 00004e18 00000000 00000000 0017ed70 2**3
CONTENTS, READONLY, DEBUGGING
14 .debug_ranges 00005c80 00000000 00000000 00183b88 2**3
CONTENTS, READONLY, DEBUGGING
15 .debug_line 0005f144 00000000 00000000 00189808 2**0
CONTENTS, READONLY, DEBUGGING
16 .debug_str 0001d6f8 00000000 00000000 001e894c 2**0
CONTENTS, READONLY, DEBUGGING
17 .comment 0000009c 00000000 00000000 00206044 2**0
CONTENTS, READONLY
18 .xtensa.info 00000038 00000000 00000000 002060e0 2**0
CONTENTS, READONLY
Thanks.
@ESP_igrr the dumped info is as below:
app-template.elf: file format elf32-xtensa-le
Sections:
Idx Name Size VMA LMA File off Algn
0 .rtc.text 00000000 400c0000 400c0000 0002e5a0 2**0
CONTENTS
1 .rtc.data 00000008 50000000 50000000 0002e598 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .iram0.vectors 00000400 40080000 40080000 00005b30 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
3 .iram0.text 00011702 40080400 40080400 00005f30 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
4 .dram0.bss 00002d10 3ffb0000 3ffb0000 00003ff8 2**3
ALLOC
5 .dram0.data 00001b30 3ffb2d10 3ffb2d10 00004000 2**4
CONTENTS, ALLOC, LOAD, DATA
6 .flash.rodata 00003dd0 3f400010 3f400010 00000100 2**4
CONTENTS, ALLOC, LOAD, DATA
7 .irom.text 00000128 3f403de0 3f403de0 00003ed0 2**3
CONTENTS, ALLOC, LOAD, DATA
8 .flash.text 00016f63 400d0018 400d0018 00017634 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
9 .debug_frame 0000d1c0 00000000 00000000 0002e5a0 2**2
CONTENTS, READONLY, DEBUGGING
10 .debug_info 000d7782 00000000 00000000 0003b760 2**0
CONTENTS, READONLY, DEBUGGING
11 .debug_abbrev 0001d3bd 00000000 00000000 00112ee2 2**0
CONTENTS, READONLY, DEBUGGING
12 .debug_loc 0004ead0 00000000 00000000 0013029f 2**0
CONTENTS, READONLY, DEBUGGING
13 .debug_aranges 00004e18 00000000 00000000 0017ed70 2**3
CONTENTS, READONLY, DEBUGGING
14 .debug_ranges 00005c80 00000000 00000000 00183b88 2**3
CONTENTS, READONLY, DEBUGGING
15 .debug_line 0005f144 00000000 00000000 00189808 2**0
CONTENTS, READONLY, DEBUGGING
16 .debug_str 0001d6f8 00000000 00000000 001e894c 2**0
CONTENTS, READONLY, DEBUGGING
17 .comment 0000009c 00000000 00000000 00206044 2**0
CONTENTS, READONLY
18 .xtensa.info 00000038 00000000 00000000 002060e0 2**0
CONTENTS, READONLY
Thanks.
Re: Problem with latest esp-idf
You have an '.irom.text' section in your program but it is not placed anywhere in the linker script.
You need to remove function attributes that assign functions to this section. My guess is that you are moving code from the 8266 and use something like ICACHE_FLASH_ATTR.
You need to remove function attributes that assign functions to this section. My guess is that you are moving code from the 8266 and use something like ICACHE_FLASH_ATTR.
-
- Posts: 13
- Joined: Mon Apr 25, 2016 2:03 am
Re: Problem with latest esp-idf
@ESP_igrr Yes, you're right. It works. Thanks.
-
- Posts: 2
- Joined: Fri Oct 01, 2021 1:05 pm
Re: Problem with latest esp-idf
I'm new to vscode and esp-idf.
How do i run the line mentioned above? (xtensa-esp32-elf-objdump -h build/yourprogramname.elf)
I'm having the same issue.
How do i run the line mentioned above? (xtensa-esp32-elf-objdump -h build/yourprogramname.elf)
I'm having the same issue.
-
- Posts: 2
- Joined: Fri Oct 01, 2021 1:05 pm
Re: Problem with latest esp-idf
this is the output of the code. dont see any .irom.txt
build/ESPDrone.elf: file format elf32-xtensa-le
Sections:
Idx Name Size VMA LMA File off Algn
0 .rtc.text 00000000 400c0000 400c0000 000cb010 2**0
CONTENTS
1 .rtc.dummy 00000000 3ff80000 3ff80000 000cb010 2**0
CONTENTS
2 .rtc.force_fast 00000000 3ff80000 3ff80000 000cb010 2**0
CONTENTS
3 .rtc.data 00000010 50000000 50000000 000cb000 2**3
CONTENTS, ALLOC, LOAD, DATA
4 .rtc_noinit 00000000 50000010 50000010 000cb010 2**0
CONTENTS
5 .rtc.force_slow 00000000 50000010 50000010 000cb010 2**0
CONTENTS
6 .iram0.vectors 00000403 40080000 40080000 00025000 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
7 .iram0.text 00019b3b 40080404 40080404 00025404 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
8 .dram0.data 00004a88 3ffb0000 3ffb0000 00020000 2**4
CONTENTS, ALLOC, LOAD, DATA
9 .noinit 00000000 3ffb4a88 3ffb4a88 000cb010 2**0
CONTENTS
10 .ext_ram.bss 00000000 3f800000 3f800000 000cb010 2**0
CONTENTS
11 .dram0.bss 00017450 3ffb4a88 3ffb4a88 00024a88 2**3
ALLOC
12 .flash.appdesc 000019b4 3f400020 3f400020 00001020 2**4
CONTENTS, ALLOC, LOAD, READONLY, DATA
13 .flash.rodata 0001cce8 3f4019e0 3f4019e0 000029e0 2**4
CONTENTS, ALLOC, LOAD, DATA
14 .flash.rodata_noload 00001b94 3f41e6c8 3f41e6c8 0001f6c8 2**0
ALLOC, READONLY
15 .flash.text 0008b547 400d0020 400d0020 0003f020 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
16 .iram0.text_end 00000001 40099f3f 40099f3f 0003ef3f 2**0
ALLOC
17 .iram0.data 00000000 40099f40 40099f40 000cb010 2**0
CONTENTS
18 .iram0.bss 00000000 40099f40 40099f40 000cb010 2**0
CONTENTS
19 .dram0.heap_start 00000000 3ffcbed8 3ffcbed8 000cb010 2**0
CONTENTS
20 .xtensa.info 00000038 00000000 00000000 000cb010 2**0
CONTENTS, READONLY
21 .comment 00000113 00000000 00000000 000cb048 2**0
CONTENTS, READONLY
22 .xt.lit._ZN13memory_stream7put_bufEPKvi 00000008 00000000 00000000 000cb15b 2**0
CONTENTS, READONLY
23 .xt.lit._ZN13memory_streamD5Ev 00000000 00000000 00000000 000cb163 2**0
CONTENTS, READONLY
24 .xt.prop._ZN13memory_stream7put_bufEPKvi 00000048 00000000 00000000 000cb163 2**0
CONTENTS, READONLY
25 .xt.prop._ZN13memory_streamD5Ev 00000000 00000000 00000000 000cb1ab 2**0
CONTENTS, READONLY
26 .xt.prop._ZN13memory_streamD2Ev 00000024 00000000 00000000 000cb1ab 2**0
CONTENTS, READONLY
27 .xt.prop._ZNK13memory_stream8get_sizeEv 00000024 00000000 00000000 000cb1cf 2**0
CONTENTS, READONLY
28 .xt.prop._ZN13memory_streamD0Ev 00000024 00000000 00000000 000cb1f3 2**0
CONTENTS, READONLY
29 .xt.prop._ZTV13memory_stream 0000000c 00000000 00000000 000cb217 2**0
CONTENTS, READONLY
30 .xt.lit._ZN3nvs12NVSPartitionD5Ev 00000000 00000000 00000000 000cb223 2**0
CONTENTS, READONLY
31 .xt.prop._ZN3nvs12NVSPartitionD5Ev 00000000 00000000 00000000 000cb223 2**0
CONTENTS, READONLY
32 .xt.prop._ZN3nvs12NVSPartitionD0Ev 00000024 00000000 00000000 000cb223 2**0
CONTENTS, READONLY
33 .xt.prop._ZN3nvs12NVSPartitionD2Ev 00000024 00000000 00000000 000cb247 2**0
CONTENTS, READONLY
34 .xt.prop._ZTVN3nvs15NVSHandleSimpleE 0000000c 00000000 00000000
000cb26b 2**0
CONTENTS, READONLY
35 .xt.prop._ZTVN3nvs12NVSPartitionE 0000000c 00000000 00000000 000cb277 2**0
CONTENTS, READONLY
36 .xt.lit._ZN3nvs19NVSPartitionManagerD5Ev 00000000 00000000 00000000 000cb283 2**0
CONTENTS, READONLY
37 .xt.prop._ZN3nvs19NVSPartitionManagerD5Ev 00000000 00000000 00000000 000cb283 2**0
CONTENTS, READONLY
38 .xt.prop._ZN3nvs19NVSPartitionManagerD2Ev 00000024 00000000 00000000 000cb283 2**0
CONTENTS, READONLY
39 .xt.prop._ZN3nvs19NVSPartitionManagerD0Ev 00000024 00000000 00000000 000cb2a7 2**0
CONTENTS, READONLY
40 .xt.prop._ZTVN3nvs19NVSPartitionManagerE 0000000c 00000000 00000000 000cb2cb 2**0
CONTENTS, READONLY
41 .xt.prop._ZTISt9exception 0000000c 00000000 00000000 000cb2d7
2**0
CONTENTS, READONLY
42 .xt.prop._ZTISt9bad_alloc 0000000c 00000000 00000000 000cb2e3
2**0
CONTENTS, READONLY
43 .xt.prop._ZTVN10__cxxabiv120__si_class_type_infoE 0000000c 00000000 00000000 000cb2ef 2**0
CONTENTS, READONLY
44 .xt.prop._ZTVN10__cxxabiv117__class_type_infoE 0000000c 00000000 00000000 000cb2fb 2**0
CONTENTS, READONLY
45 .debug_frame 0001e960 00000000 00000000 000cb308 2**2
CONTENTS, READONLY, DEBUGGING, OCTETS
46 .debug_info 004d18b7 00000000 00000000 000e9c68 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
47 .debug_abbrev 0006aa61 00000000 00000000 005bb51f 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
48 .debug_loc 0012011f 00000000 00000000 00625f80 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
49 .debug_aranges 0000c338 00000000 00000000 007460a0 2**3
CONTENTS, READONLY, DEBUGGING, OCTETS
50 .debug_ranges 00025be0 00000000 00000000 007523d8 2**3
CONTENTS, READONLY, DEBUGGING, OCTETS
51 .debug_line 0025b0ab 00000000 00000000 00777fb8 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
52 .debug_str 00063aa5 00000000 00000000 009d3063 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
build/ESPDrone.elf: file format elf32-xtensa-le
Sections:
Idx Name Size VMA LMA File off Algn
0 .rtc.text 00000000 400c0000 400c0000 000cb010 2**0
CONTENTS
1 .rtc.dummy 00000000 3ff80000 3ff80000 000cb010 2**0
CONTENTS
2 .rtc.force_fast 00000000 3ff80000 3ff80000 000cb010 2**0
CONTENTS
3 .rtc.data 00000010 50000000 50000000 000cb000 2**3
CONTENTS, ALLOC, LOAD, DATA
4 .rtc_noinit 00000000 50000010 50000010 000cb010 2**0
CONTENTS
5 .rtc.force_slow 00000000 50000010 50000010 000cb010 2**0
CONTENTS
6 .iram0.vectors 00000403 40080000 40080000 00025000 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
7 .iram0.text 00019b3b 40080404 40080404 00025404 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
8 .dram0.data 00004a88 3ffb0000 3ffb0000 00020000 2**4
CONTENTS, ALLOC, LOAD, DATA
9 .noinit 00000000 3ffb4a88 3ffb4a88 000cb010 2**0
CONTENTS
10 .ext_ram.bss 00000000 3f800000 3f800000 000cb010 2**0
CONTENTS
11 .dram0.bss 00017450 3ffb4a88 3ffb4a88 00024a88 2**3
ALLOC
12 .flash.appdesc 000019b4 3f400020 3f400020 00001020 2**4
CONTENTS, ALLOC, LOAD, READONLY, DATA
13 .flash.rodata 0001cce8 3f4019e0 3f4019e0 000029e0 2**4
CONTENTS, ALLOC, LOAD, DATA
14 .flash.rodata_noload 00001b94 3f41e6c8 3f41e6c8 0001f6c8 2**0
ALLOC, READONLY
15 .flash.text 0008b547 400d0020 400d0020 0003f020 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
16 .iram0.text_end 00000001 40099f3f 40099f3f 0003ef3f 2**0
ALLOC
17 .iram0.data 00000000 40099f40 40099f40 000cb010 2**0
CONTENTS
18 .iram0.bss 00000000 40099f40 40099f40 000cb010 2**0
CONTENTS
19 .dram0.heap_start 00000000 3ffcbed8 3ffcbed8 000cb010 2**0
CONTENTS
20 .xtensa.info 00000038 00000000 00000000 000cb010 2**0
CONTENTS, READONLY
21 .comment 00000113 00000000 00000000 000cb048 2**0
CONTENTS, READONLY
22 .xt.lit._ZN13memory_stream7put_bufEPKvi 00000008 00000000 00000000 000cb15b 2**0
CONTENTS, READONLY
23 .xt.lit._ZN13memory_streamD5Ev 00000000 00000000 00000000 000cb163 2**0
CONTENTS, READONLY
24 .xt.prop._ZN13memory_stream7put_bufEPKvi 00000048 00000000 00000000 000cb163 2**0
CONTENTS, READONLY
25 .xt.prop._ZN13memory_streamD5Ev 00000000 00000000 00000000 000cb1ab 2**0
CONTENTS, READONLY
26 .xt.prop._ZN13memory_streamD2Ev 00000024 00000000 00000000 000cb1ab 2**0
CONTENTS, READONLY
27 .xt.prop._ZNK13memory_stream8get_sizeEv 00000024 00000000 00000000 000cb1cf 2**0
CONTENTS, READONLY
28 .xt.prop._ZN13memory_streamD0Ev 00000024 00000000 00000000 000cb1f3 2**0
CONTENTS, READONLY
29 .xt.prop._ZTV13memory_stream 0000000c 00000000 00000000 000cb217 2**0
CONTENTS, READONLY
30 .xt.lit._ZN3nvs12NVSPartitionD5Ev 00000000 00000000 00000000 000cb223 2**0
CONTENTS, READONLY
31 .xt.prop._ZN3nvs12NVSPartitionD5Ev 00000000 00000000 00000000 000cb223 2**0
CONTENTS, READONLY
32 .xt.prop._ZN3nvs12NVSPartitionD0Ev 00000024 00000000 00000000 000cb223 2**0
CONTENTS, READONLY
33 .xt.prop._ZN3nvs12NVSPartitionD2Ev 00000024 00000000 00000000 000cb247 2**0
CONTENTS, READONLY
34 .xt.prop._ZTVN3nvs15NVSHandleSimpleE 0000000c 00000000 00000000
000cb26b 2**0
CONTENTS, READONLY
35 .xt.prop._ZTVN3nvs12NVSPartitionE 0000000c 00000000 00000000 000cb277 2**0
CONTENTS, READONLY
36 .xt.lit._ZN3nvs19NVSPartitionManagerD5Ev 00000000 00000000 00000000 000cb283 2**0
CONTENTS, READONLY
37 .xt.prop._ZN3nvs19NVSPartitionManagerD5Ev 00000000 00000000 00000000 000cb283 2**0
CONTENTS, READONLY
38 .xt.prop._ZN3nvs19NVSPartitionManagerD2Ev 00000024 00000000 00000000 000cb283 2**0
CONTENTS, READONLY
39 .xt.prop._ZN3nvs19NVSPartitionManagerD0Ev 00000024 00000000 00000000 000cb2a7 2**0
CONTENTS, READONLY
40 .xt.prop._ZTVN3nvs19NVSPartitionManagerE 0000000c 00000000 00000000 000cb2cb 2**0
CONTENTS, READONLY
41 .xt.prop._ZTISt9exception 0000000c 00000000 00000000 000cb2d7
2**0
CONTENTS, READONLY
42 .xt.prop._ZTISt9bad_alloc 0000000c 00000000 00000000 000cb2e3
2**0
CONTENTS, READONLY
43 .xt.prop._ZTVN10__cxxabiv120__si_class_type_infoE 0000000c 00000000 00000000 000cb2ef 2**0
CONTENTS, READONLY
44 .xt.prop._ZTVN10__cxxabiv117__class_type_infoE 0000000c 00000000 00000000 000cb2fb 2**0
CONTENTS, READONLY
45 .debug_frame 0001e960 00000000 00000000 000cb308 2**2
CONTENTS, READONLY, DEBUGGING, OCTETS
46 .debug_info 004d18b7 00000000 00000000 000e9c68 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
47 .debug_abbrev 0006aa61 00000000 00000000 005bb51f 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
48 .debug_loc 0012011f 00000000 00000000 00625f80 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
49 .debug_aranges 0000c338 00000000 00000000 007460a0 2**3
CONTENTS, READONLY, DEBUGGING, OCTETS
50 .debug_ranges 00025be0 00000000 00000000 007523d8 2**3
CONTENTS, READONLY, DEBUGGING, OCTETS
51 .debug_line 0025b0ab 00000000 00000000 00777fb8 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
52 .debug_str 00063aa5 00000000 00000000 009d3063 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
Who is online
Users browsing this forum: Google Adsense [Bot] and 160 guests