File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ PROVIDE(__pre_init = DefaultPreInit);
6060/* # Sections */
6161SECTIONS
6262{
63- PROVIDE(_ram_start = ORIGIN(RAM) + LENGTH(RAM) );
64- PROVIDE(_ram_end = ORIGIN(RAM));
65- PROVIDE(_stack_start = _ram_start );
63+ PROVIDE(_ram_start = ORIGIN(RAM));
64+ PROVIDE(_ram_end = ORIGIN(RAM) + LENGTH(RAM) );
65+ PROVIDE(_stack_start = _ram_end );
6666
6767 /* ## Sections in FLASH */
6868 /* ### Vector table */
Original file line number Diff line number Diff line change @@ -517,8 +517,8 @@ cfg_global_asm! {
517517 // If enabled, initialize RAM with zeros. This is normally not necessary but might be required
518518 // on custom hardware.
519519 #[ cfg( feature = "zero-init-ram" ) ]
520- "ldr r0, =_ram_end
521- ldr r1, =_ram_start
520+ "ldr r0, =_ram_start
521+ ldr r1, =_ram_end
522522 movs r2, #0
523523 0:
524524 cmp r1, r0
You can’t perform that action at this time.
0 commit comments