Skip to main content
AShva.1
Associate III
Mar 24, 2020 6:13 AM UTC
Question

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

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

This topic has been closed for replies.

3 replies

mleo
Visitor II
Mar 25, 2020 9:23 AM UTC

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
AShva.1Author
Associate III
Mar 25, 2020 10:35 AM UTC

Fine.

many thanks

these are compiler and linker settings

could you specify the debugger settings?

with great respect to you

Alexander

mleo
Visitor II
Apr 8, 2020 4:21 PM UTC