File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,17 @@ SECTIONS
43
43
_sidata = .; /* start of .data section */
44
44
} >FLASH_FIRMWARE
45
45
46
+ /* Data accessed by the CAN peripheral must be in the first 64kB RAM */
47
+ /* place it at the very start of RAM, before the .data section */
48
+ /* it is zeroed by reset_port */
49
+ .canram (NOLOAD) :
50
+ {
51
+ . = ALIGN (4);
52
+ _scanram = .;
53
+ *(.canram)
54
+ _ecanram = .;
55
+ } > RAM
56
+
46
57
/* This is the initialized data section
47
58
The program executes knowing that the data is in the RAM
48
59
but the loader puts the initial values in the FLASH_FIRMWARE (inidata).
@@ -67,10 +78,6 @@ SECTIONS
67
78
. = ALIGN (4);
68
79
_sbss = .;
69
80
_szero = .; /* define a global symbol at bss start; used by startup code */
70
- /* Data accessed by the CAN peripheral must be in the first 64kB RAM */
71
- _scanram = .;
72
- *(.canram)
73
- _ecanram = .;
74
81
*(.bss)
75
82
*(.bss*)
76
83
*(COMMON)
You can’t perform that action at this time.
0 commit comments