Starting the SDK
The SDK environment setup script must be run once in each new working terminal in which you cross-compile
输入如下指令:
PC $> cd $HOME/STM32MPU_workspace/STM32MP15-Ecosystem-v1.0.0/Developer-Package
PC $> source SDK/environment-setup-cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi
Check the target architecture:
PC $> echo $ARCH
arm
Check the toolchain binary prefix for the target tools:
PC $> echo $CROSS_COMPILE
arm-ostl-linux-gnueabi- /* For ecosystem release v1.2.0 */
Check the C compiler version:
PC $> $CC --version
arm-ostl-linux-gnueabi-gcc (GCC) 8.2.0 /* For ecosystem release v1.2.0 */
Copyright © 2018 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.
Check that the SDK version is the expected one:
PC $> echo $OECORE_SDK_VERSION
2.6-openstlinux-20-02-19 /* For ecosystem release v1.2.0 */
If any of these commands fails or does not return the expected result, please try to reinstall the SDK.