Forum Discussion
Altera_Forum
Honored Contributor
21 years agohelp me about cfi
i am a beginner of this field. so many problems block me. i have a ep1s80 dev board and a ep1s25 dev board.but i can't program flash on these board. the preset of the cfi does't support...
Altera_Forum
Honored Contributor
21 years agohello rugbybloke
i follow your suggestion:stick a break point in the function alt_flash_cfi_init in the altera_avalon_cfi_flash component. when step into alt_read_cfi_width(alt_flash_cfi_dev* flash) in the altera_avalon_cfi_flash_table .c when execute : for(i=0;i<3;i++) { byte_id[i] = IORD_8DIRECT(flash->dev.base_addr, 0x10+i); } the result of the byte_id[0] =. byte_id[1] =. byte_id[3] =. and ret_code = -ENODEV; the ret_code is " -19" fd = alt_flash_open_dev(EXT_FLASH_NAME); the fd =0 i don't know what is the reason. my board is :Stratix dsp s80 dev. board rev. 1.2 the flash is: am29dl640d the only reason i think i don't config the flash right. help me!