cancel
Showing results for 
Search instead for 
Did you mean: 

Building C programs on STM32MP Linux

debugging
Lead

Been looking around how to install GCC native ARM tool-chain on the STM32MP1 & MP2 to be able to build C applications on an ARM host. Is that possible or it can only be done with a Intel based cross compiler ?

 

 

2 REPLIES 2
Andrew Neil
Super User

@debugging wrote:

 Is that possible or it can only be done with a Intel based cross compiler ?


GCC on Linux ARM must be possible - Raspberry Pi does it!

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Nisarg
Associate II

If you are building Yocto you can find some recipe to install gcc on the target it self for native build (i don't know the recipe name sorry..)

Or you can issue bitbake command 

bitbake -c populate_sdk <your-image-name>

to build a cross compiler for your target image along with target rootfs. Which can be found in deploy/sdk directory of your build. and can be installed on other machines.