Passing constant from program to linker script
Asked by
Prakash K Balasubramanian
I need to reserve some part of the flash and the following is my failed attempt.
PROVIDE (FLASH_
MEMORY
{
FLASH(RX) : ORIGIN = 0x10001000, LENGTH = (0x32000 - FLASH_RESERVED_
SRAM(!RX) : ORIGIN = 0x20000000, LENGTH = 0x4000
}
In a certain C file, I have "const unsigned FLASH_RESERVED_
Linker complains of non-constant expression for length.
How can I control the size of a memory region using a technique similar to above?
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Prakash K Balasubramanian for more information if necessary.
To post a message you must log in.