Skip to main content
AShva.1
Associate III
March 24, 2020
Question

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

  • March 24, 2020
  • 3 replies
  • 1882 views

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

This topic has been closed for replies.

3 replies

mleo
Visitor II
March 25, 2020

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
March 25, 2020

Fine.

many thanks

these are compiler and linker settings

could you specify the debugger settings?

with great respect to you

Alexander

mleo
Visitor II
April 8, 2020