Skip to content
Snippets Groups Projects
Unverified Commit 83a61726 authored by Gaëtan Harter's avatar Gaëtan Harter Committed by cladmi
Browse files

cortexm_common/ldscript: add _fw_rom_length variable

It will help testing if it is taken into account and for defining for outside
after.
parent bbb1fbe0
No related branches found
No related tags found
No related merge requests found
...@@ -21,10 +21,11 @@ ...@@ -21,10 +21,11 @@
*/ */
_rom_offset = DEFINED( _rom_offset ) ? _rom_offset : 0x0; _rom_offset = DEFINED( _rom_offset ) ? _rom_offset : 0x0;
_fw_rom_length = _rom_length - _rom_offset;
MEMORY MEMORY
{ {
rom (rx) : ORIGIN = _rom_start_addr + _rom_offset, LENGTH = _rom_length - _rom_offset rom (rx) : ORIGIN = _rom_start_addr + _rom_offset, LENGTH = _fw_rom_length
ram (w!rx) : ORIGIN = _ram_start_addr, LENGTH = _ram_length ram (w!rx) : ORIGIN = _ram_start_addr, LENGTH = _ram_length
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment