Forum Discussion
Altera_Forum
Honored Contributor
21 years agoIt seems that the epcs_read_electronic_signature(..) function (return code is -ENODEV) can NOT read a valid 'id' in the alt_sys_init() function, if the application is booted from the EPCS flash.
Since the application does run well in the debugger, I suspect that maybe the epcs_read_electronic_signature(..) function is called 'too early'. Therefore I call the alt_epcs_flash_init(..) function later again in our main function, if the first time that this funcion was called, failed. AND IT WORKS. Now, I wonder why the first time that alt_epcs_flash_init function was called, failed? FYI: Our application is to be booted from the EPCS serial flash and the EPCS bootloader copies the application onto RAM and starts the application from there. Would someone clarify the above?? Regards, Kwok Wong