cancel
Showing results for 
Search instead for 
Did you mean: 

How to setup Eclipse for for cross compilation and cross debugging?

AShva.1
Associate II

Os - Ubuntu 16.04, board - STM32MP157C-DK2, language - С

3 REPLIES 3
mleo
Senior II

Hello,

Basically you need to establish in Eclipse the same environemnt as created by sourcing environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi

Following are the settings I use for Eclipse IDE for C/C++ Developers / Version: 2019-03 (4.11.0)

First you need choose during creation of a new project select "Cross gcc".

Then set in cross settings prefix and path

In compiler settings I use:

-O0 -g3 -Wall -c -fmessage-length=0 -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/osboxes/STM32MPU_workspace/STM32MP15-Ecosystem-v1.2.0/Developer-Package/SDK/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi

And linker settings:  -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7

--sysroot=/home/osboxes/STM32MPU_workspace/STM32MP15-Ecosystem-v1.2.0/Developer-Package/SDK/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed

0693W000000UgwqQAC.png0693W000000Ugw7QAC.png0693W000000UgvsQAC.png

Hope this helps

BR

Milan

AShva.1
Associate II

Fine.

many thanks

these are compiler and linker settings

could you specify the debugger settings?

with great respect to you

Alexander

mleo
Senior II