Forum Discussion
Altera_Forum
Honored Contributor
21 years agowhat's wrong with my code?compile error
below is my code ,very simple,I compile it in nios IDE,not SDK,but I have created SDK with sopc builder.which header I need ?where can I find it ? In some sample ,I see "include "excalibur.h"",but so...
Altera_Forum
Honored Contributor
21 years agoYou are trying to mix the legacy SDK with the HAL (the software environment used by the IDE). This won't work.
The legacy SDK is not recommended for new projects. I suggest you look at using the macros within components/altera_avalon_timer/inc/altera_avalon_timer_regs.h which is the HAL way to do things. One more hint - if you are accessing the timer directly then you will need to start from an alt_main project as otherwise the HAL timer code will get in your way.