Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHow to use M25P32 ?
Hi guys, I want to use M25P32 in my design for its low cost. But unfortunately, it can't be recognized by Quartus programmer. It also can't be opened with the function "alt_flash_open_dev". ...
Altera_Forum
Honored Contributor
11 years agoFinally, I have found a way, and it is so simple. I just track the boot process step by step, and find alt_epcs_flash_query() function. I just add the following code, and the M25P32 can be accessed.
else if (flash->silicon_id == 0x15) /* EPCS32 */ { flash->dev.region_info[0].region_size = 32 * 1024 * 1024 / 8; flash->dev.region_info[0].number_of_blocks = 64; flash->dev.region_info[0].block_size = 65536; } Hope it will help others. Thanks again for Stuart and Alex. You make me solve this issue so quickly. Derek