Compiler Setting
Before you use CoIDE to start your project, you need to config the GCC compiler and debugger at first.
CooCox suggest you to choose ARM GCC as the compiler since it is from ARM official. In additional, you can also choose the other GCC compiler such as CodeSoucery GCC.
ARM GCC Features:
- All GCC 4.6 features, plus latest mainline features
- Cortex-M0/M1/M3 support
- Cortex-M4 with hard float multilib support
- Cortex-R4/R5 with hard float multilib support
- Fixed point fraction support
Download: GCC ARM Embedded
Note:
As CoIDE support different GCC compiler, you need to pay attention to the following point when you switch between the compilers:
- The different compilers have different C libraries, for example: ARM GCC have base C Library and Semihosting Library, Retarget Library. But Code Soucery GCC only have the base C Library. See: Project Configuration
- ARM GCC and Code Soucery GCC use different link.ld when they compile the same project. CoIDE will gernerate different link.ld when you create the project, so it is strongly recommended of you to set the GCC compiler before you start.
- If you want to use ARM GCC to compiler the project you created under Code Sourcery GCC, you need to delete the Build.xml, link.ld, memory.ld. Then check a component and reconfigure the project after set the GCC.
Then you need to do the following operations.
After set the GCC Toolchain, you can use the CoIDE to create a project and try the other function.
See: CoIDE QuickStart.
|
|