5 years, 9 months ago.

ARM integration into the compilation

Hello,

I have a cryptographic project that I have to do on the STM32L053R8, and I am a beginner in the hardware part (never touched electronic boards before).

My project is written in C and ARM languages and contains 2 makefiles and a lot of header files. I am compiling online with Mbed Compiler and unfortunately I cannot take off the part coded with ARM.

How can I compile my project so it would work on the STM32L053R8 since I've read that the Mbed Compiler only knows Cand C++ and not ARM?

Thank you for your help!

1 Answer

5 years, 9 months ago.

Hi Moss,

You need to export your code to and use an off line compiler. You then need to compile the assembly code and then compile the your C code. This is assuming that you have the correct header file for all your files. Here are some links for your references.

Compiling assembly and C code: https://www.devdungeon.com/content/how-mix-c-and-assembly

Exporting project from Online Mbed to an offline toolchain: https://os.mbed.com/handbook/Exporting-to-offline-toolchains

Instructions on how to install Mbed CLI can be viewed here: https://github.com/ARMmbed/mbed-cli#installing-mbed-cli

Further instructions on how to export your program to your IDE with the Mbed CLI can be viewed here:https://github.com/armmbed/mbed-cli#exporting-to-desktop-ides

Please let me know if you have any questions!

- Peter, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!