Just as a heads up, in case you didn't read the readme.creole for the gcc4mbed tool... gcc4mbed currently only works with the LPC1768. Neither Adam, nor most of the rest of us, have the LPC2368, so getting it working will be a different beast entirely.
A couple options for you...
- Wait patiently for either Adam to get an LPC2368, which may or may not happen.
- Purchase an LPC1768 header module.
- Patiently and calmly work with Adam to try and devise fixes for the LPC2368.
- Devise your own offline compiler patches.
Breakdown on options...
- If you have absolutely no idea what you're doing and broke.
- If you have absolutely no idea what you're doing and can afford it.
- If you have a clue, some time, and are willing to help.
- If you're a pro and have a lot of time.
(Not meant to be a slight in any way... a couple other students bought the mbed header boards to play with in class since they saw me working on an OLED driver... and none of them know the first thing about programming... sigh.)
Personally, I'd suggest #3. If Adam isn't willing to give it a shot, perhaps I could. There's a lot less information on your header, but if you can work with some experimentation to get it running then perhaps it can be added. I'm just not looking forward to finding the correct ld script.
-
Wim, regarding the script not working with VS2010... I don't have VS2010. You shouldn't need elevated privileges if its in a folder you have full access to (such as Desktop, Documents, etc) ... if you go with the example of C:\ARM then it may need the elevated privilege. You can open properties on the cmd file and set 'run as administrator'. If something else broke, then, that's another matter because it worked for me, worked on 2 computers at school (one XP the other XP x64), worked on Windows 7 x64, Windows 7 x86, and a Vista x86. The only windows I haven't tested is Vista x64. I assume all users must have had elevated privileges, since I never had any issues with patch and all were done either in c:\arm or c:\dev.
Later, after I mow the yard (I hate manual labor) I was going to give netbeans a shot. Still looking for a good IDE that I can add to the installer. I'm also considering trying to make a better installer than the cmd script. This project has become my 'I'm tired of staring at my I2C code to figure out why it doesn't want to talk to my display' project. ;) That project still has priority #1, since it's the current major hurdle in my course.
I just wanted to let people know that we now have a project up on github which allows GCC to perform offline compilation of code that links to mbed libraries.
This project started back in May with Arthur Wolf's post to the mbed forum about having the start of a GCC project which would compile and link with the mbed libraries. There was just the small issue of the fact that the resulting code didn't run. Several months later, we now have a project where several samples of code that utilize the mbed libraries now compile, link, and run as expected.
I have added a Notebook page which further describes the project and how to use it.
The project is located here on github.
Now you can go outside with your laptop, mbed device, no WiFi access, and enjoy offline development in the great outdoors! If only this project had been completed a few months earlier :)