How to run c program in terminal for imx8mm for Android 10 OS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to run c program in terminal for imx8mm for Android 10 OS

573 Views
Ruban1
Contributor II

How to execute C program in terminal for imx8mm for Android 10 OS. For I2C, UART and SPI communication.

Labels (1)
0 Kudos
Reply
1 Reply

565 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Ruban1,

You can compile your C programs with an ARM cross-compiler:

arm-linux-gnueabi-gcc -static -march=armv7-a test.c -o test

Then you can push your compiled binary file to somewhere (don't push it in to the SD card):

adb push test /data/local/tmp/test

Regards

 

 

 

 

0 Kudos
Reply