Need Help compiling

Hello,

I am new in this domain so please excuse my lack of knowledge about the subject.

I have found an interesting subject about an ARM7 based OLED CLOCK and I am trying to make it as my first project but I encountered some trouble in compiling the source code.

I have made the PCB and now I am in the difficulty of compiling the binary for uploading on the uC.

As far as I know the source code was made in the assembler language by the developer and was compiled under Linux using the GNU toolkit (compiler, linker, assembler, make) and openocd.

I have tried to make it work but I am not that skilled in using programs in Linux using command lines and using other programs such as Atmel Studio or Eclipse didn’t help either.

So I have decided to ask here if there is someone willing to help me to finish making my first project so I can understand at least at the basic level how the compiling and debugging works.

Can someone please help me with the compiling of the source code to obtain the binary so I can upload it on the uC?

The programmer I have is an olimex tiny h programmer and the developer used a digilent jtag 3 but I don’t think that is a big problem because I need to have a binary file first… and maybe I will buy that programmer also so it will work without modifying the code.

I have added an archive with all the documentation provided by the developer. BTW, I have tried to contact the developer but no response (maybe he changed his email in the last passing years).

https://www.dropbox.com/s/glc2gwlf63eim … ctoled.zip

Thank you in advance for any kind of help !

Oh boy. I know you said you already made your pcb. But still you may be better off to set this project aside for a while. Your first ARM project needs to be a “blink the LED” type project. I don’t know if you’ll find anyone willing to spend the time to get you through this one.

  • - If this is your first ARM project, you may not have realized that you need an ARM cross compiler. The author’s writeup makes it sound as if the gcc, asm, and ld that are (possibly) installed on your system can be used. Two sources for free pre-compiled gnu arm cross compilers are [linaro.org (download the latest bare-metal toolchain) and [Mentor CodeSourcery Lite[/*]
  • - Extract the toolchain to your desired location
  • - In the makefile, change *arm-elf-gcc* to *arm-none-eabi-gcc*, *arm-elf-as* to *arm-none-eabi-as*, and so forth
  • - Add the directory with arm-none-eabi-gcc to your PATH (either temporarily or permanently)
  • [/list]

    (Maybe / hopefully you already did that much.) Anyway, at that point you run make from the project directory. The supplied makefile did not seem at all straight-forward to me, and I’m not willing to take the time to get it to work. You may be able to make some sense of the error messages make (or the programs it calls) prints out, or you might be able to request help on one specific error message at a time.

    BTW this should probably be posted next door in Everything ARM and LPC. Good luck!

    -Hugh](Embedded software | Siemens Software)](http://www.linaro.org)