Hello everyone and Happy Holidays!
I am following Alex Chadwick's course from the University of Cambridge website. I'm only at lesson 5, but I want to extend functionality in C, and maybe in C++ in the future. My problem is that I didn't manage to mix C and assembly files.
So, this is what I have done so far:
I created a file named test.c, in which I try to call the asm procedure GetGpioAddress. I also created a file test.h where I declare the function as extern void*, but I get an "undeclared reference" error at compile time. I modified the Makefile as Alex Chadwick himself told me to do by email, but without any luck.
I tried to compile only the C file, and than link all the objects file, but I was still getting various errors. But what I want to achieve is to compile and link all the source files, assembly and C/C++ files altogether.
I'll attach the source files of what I have done so far, maybe someone can take a closer look and tell me what I am doing wrong.
LE: I forgot to mention: I use Yagarto Tools on Windows.
Thanks in advance!