Forum Discussion
Altera_Forum
Honored Contributor
15 years agohelp me please!!! alt_flash_open_dev return error
I use sst flash 39vf6401 on my borad.When I need to progamme the flash, I should add a CFI table .Then I can download the programme to the flash successfully. But I can not open the flash whil...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- delphicgp, sorry i mixed something up I thought you use EPCS memory. But anyway it doesn't matter. It looks like it is a case - if the reset vector is in the some specific flash you can't open it using open() function. Is it a question of the Altera's boot loader implementation? Maybe you need a custom boot loader then. I'm not sure how it works. Anyway, could you have your reset vector in EPCS and when use the CFI flash for the rest of the program? --- Quote End --- delphicgp, no it is not the case. I had some time to create a design with CFI flash and SDRAM and I put the reset vector to the cfi_flash and i was able to test this flash using Altera memtest. The proof:
Select Choice (a-b):
b
Enter the name of the CFI flash device to be opened,
or just press <enter> to open "/dev/ext_flash"
>
/dev/cfi_flash
-Successfully opened /dev/cfi_flash
-Region 0 contains 8 blocks.
-Checking Region 0 for erased blocks.
-Block 1, at address 0x2000 identified.
-Would you like to test this block? (y/n)
y
-Starting Flash Test.
-Testing "alt_write_flash" and "alt_read_flash".
pass 1 - passed.
pass 2 - passed.
-Testing "alt_erase_flash_block". passed.
-Testing "alt_write_flash_block". passed.
-Testing unaligned writes. passed.
-Returning block 1 to its erased state.
-Flash tests complete.
-Closing flash device "/dev/cfi_flash". I use Terasic DE0 board as a hardware - you can check on their website how flash is connected. U