Forum Discussion
Altera_Forum
Honored Contributor
12 years agoMany thanks for so quick reply.
--- Quote Start --- are you sure that your custom driver is included in the eCos configuration? Could there be a# ifdef somewhere that prevents those macros from running? An easy way I have to find out if a specific part of the source code is compiled, is to voluntarily introduce a syntax error just before of after those macros... Are you looking at the correct table? From what I'm seeing, the table used by those macros is cyg_flashdev, not cyg_flash_devtab --- Quote End --- Yes, the driver is included. I made syntax errors involuntary and it took me about ten attempts to compile the code. I don't look at the table directly; I see that, in cyg_flash_init function, I have got &(cyg_flasdevhtab[0]) == &cyg_flashdevtab_end (I made debug output) that results in returning SYG_FLASH_INVALID and the message "FLASH: driver init failed: Invalid FLASH address". Any advice?