- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looking in system.h, I see the define for SDRAM_BASE. There is no define, tho, for the size of SDRAM. In the old excalibur.h, there was a define for the base, end, and size. There used to be a nasys_data_mem_size also. How can I programmatically find the size of the SDRAM?
thanxLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
look at the linker file. There are symbols for the beginning and end of each memory block in your system. Dirk- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the info, but I am a little lost. I cannot get my application I am porting from Nios to Nios II to build because all the changes. What is the extension of the linker file (.lnk?)? If it will not build, will it create the linker file?
thanx- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The linker file is autogenerated, you can find it in the syslib dirs (AFAIR it's called generated.x). You can access these symbols from your code.
Dirk
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page