This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How c code to get the address by customized section name that is in scatter file?

In Keil MDK-ARM.
I can not get the address by the section name in my c code. Although www.keil.com/.../armlink_pge1362065958198.htm give some explanation, but when I following this method, the compiler will occur error. So how can I get the address by section name that in scatter file?

If the section name is ABCD.
In my c code
text.c
...
uint32_t sectionStartAddress = ABCD$$Base;
...
but compile will occur error!

Please give me some example code for how to get address of section name.

Thanks~

  • Go on - don't you think it would help to mention what error, exactly, you get?

    Also, show how you are creating your custom sections.

    And how about linking to your previous threads on this - or do you think everyone else should spend their time searching them out?