1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/stm32: set SRAM4 addr to 0 in ld script if length is not defined

Defining the SRAM4 start address as 0 when the SRAM4 length is not defined invalidates the corresponding heap entry.
This commit is contained in:
Gunar Schorcht 2023-07-22 17:31:22 +02:00
parent da9d137d98
commit 79198e92b9

View File

@ -19,12 +19,14 @@
*/
ccmram_length = DEFINED( _ccmram_len ) ? _ccmram_len : 0x0 ;
sram4_addr = DEFINED( _sram4_length ) ? 0x28000000 : 0x0 ;
sram4_length = DEFINED( _sram4_length ) ? _sram4_length : 0x0 ;
MEMORY
{
ccmram : ORIGIN = 0x10000000, LENGTH = ccmram_length
sram4 : ORIGIN = 0x28000000, LENGTH = sram4_length
sram4 : ORIGIN = sram4_addr, LENGTH = sram4_length
}
SECTIONS