I’m having a problem using a program that is bigger than 150k in a STM32F103ZE (that have 500k).
When I compile and send a program it RUN PERFECT (BOOT 0 in UPLOAD MODE). When I put BOOT 0 in RUN MODE it STOP WORKING.
If I reduce my program program to less than 150k it works in both modes.
Can some one help me?
THIS WORK:
O sketch usa 148828 bytes (28%) de espaço de armazenamento para programas. O máximo são 524288 bytes.
Variáveis globais usam 14016 bytes de memória dinâmica.
THIS NOT WORK
O sketch usa 150150 bytes (29%) de espaço de armazenamento para programas. O máximo são 524288 bytes.
Variáveis globais usam 14016 bytes de memória dinâmica.
But if I put in RUN MODE (BOOT 0) and RESET it stop WORK.
you could try to run objdump on the elf file using various parameters e.g. -h or -t etc and take a look at where the segments are mapped, e.g. is some global variables mapped into flash instead?
global / static variables should normally live in .bss segment and should be mapped to regions of sram. if the variables are mapped say in .text which is program memory and that is flash, any attempt to write to the variable would crash the program
(btw, i’m suspecting that jumper or pin may not be boot0 after all, if you set boot0 each time you reboot the board would seem to do ‘nothing’, it is waiting for a uart to connect for program upload.)
Yes.
CODE UPLOADING TO 0x08000100
stm32flash Arduino_STM32_0.9
http://github.com/rogerclarkmelbourne/arduino_stm32
Using Parser : Raw BINARY
Interface serial_posix: 230400 8E1
Version : 0x22
Option 1 : 0x00
Option 2 : 0x00
Device ID : 0x0414 (High-density)
- RAM : 64KiB (512b reserved by bootloader)
- Flash : 512KiB (sector size: 2x2048)
- Option RAM : 16b
- System RAM : 2KiB
Write to memory
Erasing memory
Wrote address 0x08000100 (0.17%)
Wrote address 0x08000200 (0.35%)
Wrote address 0x08000300 (0.52%) .....
[ag123 – Thu Sep 13, 2018 7:03 pm] –
well it won’t be possible to tell from this, but there are tools like arm-none-eabi-objdump (this should be there in your arm-gcc-none-eabi compiler directories).you could try to run objdump on the elf file using various parameters e.g. -h or -t etc and take a look at where the segments are mapped, e.g. is some global variables mapped into flash instead?
global / static variables should normally live in .bss segment and should be mapped to regions of sram. if the variables are mapped say in .text which is program memory and that is flash, any attempt to write to the variable would crash the program
(btw, i’m suspecting that jumper or pin may not be boot0 after all, if you set boot0 each time you reboot the board would seem to do ‘nothing’, it is waiting for a uart to connect for program upload.)
When I reboot and the Boot0 is “enabled” it just wait for UART, that is OK. But after I UPLOAD the code (without reset our change the BOOT0) it automatic run the CODE (like a software reset after the upload).
The error just happen when I put the BOOT 0 in RUN MODE and reset after that, and the program is bigger than 150k.
So the anomaly would be that the <150k sketch runs @0x08000100 in “run mode”…
[ag123 – Thu Sep 13, 2018 7:03 pm] –
well it won’t be possible to tell from this, but there are tools like arm-none-eabi-objdump (this should be there in your arm-gcc-none-eabi compiler directories).you could try to run objdump on the elf file using various parameters e.g. -h or -t etc and take a look at where the segments are mapped, e.g. is some global variables mapped into flash instead?
global / static variables should normally live in .bss segment and should be mapped to regions of sram. if the variables are mapped say in .text which is program memory and that is flash, any attempt to write to the variable would crash the program
(btw, i’m suspecting that jumper or pin may not be boot0 after all, if you set boot0 each time you reboot the board would seem to do ‘nothing’, it is waiting for a uart to connect for program upload.)
THIS CODE DOEN’T WORK =>
O sketch usa 149884 bytes (28%) de espaço de armazenamento para programas. O máximo são 524288 bytes.
Variáveis globais usam 14000 bytes de memória dinâmica.
SiiRoom_STM32.ino.elf: file format ELF32-arm-little
Sections:
Idx Name Size Address Type
0 00000000 0000000000000000
1 .text 0001eb2c 0000000008000000 TEXT DATA
2 .text.align 00000004 000000000801eb2c TEXT BSS
3 .ARM.exidx 000001d0 000000000801eb30
4 .data 00001170 0000000020000000 DATA
5 .rodata 00004b0c 000000000801fe70 DATA
6 .bss 00002540 0000000020001170 BSS
7 .debug_aranges 000020c8 0000000000000000
8 .debug_info 00060916 0000000000000000
9 .debug_abbrev 0000966e 0000000000000000
10 .debug_line 000166aa 0000000000000000
11 .debug_frame 00007b94 0000000000000000
12 .debug_str 000127e8 0000000000000000
13 .debug_loc 00118c6d 0000000000000000
14 .ARM.attributes 00000029 0000000000000000
15 .debug_ranges 00004788 0000000000000000
16 .comment 00000070 0000000000000000
17 .shstrtab 000000ca 0000000000000000
18 .symtab 0000d1e0 0000000000000000
19 .strtab 000067ab 0000000000000000
SiiRoom_STM32.ino.elf: file format ELF32-arm-little
SYMBOL TABLE:
00000000 *UND* 00000000
08000000 l d .text 00000000 .text
0801eb2c l d .text.align 00000000 .text.align
0801eb30 l d .ARM.exidx 00000000 .ARM.exidx
20000000 l d .data 00000000 .data
0801fe70 l d .rodata 00000000 .rodata
20001170 l d .bss 00000000 .bss
00000000 l d .debug_aranges 00000000 .debug_aranges
00000000 l d .debug_info 00000000 .debug_info
00000000 l d .debug_abbrev 00000000 .debug_abbrev
00000000 l d .debug_line 00000000 .debug_line
00000000 l d .debug_frame 00000000 .debug_frame
00000000 l d .debug_str 00000000 .debug_str
00000000 l d .debug_loc 00000000 .debug_loc
00000000 l d .ARM.attributes 00000000 .ARM.attributes
00000000 l d .debug_ranges 00000000 .debug_ranges
00000000 l d .comment 00000000 .comment
00000000 l df *ABS* 00000000 crtstuff.c
0801eaf0 l .text 00000000 __EH_FRAME_BEGIN__
20000008 .data 00000000 $d
08000130 .text 00000000 $t
08000130 l F .text 00000000 __do_global_dtors_aux
08000148 .text 00000000 $d
20001170 .bss 00000000 completed.7857
0801eb28 .text 00000000 $d
0801eb28 l .text 00000000 __do_global_dtors_aux_fini_array_entry
08000154 .text 00000000 $t
08000154 l F .text 00000000 frame_dummy
08000170 .text 00000000 $d
20001174 .bss 00000000 object.7862
0801eb04 .text 00000000 $d
0801eb04 l .text 00000000 __frame_dummy_init_array_entry
20001170 .bss 00000000 $d
00000000 l df *ABS* 00000000 SiiRoom_STM32.ino.cpp
08000184 .text 00000000 $t
0800019c .text 00000000 $d
080001a4 .text 00000000 $t
080001a4 l F .text 0000001c __tcf_6
080001bc .text 00000000 $d
080001c0 .text 00000000 $t
080001c0 l F .text 0000001c __tcf_5
080001d8 .text 00000000 $d
080001dc .text 00000000 $t
080001dc l F .text 0000000c __tcf_4
080001e4 .text 00000000 $d
080001e8 .text 00000000 $t
080001e8 l F .text 0000000c __tcf_3
080001f0 .text 00000000 $d
080001f4 .text 00000000 $t
080001f4 l F .text 0000001c __tcf_1
0800020c .text 00000000 $d
08000210 .text 00000000 $t
08000210 l F .text 0000001c __tcf_0
08000228 .text 00000000 $d
0800022c .text 00000000 $t
0800024a .text 00000000 $t
0800025c .text 00000000 $t
08000280 .text 00000000 $d
08000288 .text 00000000 $t
080002ac .text 00000000 $d
080002b4 .text 00000000 $t
080002c0 .text 00000000 $t
080002d4 .text 00000000 $d
080002e0 .text 00000000 $t
080002fc .text 00000000 $t
080002fc l F .text 0000001c __tcf_2
08000314 .text 00000000 $d
08000318 .text 00000000 $t
08000324 .text 00000000 $t
0800046c .text 00000000 $d
08000478 .text 00000000 $t
0800050c .text 00000000 $d
08000524 .text 00000000 $t
080005e4 .text 00000000 $d
08000604 .text 00000000 $t
080006a0 .text 00000000 $d
080006c4 .text 00000000 $t
080006e8 .text 00000000 $d
080006ec .text 00000000 $t
080006f8 .text 00000000 $d
080006fc .text 00000000 $t
08000720 .text 00000000 $d
08000730 .text 00000000 $t
08000750 .text 00000000 $d
0800075c .text 00000000 $t
08000790 .text 00000000 $d
0800079c .text 00000000 $t
080007c4 .text 00000000 $d
080007c8 .text 00000000 $t
08000830 .text 00000000 $d
0800084c .text 00000000 $t
08000864 .text 00000000 $d
08000870 .text 00000000 $t
080008e0 .text 00000000 $d
080008e8 .text 00000000 $t
08000960 .text 00000000 $d
08000978 .text 00000000 $t
08000980 .text 00000000 $t
080009cc .text 00000000 $d
080009dc .text 00000000 $t
08000a00 .text 00000000 $d
08000a04 .text 00000000 $t
08000ad0 .text 00000000 $d
08000afc .text 00000000 $t
08000b24 .text 00000000 $d
08000b2c .text 00000000 $t
08000be0 .text 00000000 $d
08000bfc .text 00000000 $t
08000c28 .text 00000000 $d
08000c38 .text 00000000 $t
08000c40 .text 00000000 $t
08000cd8 .text 00000000 $d
08000cfc .text 00000000 $t
08000d9c .text 00000000 $d
08000dc0 .text 00000000 $t
08000e14 .text 00000000 $d
08000e18 .text 00000000 $t
08000e2c .text 00000000 $t
08000e58 .text 00000000 $d
08000e64 .text 00000000 $t
08000e74 .text 00000000 $t
08000f14 .text 00000000 $d
08000f30 .text 00000000 $t
08001000 .text 00000000 $d
08001014 .text 00000000 $t
08001034 .text 00000000 $t
08001084 .text 00000000 $d
08001090 .text 00000000 $t
080010c4 .text 00000000 $d
080010d0 .text 00000000 $t
080010d6 .text 00000000 $t
080010f4 .text 00000000 $t
08001100 .text 00000000 $t
08001168 .text 00000000 $d
0800117c .text 00000000 $t
080012c4 .text 00000000 $d
080012f0 .text 00000000 $t
08001318 .text 00000000 $d
08001324 .text 00000000 $t
08001360 .text 00000000 $t
080013c0 .text 00000000 $d
080013c4 .text 00000000 $t
080013d8 .text 00000000 $t
08001540 .text 00000000 $d
080015a8 .text 00000000 $t
0800163c .text 00000000 $d
0800164c .text 00000000 $t
08001668 .text 00000000 $d
08001670 .text 00000000 $t
08001700 .text 00000000 $d
08001720 .text 00000000 $t
08001740 .text 00000000 $t
08001774 .text 00000000 $d
0800177c .text 00000000 $t
080018d4 .text 00000000 $d
08001904 .text 00000000 $t
0800191e .text 00000000 $t
0800192c .text 00000000 $t
0800196c .text 00000000 $d
08001974 .text 00000000 $t
080019c8 .text 00000000 $d
080019d8 .text 00000000 $t
08001a0c .text 00000000 $t
08001a44 .text 00000000 $t
08001aa4 .text 00000000 $d
08001aa8 .text 00000000 $t
08001b28 .text 00000000 $d
08001b3c .text 00000000 $t
08001b68 .text 00000000 $t
08001bb0 .text 00000000 $d
08001bbc .text 00000000 $t
08001bcc .text 00000000 $t
08001d20 .text 00000000 $d
08001d4c .text 00000000 $t
08001dbc .text 00000000 $d
08001dcc .text 00000000 $t
08001e30 .text 00000000 $d
08001e3c .text 00000000 $t
08001e94 .text 00000000 $d
08001eb0 .text 00000000 $t
08001f1c .text 00000000 $d
08001f2c .text 00000000 $t
08001f80 .text 00000000 $d
08001f90 .text 00000000 $t
08001fe4 .text 00000000 $d
08001ff4 .text 00000000 $t
08002048 .text 00000000 $d
08002058 .text 00000000 $t
08002098 .text 00000000 $d
080020a4 .text 00000000 $t
08002180 .text 00000000 $d
080021a0 .text 00000000 $t
0800220c .text 00000000 $d
08002224 .text 00000000 $t
0800222c .text 00000000 $t
08002270 .text 00000000 $d
0800227c .text 00000000 $t
080022b8 .text 00000000 $d
080022c8 .text 00000000 $t
080022d0 .text 00000000 $d
080022d8 .text 00000000 $t
080022f4 .text 00000000 $d
08002300 .text 00000000 $t
0800238c .text 00000000 $d
0800239c .text 00000000 $t
0800240c .text 00000000 $d
0800241c .text 00000000 $t
0800245c .text 00000000 $d
08002470 .text 00000000 $t
080024a0 .text 00000000 $t
08002524 .text 00000000 $d
08002540 .text 00000000 $t
08002570 .text 00000000 $d
08002574 .text 00000000 $t
080025a4 .text 00000000 $d
080025a8 .text 00000000 $t
08002674 .text 00000000 $d
08002690 .text 00000000 $t
080026bc .text 00000000 $d
080026c0 .text 00000000 $t
080027dc .text 00000000 $d
080027f8 .text 00000000 $t
080028c0 .text 00000000 $d
080028e0 .text 00000000 $t
08002918 .text 00000000 $d
08002924 .text 00000000 $t
08002a08 .text 00000000 $d
08002a34 .text 00000000 $t
08002abc .text 00000000 $d
08002ac4 .text 00000000 $t
08002acc .text 00000000 $t
08002af0 .text 00000000 $d
08002b00 .text 00000000 $t
08002c3c .text 00000000 $d
08002c60 .text 00000000 $t
08002cec .text 00000000 $d
08002cf0 .text 00000000 $t
08002cf6 .text 00000000 $t
08002d10 .text 00000000 $t
08002dbc .text 00000000 $d
08002de8 .text 00000000 $t
08002f0c .text 00000000 $d
08002f38 .text 00000000 $t
08002f84 .text 00000000 $d
08002f98 .text 00000000 $t
08002fd8 .text 00000000 $d
08002fe8 .text 00000000 $t
08002ff0 .text 00000000 $d
08002ff4 .text 00000000 $t
08003010 .text 00000000 $d
08003014 .text 00000000 $t
08003030 .text 00000000 $d
08003034 .text 00000000 $t
08003060 .text 00000000 $d
0800306c .text 00000000 $t
080030a8 .text 00000000 $d
080030b8 .text 00000000 $t
08003150 .text 00000000 $d
08003164 .text 00000000 $t
080031fc .text 00000000 $d
08003210 .text 00000000 $t
08003258 .text 00000000 $d
0800326c .text 00000000 $t
080032e8 .text 00000000 $d
080032ec .text 00000000 $t
08003350 .text 00000000 $d
08003358 .text 00000000 $t
080033b4 .text 00000000 $d
080033c8 .text 00000000 $t
0800343c .text 00000000 $d
08003454 .text 00000000 $t
08003484 .text 00000000 $d
08003488 .text 00000000 $t
08003540 .text 00000000 $d
08003550 .text 00000000 $t
080035ec .text 00000000 $d
080035fc .text 00000000 $t
080036dc .text 00000000 $d
080036fc .text 00000000 $t
08003738 .text 00000000 $d
08003744 .text 00000000 $t
080037e4 .text 00000000 $d
08003804 .text 00000000 $t
080038d8 .text 00000000 $d
080038f4 .text 00000000 $t
080039bc .text 00000000 $d
080039dc .text 00000000 $t
08003b2c .text 00000000 $d
08003b40 .text 00000000 $t
08003b74 .text 00000000 $d
08003b80 .text 00000000 $t
08003c94 .text 00000000 $d
08003cb0 .text 00000000 $t
08003cfc .text 00000000 $d
08003d00 .text 00000000 $t
08003d08 .text 00000000 $t
08003dc4 .text 00000000 $d
08003dec .text 00000000 $t
08003ed4 .text 00000000 $d
08003f04 .text 00000000 $t
08003f3c .text 00000000 $t
08003f6a .text 00000000 $t
08003f98 .text 00000000 $t
08003fcc .text 00000000 $d
08003fd8 .text 00000000 $t
080042d4 .text 00000000 $d
08004308 .text 00000000 $t
080045c8 .text 00000000 $d
08004610 .text 00000000 $t
080048c4 .text 00000000 $d
08004904 .text 00000000 $t
08004ab8 .text 00000000 $d
08004af8 .text 00000000 $t
08004be8 .text 00000000 $d
08004c0c .text 00000000 $t
08004c1e .text 00000000 $t
08004c8c .text 00000000 $t
08004d44 .text 00000000 $d
08004d58 .text 00000000 $t
08004e14 .text 00000000 $d
08004e38 .text 00000000 $t
08004ec4 .text 00000000 $d
08004ed0 .text 00000000 $t
08004f64 .text 00000000 $d
08004f70 .text 00000000 $t
08004fa0 .text 00000000 $t
080050ec .text 00000000 $d
08005104 .text 00000000 $t
08005164 .text 00000000 $d
0800516c .text 00000000 $t
0800532c .text 00000000 $d
08005388 .text 00000000 $t
080054e4 .text 00000000 $d
0800552c .text 00000000 $t
08005534 .text 00000000 $t
08005558 .text 00000000 $d
08005560 .text 00000000 $t
08005598 .text 00000000 $d
080055a0 .text 00000000 $t
080056bc .text 00000000 $d
08005700 .text 00000000 $t
08005810 .text 00000000 $d
08005848 .text 00000000 $t
080059cc .text 00000000 $d
08005a14 .text 00000000 $t
08005bfc .text 00000000 $d
08005c44 .text 00000000 $t
08005d5c .text 00000000 $d
08005d7c .text 00000000 $t
08005dac .text 00000000 $d
08005db4 .text 00000000 $t
08005f28 .text 00000000 $d
08005f64 .text 00000000 $t
08006100 .text 00000000 $d
08006130 .text 00000000 $t
08006208 .text 00000000 $d
08006224 .text 00000000 $t
08006270 .text 00000000 $d
08006284 .text 00000000 $t
0800654c .text 00000000 $d
080065a0 .text 00000000 $t
080066b4 .text 00000000 $d
080066d0 .text 00000000 $t
08006704 .text 00000000 $t
08006714 .text 00000000 $t
08006770 .text 00000000 $d
08006774 .text 00000000 $t
08006794 .text 00000000 $t
080067c8 .text 00000000 $d
080067d4 .text 00000000 $t
08006838 .text 00000000 $d
0800684c .text 00000000 $t
080068d8 .text 00000000 $d
080068ec .text 00000000 $t
08006aac .text 00000000 $d
08006ac0 .text 00000000 $t
08006ad0 .text 00000000 $t
08006bd8 .text 00000000 $d
08006be4 .text 00000000 $t
08006c04 .text 00000000 $t
08006c24 .text 00000000 $t
08006c90 .text 00000000 $d
08006c9c .text 00000000 $t
08006e40 .text 00000000 $d
08006e64 .text 00000000 $t
08006e8c .text 00000000 $d
08006e90 .text 00000000 $t
08006f34 .text 00000000 $d
08006f54 .text 00000000 $t
08006f74 .text 00000000 $d
08006f78 .text 00000000 $t
0800700c .text 00000000 $d
08007014 .text 00000000 $t
08007032 .text 00000000 $t
08007092 .text 00000000 $t
080070b0 .text 00000000 $t
08007168 .text 00000000 $d
0800716c .text 00000000 $t
08007188 .text 00000000 $t
080071b8 .text 00000000 $d
080071bc .text 00000000 $t
0800725e .text 00000000 $t
080072d6 .text 00000000 $t
080073a4 .text 00000000 $t
08007494 .text 00000000 $d
080074c0 .text 00000000 $t
08007550 .text 00000000 $d
0800756c .text 00000000 $t
0800756c l F .text 0000038c _GLOBAL__sub_I_DEBUG
080077dc .text 00000000 $d
0801eb08 .text 00000000 $d
080078f8 .text 00000000 $t
0800793c .text 00000000 $d
08007950 .text 00000000 $t
08007998 .text 00000000 $d
080079ac .text 00000000 $t
08007a00 .text 00000000 $d
08007a1c .text 00000000 $t
08007c50 .text 00000000 $d
08007c84 .text 00000000 $t
08007ed0 .text 00000000 $d
08007f00 .text 00000000 $t
08008120 .text 00000000 $d
08008138 .text 00000000 $t
0800835c .text 00000000 $d
0800837c .text 00000000 $t
08008590 .text 00000000 $d
080085a4 .text 00000000 $t
08008934 .text 00000000 $d
08008984 .text 00000000 $t
08008be0 .text 00000000 $d
08008c28 .text 00000000 $t
08008ec0 .text 00000000 $d
08008f1c .text 00000000 $t
0800915c .text 00000000 $d
08009194 .text 00000000 $t
08009410 .text 00000000 $d
08009468 .text 00000000 $t
080096e4 .text 00000000 $d
0800971c .text 00000000 $t
080099b4 .text 00000000 $d
08009a00 .text 00000000 $t
08009c90 .text 00000000 $d
08009cd4 .text 00000000 $t
08009f58 .text 00000000 $d
08009fac .text 00000000 $t
0800a220 .text 00000000 $d
0800a264 .text 00000000 $t
0800a4f4 .text 00000000 $d
0800a540 .text 00000000 $t
0800a7b8 .text 00000000 $d
0800a7f4 .text 00000000 $t
0800aa68 .text 00000000 $d
0800aab4 .text 00000000 $t
0800ad5c .text 00000000 $d
0800ada4 .text 00000000 $t
0800b024 .text 00000000 $d
0800b060 .text 00000000 $t
0800b2e0 .text 00000000 $d
0800b334 .text 00000000 $t
0800b5d0 .text 00000000 $d
0800b638 .text 00000000 $t
0800b8a0 .text 00000000 $d
0800b8bc .text 00000000 $t
0800b9ec .text 00000000 $d
0800ba04 .text 00000000 $t
0800bafc .text 00000000 $d
0800bb20 .text 00000000 $t
0800bd6c .text 00000000 $d
0800bdcc .text 00000000 $t
0800c0a4 .text 00000000 $d
2000118c .bss 00000000 $d
20001194 .bss 00000000 $d
0801fe70 .rodata 00000000 $d
2000119c .bss 00000000 $d
200011a0 .bss 00000000 $d
0801fe80 .rodata 00000000 $d
200011a4 .bss 00000000 $d
200011a5 .bss 00000000 $d
200011a6 .bss 00000000 $d
200011a7 .bss 00000000 $d
200011a8 .bss 00000000 $d
200011ac .bss 00000000 $d
200011b0 .bss 00000000 $d
200011b4 .bss 00000000 $d
200011c0 .bss 00000000 $d
0801fe94 .rodata 00000000 $d
0801fe94 l .rodata 00000010 _ZL8io_relay
20001298 .bss 00000000 $d
20001299 .bss 00000000 $d
2000129c .bss 00000000 $d
2000000c .data 00000000 $d
200012a0 .bss 00000000 $d
0801fea4 l .rodata 0000000d _ZL15adEEbtLastState
20000054 .data 00000000 $d
200012a4 .bss 00000000 $d
20000064 .data 00000000 $d
200000b4 .data 00000000 $d
200012b0 .bss 00000000 $d
200012b1 .bss 00000000 $d
200012b4 .bss 00000000 $d
200012b8 .bss 00000000 $d
200012c8 .bss 00000000 $d
200012cc .bss 00000000 $d
200000bc .data 00000000 $d
200012d8 .bss 00000000 $d
200000c0 .data 00000000 $d
200012e4 .bss 00000000 $d
200012f0 .bss 00000000 $d
200013e0 .bss 00000000 $d
080219b1 l .rodata 00000f00 _ZL7varName
080219be .rodata 00000000 $d
200000c8 .data 00000000 $d
200013e4 .bss 00000000 $d
200013e5 .bss 00000000 $d
200013e6 .bss 00000000 $d
200013e8 .bss 00000000 $d
200013ec .bss 00000000 $d
200013f0 .bss 00000000 $d
200013f4 .bss 00000000 $d
200000cc .data 00000000 $d
080228b4 .rodata 00000000 $d
080228b4 l .rodata 00000048 _ZL6io_led
200013f8 .bss 00000000 $d
200013f9 .bss 00000000 $d
200013fc .bss 00000000 $d
200000d0 .data 00000000 $d
20001400 .bss 00000000 $d
080228fc .rodata 00000000 $d
080228fc l .rodata 0000002c _ZL15adEEtimeraction
20001410 .bss 00000000 $d
20001460 .bss 00000000 $d
20001464 .bss 00000000 $d
08022928 .rodata 00000000 $d
08022928 l .rodata 00000048 _ZL8io_input
08022970 .rodata 00000000 $d
08022970 l .rodata 00000138 _ZL12adEEbtaction
20001470 .bss 00000000 $d
2000147c .bss 00000000 $d
20001480 .bss 00000000 $d
200000e4 .data 00000000 $d
20001484 .bss 00000000 $d
20001488 .bss 00000000 $d
2000148c .bss 00000000 $d
20001490 .bss 00000000 $d
....
[edogaldo – Thu Sep 13, 2018 8:07 pm] –
No, the point is that in “run mode” the mcu expects the sketch @ 0x08000000 (or 0x20000000 if boot from ram), any other address is not supported.
So the anomaly would be that the <150k sketch runs @0x08000100 in “run mode”…
I got that! But I think when UPLOADING software WRITE 0x08000100 (“Wrote address 0x08000100 (0.17%)” )it is uploading to 0x08000000. I think I wrote wrong about the adress was setted to 0x08000100. It was setted to 0x08000000.
Be sure you compile and install for address 0x08000000, it should work whichever its length.
https://www.st.com/content/ccc/resource … 164185.pdf
page 15 section 3.1 boot mode selection
boot1 boot0 boot
x 0 flash memory
0 1 system memory (i.e. uart boot loader)
1 1 sram
What exactly means “it does not work”? Do you output data on any serial port?
Which IDE do you use? On which OS?
Please prepare a simple sketch which reproduces the problem.
As test, just allocate a constant variable of size 150kB and do a simple processing of it, and check if it works or not.




