Hello, I'm currently a student of ECE at California Polytechnic
University Pomona. I recently purchased a Spartan-3E board, as
that is what our laboratory courses are using for learning about
Microprocessor programming. The majority of our labs involve
derivitives of the labs offered under the Xilinx University
Program. At the moment, we are on lab #5, dealing with
programming using Interrupt Controllers and Handlers. What the
professor has requested is making a clock which increments every second
based upon an interrupt signal.
Now, I'm not asking for the code or anything like that... like I said,
it was all more or less a derivitive of what was provided by the folks
at Xilinx. What I'm having an issue with is the fact that after
following all the instructions, both in the derived form and to the
letter from Xilinx, I am consistently receiving the error:
undefined reference to `timer_int_handler'
and within the file, the only reference to the timer_int handler is as such:
I've read the instructions and did some searches and they mention that
a linker might solve some of these problems. Lo and behold,
the one provided along w/ the lab solutions failed to work. I
tried renaming it to the reference given to it within xparameter.h...
still no dice. Per Xilinx, the file is used for configuring a
table used for each interrupt controller being used by the
system. I'm completely clueless as to what I'm supposed to do to
allow the program to compile from this point. At the moment,
timer_int_handler is defined as my Interrupt Handler within my primary
*.C file, as a seperate function from the main function.
But there's one thing need to be mentioned that before EDK9.1, you can register your interrupt handler in MSS file. Since EDK9.1, it's not supported any longer. You need to register your ISR manually in your C code. There should be an Answer Record for it. You can search the Xilinx Answer Database for it.
Still no luck and I've tried searching through the answer data base for
'handler', 'interrupt', 'xintc_g', and the like with no luck.
I've also tried running the base program directly from the labsolutions
folder and it HAS worked on it's own (basically, a binary counter using
LED's (???)) but when I tried replacing the source file with my own
custom one, after making sure that all the components required by it
were set up properly as per the previous labs and, once again, that
same error showed up. I'll probably end up asking my professor
tomorrow, but still... I was feeling somewhat hopeful earlier today
that I could do this. ~sighs~