Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Are you sure this is the right platform? Did you install the Nios2eCos package and did you select the Nios2 platform? --- Quote End --- I must check it. --- Quote Start --- As for the link process, when using the eCos HAL tables it is important that the driver code is linked with the kernel in the main archive. If it is linked later (with the application, for example) without the -Wl,--whole-archive option, then gcc can strip some symbols that seem unused and will remove your structure from the table. But as long as your driver's cdl file is correctly read by the eCos build system, the driver should be linked with the kernel so this is a problem you aren't supposed to see. --- Quote End --- Yes, the problem was in the absence of "whole-archive" option although I linked my driver with the kernel. I believe my predecessor had his reasons to avoid that option; so, I just included empty global function in my driver and called it during booting. No, that is not nice but it may be ok for a while. Now, as my driver is linked, I have faced new problem with FIS.