Hi,
For some SFE board there is downloadable firmware available (like the GPSlogger e.g. code)
From what I understand these projects have been compiled with Crossworks.
My questions is, how does one convert these project to compile in an gnuarm toolchain (set up in eclipse). From what I read, one needs linker commands file and memory mapping file, which are not provided in SFE’s Crossworks projects code downloads.
Any1 with some pointers/hints/ ideas ?
TIA
I’ve been messing with a few projects porting, and ran into the same problems you have. In my (limited) experence, porting simple projects is reasonably simple, but complex projects that rely on built-in features are a pain to convert. The more complex the project is, the more it relies on built-in header files and compiler features.
A lot of simple projects will run with only some #define changes. Mostly pin names, or simple guess-able structures. More complex projects are near impossible. I looked at converting a USB project (before finding LPCUSB), and it used a lot of prebuilt structures from propritary header files.
Settingup Makefiles for projects can be a pain. My preferred apporach when starting with an existing project, is to write the whole compile out as a set of static commands (no CC = or OBJS = !) with a lot of echo commands. I work until I have to modify files. It may not be the best approach, but it’s a good intro to the mystries (and madness) of make.
Oh, and download all of the docs you can on gcc, ld, arm op-codes etc.