- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use the UFM to store my NIOS code but I reserve Sector 1 (16kB) for data storage (Liker Script).
I use "Convert Programming File" to merge the .sof and .hex to make a .pof.
After configuration, any unused Flash location by the NIOS code is set to 0x00.
I need any unused Flash location to stay blank (0xFF), espetially the 16kB sector I reserve for data storage.
"Convert Programming File" does not allow me to add more .hex files.
I have the "initialize flash content" box checked in the Flash IP Core.
How do get sector 1 to remain blank (0xFF) at configuration time?
Is this done NSBT? How?
thank you
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you provide me the step that you use to convert the sof and hex to POF file and the step you used to program the flash?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In Convert Programming Files:
- Select Internal Configuration
- In Options/Boot Info ... -- select UFM source: Load memory file, navigate to ./software/<project name>/mem_init/system_onchip_flash_0.hex, keep all defaults.
- Click "SOF Data" -- click Add File..., navigate to ./output_files/<project>.sof
- Keep default Programming file type: Programmer Object File (.pof)
- Click Generate
In "Programmer":
- Check the boxes for CFM0 and UFM in the Program/Configure column
- Click Change File ..., navigate to just created .pof
- Click Start and watch MAX10 get configured
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
May I know how is the hex file genrerated? Do you observed the 1st sector of the "system_onchip_flash_0.hex" file is 0x0 or 0xff?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You will either need to generate the hex file with unused sector to 0xFF or modify the hex file to make sure that the unused sector 1 to 0xff.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Modifying the .hex is not as simple as find 00 and replace with FF. I have to calculate checksum for the end of every line on too many lines.
Isn't there a way for Quartus tools to do it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I would recommend you to modify your Nios II BSP so that the unused memory is set as 0xFF. This will be easiest method as it will generate the hex file for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is exactly what I need.
Can you please point me to instructions on doing it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you share with me your Nios II software BSP?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If possible, please provide me the whole software folder to build Nios II software.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you provide me your .sopcinfo file? May I know how do you set the sector 1 to be unused?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I set Sector 0 in the Linker Script as seen in the BSP Editor Screenshot.
It is the Linker Region called onchip_flash_0_data_BEFORE_RESET..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have check with engineering, unfortunately there is no way to implement it into the Nios II as the "make mem_init_generate" is automated from the tools.
I would recommend you to use Quartus to modify it.
- Open the Hex file and use the default word size
- Highlight by dragging the starting location to the end location that you would like to modify
- Right click on the highlighted cell and select "Fill cells with 1's"
- Save the file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sure. Let me know if you have further queries.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page