Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 3 months ago.
Linkder File for TOOL Chain ARM GCC for STM32F401RE
Hi,
I need to understand a line of code in the linker file of STM32F4 to implement similar to it for my target Tiva C, since both RAM addresses start at 0x2000000
The line is
RAM (rwx) : ORIGIN = 0x20000198, LENGTH = 128k - 0x198
The question is: why did he begin the ram from this particular address ? ( I am guessing that it's because mbed needs to offset the vector table to the beginning of the RAM) if that is true, how can I calculate this offset for 154 vectors for my Target
1 Answer
8 years, 3 months ago.
You have 154 vectors, each vector is 4 bytes (32-bit pointer), so total is 616 bytes, is 268 hex. F401 apparantly has 102 vectors.