The configuration trouble for imx6slx on window host computer(using eclipse)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The configuration trouble for imx6slx on window host computer(using eclipse)

611 Views
gtfeel
Contributor I

Hello
I have a problem to setup cross compile environment for imx6slx on window host computer

I will explain my setup procedure.

I used eclipse for setting on windows 10. eclipse version is "Eclipse IDE for C/C++ Developers Version: 2020-03 (4.15.0)".

I got cross compiler that is windows 32bit installer(Signed for Windows 10 and later) (Formerly SHA2 signed binary) from https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-...


I installed eclipse plugin for "gnu mcu eclipse 4.7.2". setup environment is below

1. Project -> properties -> C/C++ build->setting->Toolchains's directory is set "C:\Program Files (x86)\GNU Arm Embedded Toolchain\9 2020-q2-update\bin"
2. In Project -> properties -> C/C++ build->setting->Target Processor, I set like "cortex-a9, armv7-a, ARM(-marm), Little endian(-mlittle-endian), FP instructions(Hard), neon, Disabled(-mno-unaligned-access)".

Compile is completed but i got "segmentation fault" when i ran after uploaded xxxx.elf file to target cpu.

I guess I should change option in PRJ->properties->C/C++ build->setting->GNU ARM Cross C Linker or add *.ld file in options. but i don't know how to do exactly.

Currently, GNU ARM Cross C Linker's option is "-Xlinker --gc-sections -Wl,-Map,"4444.map" --specs=rdimon.specs -Wl,--start-group -lgcc -lc -lc -lm -lrdimon -Wl,--end-group" on eclipse of my host computer

Please, tell me where *.ld of imx6slx file is, or how to set up(such as GNU ARM Cross C Linker options etc.) this correctly.

thanks

Labels (1)
0 Kudos
2 Replies

567 Views
igorpadykov
NXP Employee
NXP Employee

Hi JB

may be usefil to check eclipse usage with i.MX6

https://community.nxp.com/docs/DOC-103736 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

567 Views
gtfeel
Contributor I

HI igor

Integrating Processor Expert for i.MX and ARM GCC with Eclipse  <-

If you look at the link, add mx6dq.ld file to GNU ARM Cross C Linker options for use.

I would like to proceed with the "mx6slx.ld" example by adding GNU ARM Cross C Linker options.

But I don't know where to get "mx6slx.ld."

I'd appreciate it if you could tell me how.

 

Best regards

JB

0 Kudos