Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21600 Discussions

MAX10 on-chip flash UFM about user data or software alllication

Altera_Forum
Honored Contributor II
3,738 Views

Hello everyone, 

 

I have a question about the MAX10 UFM. Now, i want to use flash to store data and niosii software both. 

 

However, i don't understand how to do it at same time? Could someone help me?
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
2,120 Views

See "utilizing the user flash memory (ufm) on max 10 devices with a nios ii processor (https://cloud.altera.com/devstore/platform/15.0.0/utilizing-the-user-flash-memory-ufm-on-max-10-devices-with-a-nios-ii-processor/)" available in Altera's Design Store. Complete with example. 

 

Also look at an-730 - nios ii processor booting methods in max 10 fpga devices (https://www.altera.com/en_us/pdfs/literature/an/an730.pdf). 

 

Cheers, 

Alex
0 Kudos
Altera_Forum
Honored Contributor II
2,120 Views

Hi Alex, 

Thanks your information. I had read above documents before.  

I saw the flash is separated into two parts UFM and CFM. The UFM is for user data and NIOSII program (.hex) files. The CFM is for hard code (.sof) files. 

Therefore, i'm not very understand how to distinguish where space is stored user data and where is stored (.hex) file?? 

At first, i want to use single uncompressed image mode because the CFM2 can virtual to the UFM. That sector i can use it to put my user data. 

However, i choose it but the error happened. So, i only choose single uncompressed image with initialization (chip type: 10M08DAFC8GES).  

 

The follow is my way: 

 

Step 1 : Set configuration mode into single uncompressed image with initialization and modify the CFM2, CFM1, CFM0 from hidden into read & write in qsys . 

http://www.alteraforum.com/forum/attachment.php?attachmentid=11473&stc=1  

 

Step 2 : Of course the configuration mode need to changed in Quartusii. 

Step 3 : I use CFM2 region to stored my user data. 

 

I guess the (.sof) is stored in CFM0 and CFM1. So i decided to use CFM2 to store my user data. 

Although it can work now. But i don't know this method is correct or not.
0 Kudos
Altera_Forum
Honored Contributor II
2,120 Views

Hi Alex, 

Thanks your information. I had read above documents before.  

I saw the flash is separated into two parts UFM and CFM. The UFM is for user data and NIOSII program (.hex) files. The CFM is for hard code (.sof) files. 

Therefore, i'm not very understand how to distinguish where space is stored user data and where is stored (.hex) file?? 

At first, i want to use single uncompressed image mode because the CFM2 can virtual to the UFM. That sector i can use it to put my user data. 

However, i choose it but the error happened. So, i only choose single uncompressed image with initialization (chip type: 10M08DAFC8GES).  

 

The follow is my way: 

 

Step 1 : Set configuration mode into single uncompressed image with initialization and modify the CFM2, CFM1, CFM0 from hidden into read & write in qsys . 

https://www.alteraforum.com/forum/attachment.php?attachmentid=11474  

 

Step 2 : Of course the configuration mode need to changed in Quartusii. 

Step 3 : I use CFM2 region to stored my user data. 

 

I guess the (.sof) is stored in CFM0 and CFM1. So i decided to use CFM2 to store my user data. 

Although it can work now. But i don't know this method is correct or not.
0 Kudos
Altera_Forum
Honored Contributor II
2,120 Views

I'm not sure I understand exactly what you're trying to do... or even if you still have a problem...? 

 

Look at Table 5: "Nios II Processor Boot Options" on page 5 of AN-730. Is what you're trying to do covered by one of the 5 Nios boot options identified in the table? It sounds like option 1 or 2. Figure 2 then shows you where each bit of data will be stored. The section after takes you, step by step, through options 1 & 2. 

 

 

--- Quote Start ---  

Although it can work now. But i don't know this method is correct or not. 

--- Quote End ---  

 

 

So, do you have a working system? Assuming it is, and it's covered in AN730 (which I think it might be) then - yes, the method is correct. 

 

Cheers, 

Alex
0 Kudos
Altera_Forum
Honored Contributor II
2,120 Views

Hi Alex, 

Yes, i used option 1. Now, it can work.  

thank you. 

 

However, i think the option 3 is better for me.  

Because i can use any register of user flash to store data(AN-730 figure 40). 

 

I am going to try the option 3.  

Thanks your help.
0 Kudos
Reply