Gast
#2179515
Hallo zusammen,
ich möchte gerne im linker File ein ifdef benützen. Da ich verschiedene
externe RAM und Flash habe, muss ich das Memory Mapping anderst
ausführen. Wie ist das möglich? Habe an eine Lösung gedacht, wie:
ifdef NEW_HARDWARE
MEMORY
{
CODE (rx) : ORIGIN = 0x00000000, LENGTH = 0x0003BFF8 /* Internal
firmware code */
etc.
EXTF_CHECKSUM (r): ORIGIN = 0x8107FFFC, LENGTH = 0x00000004 /*
External flash memory checksum (Adler 32) */
}
else
MEMORY
{
CODE (rx) : ORIGIN = 0x00000000, LENGTH = 0x0003BFF8 /* Internal
firmware code */
etc.
EXTF_CHECKSUM (r): ORIGIN = 0x8007FFFC, LENGTH = 0x00000004 /*
External flash memory checksum (Adler 32) */
}
endif
Habt ihr eine Idee?