Please note, changing the compiler toolchain introduces many degrees of freedom in the system; these differences include the translation of C/C++ code to assembly code, the link time optimizations, differences because of the implementations of the C standard libraries, and differences based on compile and link options. It also makes it a lot harder to share code and questions with other developers, as the context needs to be shared too!
Whilst we support exporting your project and the libraries to an alternate toolchain, we cannot guarantee the same consistency as using the mbed Online Compiler. We will do our best to maintain the exported libraries, project file and makefiles, but please understand we can not cover all cases, combinations or provide support for use of these alternate tools themselves!
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.

These are the toolchain options we are using:
-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
-Wl,--gc-sections -mcpu=cortex-m3 -mthumb -nostdlib
No tags
|
13 comments
Please login to post comments.
Test with my
http://mbed.org/users/dreschpe/notebook/micro-paint/
demo. uVision has worked, but with GCC it compile but does not run. I get some warnings :
DigitalIn.h:35:31: warning: 'mbed::DigitalIn' has a field 'mbed::DigitalIn::_gpio' whose type uses the anonymous namespace
but i think the code is ok at this position. The display is initialised, but not cleared. I will try to debug with a LPCXpresso board, but I have to shrink the code fist. Can only debug to 128K with the LPC-Link. The code is realy big compared with the Keil compiler. 137K / 33K.
Peter