Forum Discussion
Altera_Forum
Honored Contributor
20 years agoeCos for NIOS 5.1
Hi,
I have installed NIOS II 5.1 and the new eCos for version 5.1. When building the eCos library I get errors like "altera_avalon_timer_regs.h: no such file or directory". Looking in the install directory ....\kits\nios2_51\components I recognized that there are much less subdirectories than in the older version. E.g. "altera_avalon_timer" is missing. What went wrong? Installation procedure gave no errors. Regards, Sepp6 Replies
- Altera_Forum
Honored Contributor
I have the same problem - did you ever figure out what went wrong?
I copied the directories over from C:\altera\quartus51\sopc_builder\components to C:\altera\kits\nios2_51\components and the compile makes it pass the timer but then breaks later because it can not find SYS_CLK_TIMER_FREQ which use to be in system.h. I did not want to just add this# define in system.h - clearly something went wrong and these band-aid fixes are not the way to go. Any ideas would be greatly appreciated. Thanks --- Quote Start --- originally posted by sepp@Jan 10 2006, 05:16 AM hi,i have installed nios ii 5.1 and the new ecos for version 5.1.
when building the ecos library i get errors like
"altera_avalon_timer_regs.h: no such file or directory".
looking in the install directory ....\kits\nios2_51\components i recognized that there are much less subdirectories than in the older version. e.g. "altera_avalon_timer" is missing.
what went wrong? installation procedure gave no errors.
regards,
sepp
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12105)
--- quote end ---
--- Quote End ---
- Altera_Forum
Honored Contributor
Hi, Sepp.
In 5.1 release, those directories have been moved to the Quartus SOPC Builder tree. You will find them under QUARTUS_ROOTDIR\sopc_builder\components. Hope this helps. - Altera_Forum
Honored Contributor
Hi all,
I had the same problem when I used a ecc previously generated with V5.0. I solve it by editing the “Additional compiler flags” line of the driver which has the error, This tab is located in “eCos HAL” “HAL SOPC drivers” of the configtool. I entered the default value proposed by eCos in the Properties window. The path for this include is now (QUARTUS_ROOTDIR)’/sopc_builder/ . An other solution could be to regenerate the ecc file from scratch. - Altera_Forum
Honored Contributor
I found that any path that had nios in it had not been updated to nios2_51.
I went into the shell and typed the following: > env | grep nios Then I changed the paths that still had nios instead of nios2_51. The best that I could figure out was that I had eCos for 5.0 installed and I did not uninstall it before I installed 5.1. A co-worker did not have eCos for 5.0 installed and he had no problems. - Altera_Forum
Honored Contributor
Did you ever get past the SYS_CLK_TIMER_FREQ error? I have added the additional compiler flags suggested and checked for references to 'nios' and 'nios2' in the paths (there were none). Where is SYS_CLK_TIMER_FREQ supposed to be defined?
Thanks - Altera_Forum
Honored Contributor
any new updates for ecos ?
the link given in this thread does not open ... any idea regarding this ?