Forum Discussion

Naji_Naufel_Arrow's avatar
Naji_Naufel_Arrow
Icon for Occasional Contributor rankOccasional Contributor
5 years ago

How to leave unused UFM Flash on MAX10 blank (0xFF)

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

18 Replies

  • JohnT_Altera's avatar
    JohnT_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi,

    Could you provide me your .sopcinfo file? May I know how do you set the sector 1 to be unused?

    • Naji_Naufel_Arrow's avatar
      Naji_Naufel_Arrow
      Icon for Occasional Contributor rankOccasional Contributor

      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..

  • JohnT_Altera's avatar
    JohnT_Altera
    Icon for Regular Contributor rankRegular Contributor

    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.

    1. Open the Hex file and use the default word size
    2. Highlight by dragging the starting location to the end location that you would like to modify
    3. Right click on the highlighted cell and select "Fill cells with 1's"
    4. Save the file