- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hello,
I am starting to program the Nios II core using Eclipse tool. I have created a hardware system for an FPGA development kit using a Cyclone IV FPGA. Until now I have compiled my vhdl design, but not programmed the chip.
When I try to build my C code in Eclipse, I get three errors of the same kind. 'KEYS_base' undeclared, 'SW1_base' undeclared, 'SW2_base' undeclared. I have used the same declaration in my main.c file as in the system.h.
Can somebody help me understand what am I doing wrong?
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi, may I know is the design originates from an outsources or a self-build design?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hello Richard,
Are you asking if I wrote the code? If so, then yes. I used the system.h header file to declare the inputs.
However, I fixed this issue. In the system.h file, the inputs were defined in uppercase (SW1_BASE, SW2_BASE, KEYS_BASE), while I defined them 'base' in lowercase.
Thanks,
Reba
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I am glad that the issue has been solved. :)