I am very new to arm development and C programming. I want to create a program that accesses 2440addr.h 2440lib.h and 2440slib.h. When I try to compile my program, it says it can't find these header files... Where are they located? Are they ON the ARM board and not my local machine? Are they located in the linux kernal folder somewhere? How can a point the compiler in the right direction so it finds these header files.. I am sorry if this a dumb questions.. Any help is greatly appreciated.
Newb Question..
As you will most likely be cross-compiling on your linux host then they have to reside on the host. Library files are included like this: #include <path/to/the/file> (for standard libraries and #include "my_file.h" (for the C files that you generate) The first question though is . . . what IDE do you want to use or are you going to try to run everything from the command line? Did a search for 2440slib.h and found: ARM Bootloader For S3C2440 Using XMODEM And TFTP Next question is . . . what are you trying to do? This looks like a rather complicated project to start with. I would start by making a folder then put your main.c in it, #include this library and then cross-compile from there.
davef, Thanks for the reply. To answer a few of your questions... First, I am doing all command line, I was not aware of any IDE that supports the friendly ARM. If you could point me in the right direction for and IDE that might be more helpful. How do you search for a file in Linux? Unfortunately, I am senior in college doing a senior design project. Without giving to many details... Our assignment is to redesign a device for a company and basically make their device a hand held embedded device. We thought the ARM board would be an excellent candidate, but it turns out there is a HUGE learning curve behind it. As you can imagine we do not have infinite time, we only have the semester to design and finish our project. I am starting to think that the choice to use the ARM board might have been a bad one. It seems like this is geared more towards people with a lot more time and experience than we have.. We thought about using the Arduino series of boards, but one of the stipulations of our project is to have a graphical user interface, and the arm board comes natively with that but the Ardiuno does not support display screens or operating systems for that matter. At this point... I guess I have chosen to try and figure out exactly how this arm board works.. It's harder than I thought it would be. To put some context behind it, we want to hook up and external ADC (need a high precision one), GPS (SPI Interface), Keypad (GPIO's), Display (FriendlyARM already has one), possibly and I^2C device, and maybe a few other devices. I am also starting to think that the arm board does not have enough GPIO's for our project. Currently, I have jumped through loopholes getting the Linux Kernel updated so that we have access to the GPIO's and SPI interface and I got them working as far as I know. I also followed the hello world QT tutorial and got it working on my arm board successfully. What I found strange were the GPIO's. I hooked up a circuit to the GPIO ports and wrote some code. The function that I used to set the GPIO's direction seemed to NEVER work. If I set all of the pins to OUTPUT, it seems I can use the pin as input AND output which I found really strange.. Maybe something is not configured correctly. I did get one of my circuits working correctly and I did get the arm board to read the GPIO's finally after a little tweaking... I found this guy talking about getting interrupts to work on the board. The link is http://www.keil.com/forum/16851/ .. I noticed the files he "included" and did a google search on them. The 2440addr.h seems to have all of the information to be able to call on all of the main registers for the ARM processor. If I could just get this C and header file I would be able to probably program the arm board to do what I wanted it to do. Any input on anything I just said would be greatly appreciated. Me graduating college is what's on the line here. No pressure. :) Thanks a million, Ben
Ben, You have bitten off a BIG chunk alright! Don't worry about an IDE for now. http://www.friendlyarm.net/forum/topic/2480 for GPIO. If you wanting to access GPIO from userspace. Search <GPIO expander> to get more ports. Until you said needing a display I would have suggested something like a ATmega128 and spend your time trolling around www.avrfreaks.net So a LCD is "out"? Are you trying to do this without the Linux OS? What compiler are you using? < If I could just get this C and header file I would be < able to probably program the arm board to do what I wanted it to do. Do you mean "if I could get these files to work" or "if I could find these files"?