FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5230 Discussions

How to erase page in Max10 and relate sector to page ? Able to erase sector and program. But cant find much info on page erase in Max10 ?

nwee0
Beginner
343 Views
 
0 Kudos
4 Replies
ShafiqY_Intel
Employee
202 Views

Hi nwee0,

 

You need to have On-chip flash intel FPGA IP in your design. refer below link:

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/max-10/ug_m10_ufm.pdf

 

To erase the sector, you need to disable the write protected mode and erase sector.

For example, if you want to erase sector ID 5:

0xF7DFFFFF

(bit offset 22-20 set to 3'b101..... bit offset 27 set to 1'b0)

 

I hope this will help.

 

Thanks

 

nwee0
Beginner
202 Views

Hello Shafiq. Thanks for your reply. Actually I wanted to do page erase.

From the userguide metioned 4 pages per sector. Let say i want to erase 1st page of

sector ID 1. Each page have 64Kb of flash memory.

 

To erase the 1st page , i need to disable the write protected mode and erase sector for sector ID 1 .

 

Example:

 

0xFF100000

 

(bit offset 22-20 set to 3'b001..... bit offset 23 set to 1'b0).

( 19-0 page erase address (Corresponding address 00000-0FFFF) to select 1st page erase.

 

Is that correct ?

nwee0
Beginner
202 Views

Hello Shafiq. I draw simple memory map address of pages to sector for max10 onchip flash (attached files jpg). And If I want to erase 2nd page for sector ID 1 , we write to csr 0xFE210000 ?

 

 

 

Regards.

ShafiqY_Intel
Employee
202 Views

Hi nwee0,

 

Let say I'm using your memory map address.

 

1.      You need to disable the Write protection

  • page 2 is within Sector 1. Thus:

bit 23= 1’b0

 

2.      The address for Page 2 is between 10000-1FFFF.

  • The IP core erases the corresponding page of the given address. Which mean any address you use within range 10000-1FFFF, the IP will erase the Page 2.

 

Example:

You can use any of this to erase Page 2:

·        FF710000

·        FF71FAB0

·        FF71FFFF

 

You can give it try. And let me know the details.

 

Cheers

Reply