- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the eCos 2.0 for Nios II doc, in section 9.4, it states that the memory module for my apps exception vector can't overlap the modules used for Redboot. Does this mean they have to be in different physical memory modules? Or simply in different areas of a single memory module?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Different areas of the same memory is fine. You just have to be certain they don't overlap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But, isn't the exception address fixed in SOPC builder?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So how do both the redboot exception vectors and my code's exception vectors not overlap? Won't they both need to be placed at the fixed location?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You don't need to worry about any code that Redboot may place at the exception vector. Redboot runs in polled mode, so when loading non-eCos applications there's nothing to worry about there. Preserving Redboots exception handler is only an issue when loading eCos applications.
The documentation is admitedly a little unclear on this. What it was intended to say was that the exception vector should not be placed so that it causes the downloaded code to overlap the Redboot code assigned to the "text region", "rodata region" and "rwdata region" assigned in configtool. The simplest way to achieve this is to leave Redboot running from flash, ie. select a ROM configuration, and then allocate a small on-chip memory for Redboots "rwdata". The remaining memory can then be used for the downloaded application. However you don't need to use seperate memories, you just have to avoid an overlap.- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page