2023-06-06 11:12 PM
Hi, I am using STM32MP157D-DK1 board to cross compile my application from host pc.
My host PC is installed with ubuntu 20.04. I have setup the build environment in host pc.
When i am executing the hello exe in STM32MP board.
Please find details below.
ubuntu_20_04@ubuntu2004:~/STM32MPU_workspace/STM32MP1-Ecosystem-v4.1.0/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi/hello$ uname -a
Linux ubuntu2004 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
ubuntu_20_04@ubuntu2004:~/STM32MPU_workspace/STM32MP1-Ecosystem-v4.1.0/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi/hello$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
ubuntu_20_04@ubuntu2004:~/STM32MPU_workspace/STM32MP1-Ecosystem-v4.1.0/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi/hello$ echo $CC
arm-ostl-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/ubuntu_20_04/STM32MPU_workspace/STM32MP1-Ecosystem-v4.1.0/Developer-Package/SDK/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
ubuntu_20_04@ubuntu2004:~/STM32MPU_workspace/STM32MP1-Ecosystem-v4.1.0/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi/hello$ echo $LD
arm-ostl-linux-gnueabi-ld --sysroot=/home/ubuntu_20_04/STM32MPU_workspace/STM32MP1-Ecosystem-v4.1.0/Developer-Package/SDK/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
ubuntu_20_04@ubuntu2004:~/STM32MPU_workspace/STM32MP1-Ecosystem-v4.1.0/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi/hello$ echo $LDFLAGS
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
ubuntu_20_04@ubuntu2004:~/STM32MPU_workspace/STM32MP1-Ecosystem-v4.1.0/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi/hello$ echo $CFLAGS
-O2 -pipe -g -feliminate-unused-debug-types
ubuntu_20_04@ubuntu2004:~/STM32MPU_workspace/STM32MP1-Ecosystem-v4.1.0/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi/hello$ $CC hello.c -o hello_cc
ubuntu_20_04@ubuntu2004:~/STM32MPU_workspace/STM32MP1-Ecosystem-v4.1.0/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi/hello$ scp hello_cc root@192.168.7.15:/root/
hello_cc 100% 12KB 2.5MB/s 00:00
ubuntu_20_04@ubuntu2004:~/STM32MPU_workspace/STM32MP1-Ecosystem-v4.1.0/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi/hello$ ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
STM32MP OUTPUT:
./hello: /lib/libc.so.6 : version 'GLIBC-2.34' is not found (required by ./hello)
Please tell me how to resolve the issue. and also is there any procedure to develop code in STM cube IDE at host PC and then transferred into STM32MP board.
2023-06-07 12:27 AM
Hi @Yatam Venkata Krishna Reddy ,
Did you follow this article ?
Create a simple hello-world application - stm32mpu
Olivier