- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, all.
I have the CY8C5868AXI-LP035, the Creator 3.0 and i use the GCC compiler.
How can i place a section (for ex MySection) to an adress 0x10000?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is inside does not matter. A section is an area of code or date that is collected by the linker to be placed to a specific address, either automatically or manually (user supplied options). TEXT or LITERAL are standard areas used by C-language.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Follow this thread http://www.cypress.com/?app=forum&id=2233&rID=86631 there are hints how to tell the linker to place a section at a fixed address.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is inside the section?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is inside does not matter. A section is an area of code or date that is collected by the linker to be placed to a specific address, either automatically or manually (user supplied options). TEXT or LITERAL are standard areas used by C-language.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank's Bob.
I tryed your link.
But I can't to get a positive result.
What i did:
1. I apply the "command line" "-Wl,--section-start=.CRCDATA=0x10000" (See the picture "linker.png", pls).
2. I put the string
"const unsigned char ucCRCdata[5] __attribute__ ((section (".CRCDATA"))) = {0xAA, 0xbb, 0xcc, 0xdd, 0xee};"
to the main.cpp file.
3. And in debuger i see zeros.
What did i wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!
I resolved the problem.
The linker delited my section becouse I didn't use the ucCRCdata.
And I added a string to the main() "volatile u08 i = ucCRCdata[0];"
And all.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fine to hear that, you are always welcome!
Bob