CoIDE Manual V2.0

Compiler Setting

Before you use CoIDE to start your project, you need to configure the GCC compiler and debugger at first.

CooCox suggest you to choose ARM GCC as the compiler since it is from ARM official. If you want to know more details about ARM GCC, please click here. In additional, you can also choose the other GCC compiler such as CodeSourcery GCC.

ARM GCC 4.9 Features:

  • All GCC 4.9 features, plus latest mainline features
    • Cortex-M7 support
    • Small multiply support with options:
      • -mcpu=cortex-m1.small-multiply
      • -mcpu=cortex-m0.small-multiply
      • -mcpu=cortex-m0plus.small-multiply
  • Define aeabi_memcpy and aeabi_memcpy4 routines in newlib.
  • Thumb-1 library optimizations.
  • Additional code size optimizations
  • Add gdb python build (arm-none-eabi-gdb-py).
  • Object file without attribute section can be linked with any others.

Learn more ARM GCC 4.9 function

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 a base C Library and Semihosting Library, Retarget Library. However, Code Sourcery GCC only have the base C Library. See: Project Configuration
  • Different GCC tools use different link.ld when they compile the same project. When you click the Build button, CoIDE will generate the link.ld file according to the project configuration before the build start.
  • If you want to compile the project that created under other GCC tools in CoIDE, you may need to select that tool as the GCC toolchain, and don't forget to select the .ld files , you need to delete the Build.xml, link.ld, memory.ld. Then check a component and reconfigure the project after setting the GCC.

    Then you need to do the following operations.

  • After launching CooCox CoIDE, Click "Select Toolchain path" under the Project menu.

  • Click the browse button, select the folder which contains the arm-none-eabi-gcc.exe and the other gcc execute files.

  • For example, select the bin folder.

  • Click OK button to save the setting.

After set the GCC Toolchain, you can use the CoIDE to create a project and try the other function. See: CoIDE QuickStart.