Forum Discussion
Altera_Forum
Honored Contributor
12 years agowrong "fd->length" (flash device)
Hi, I'm using a CFI Flash memory. When I interrogate the Flash, by : [code=c] flash_region* regions; alt_flash_fd* fd; int number_of_regions = 0; int ret_code = 0; int i = 0; int size = 0; /...
Altera_Forum
Honored Contributor
12 years agoBy a# define MACRO in altera_avalon_cfi_flash.h : #define ALTERA_AVALON_CFI_FLASH_INSTANCE(name, dev) ...
(fd -> length) takes information from the system.h <-- generated by BSP <-- generated with QSYS <-- flash information "embeddedsw.CMacro.SIZE" in "module_assignement" when editing the flash component in Qsys Editor. So, (fd -> length) does NOT take information from CFI flash. I put here because It may help someone else debugging.