- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to know what flash offset address I've to set in the Nios II Flash Programmer GUI.
I'm using now 0x800 for the SOF file and no offset for the ELF file. This works fine. But why 0x800? Is 0 - 0x7FF used for the bootloader code? What is the actual size of the bootloader code of the epcs_controller?Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No one any idea? It looks a simple question to me, but I can't find it in the documentation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's shouldn't be any offset. The SOF is placed at the beginning of the EPCS and the software right after it.
The bootloader code for the EPCS device resides in a small onchip memory that is part of the controller itself....less than 4k I think. The bootloader, itself, parses the header of the SOF to see just how large it is and then starts copying the code starting at the end of the SOF up until several 0xFF's are read consecutively....that's what I remember anyway. The sources are in the altera_nios2 component folder that comes with the Nios II EDS distribution. Regards, --slacker- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks slacker. I just tried and you're right. I always used the offset and this also worked but I think the first 0x800 of the serial flash stay empty.
The SOF does not need an offset. Thanks to you description I understand the way the SOF and bootloader are in the EPCS.
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