Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 10 months ago.
Using the mbed API in unsupported compiler
Hi all,
I want to use the mbed libraries in an unsupported compiler. So, I am looking for some 1st steps in getting the complete source for the mbed libraries so that I can include them in a project and have them compiled by my toolchain.
I looked around and could not find any documentation on this, but It's quite likely that I missed an FAQ somewhere or a good forum post.
Thanks in advance for pointing me to information or taking the time to explain things to me!
Hello Tim Borland,
what compiler would you like to add? The specific compiler files (startup and linker file) are located in cmsis/target_vendor/target_mcu/ . There's folder toolchain_xxxx where xxx can be any toolchain which is currently supported. Please check the github repository for further details.
Regards,
posted by Martin Kojtal 21 Jan 20140xc0170
The compiler I want to add is somewhat supported. It is the ARM GCC compiler built into the em::blocks IDE. The problem I am having is that the libraries delivered by the compiler use 4 byte wchar and the mbed libraries are 2 byte wchar. I was unable to find source for the compiler libraries so I'm trying to re-build the mbed libraries to a 4 byte wchar type. I realize this is not the best idea because of space constraints, but it was the only thing I could think of. That is of course until I was typing this. I should be able to take the libraries from another ARM GCC tool chain and add them to the GCC toolchain in em::blocks.
posted by Tim Borland 21 Jan 2014