You are viewing an older revision! See the latest version
Exporting to Code Red
Code Red is one of the external offline toolchains supported by the mbed platform.
For a complete overview of the "export" feature, please refer to our general: Exporting to offline toolchains.
To export your mbed program for use in Code Red, right-click the program in your program workspace. From the dialog, you can select the "Export To" as "code_red Red Suite 4", and the target microcontroller you wish to export for.
When you choose export, a zip file containing all the files you need for Code Red will be generated.
The zip file is ready to be imported in Red Suite. In the "Quickstart Panel" click on the "Import project(s)" and select the project archive (.zip) path.
After the build, your binary will be generated in the "Release", or "Debug" directory, depending on the selected configuration.
Toolchain Options¶
These are the toolchain options we are using:
Compiler
-std=gnu++98 -Os -fno-common -fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -D__NEWLIB__ -D__CODE_RED -D__USE_CMSIS -DCPP_USE_HEAP
Linker
-Wl,--gc-sections -mcpu=cortex-m3 -mthumb -nostdlib