Alright, last time I did a tutorial of how to install arm cortex-m compiler on Mac OSX. But, having just a compiler is not enough. A developer needs a good IDE.
I have encountered two problems with eclipse:
- The source file is full of errors and warnings, yet, it compiles just fine.
- Eclipse GUI is unstable
Let's talk about errors and warnings first. Most of the errors and warnings are from missing symbols and undefined variables. This is because eclipse cannot see outside of the project folder, while the folder is inside the ChibiOS folder.
Take a look at "here->Working with Projects->Preparing your Workspace->#2":
"Navigate the left tree into “C/C++→Code Analysis” and disable everything, without doing this you will see a lot of Errors and Warnings from the static analyzer mixed to the errors found by the compiler and that is very confusing."
Here is a quick fix for this. Reposition project folder (in my case "ARMCM3-STM32F103").
copy ~/workspace/ChibiOS/demos/ARMCM3-STM32F103to ~/workspace/ARMCM3-STM32F103
Now, import the project folder (in my case "ARMCM3-STM32F103") to eclipse then compile it. The errors should be gone by now :)
When I followed the tutorial, eclipse 4.3.1 (kepler) was used. After a few days later, I captured this screenshot.
I don't know what to say but this is just a total failure. I tried removing eclipse and reinstall again several times and it showed exact same screen :(
Right now, I can't use eclipse. Thus, I will use Netbeans for now.