Giter Club home page Giter Club logo

Comments (12)

PabloPL avatar PabloPL commented on May 11, 2024 1

After doing

ln -s /opt/SEGGER/JLink/libjlinkarm.so /usr/lib/libjlinkarm.so

I was able to flash sketch to board.

Picked up JAVA_TOOL_OPTIONS: 
--------------------------
Infineon XMC Flasher Lite
Copyright Infineon Technologies 2017
--------------------------
Linux
Operating System: Linux

Initialisation
--------------------------
Linux
Loading JLink Library... 
JLink Library Version: V6.20e

Configuring Device
Device Name : XMC1100-0064
Interface   : SWD
Speed       : 4000
File Upload
--------------------------
Uploading /tmp/arduino_build_283508/sketch_nov26a.ino.hex
... Done
--------------------------
... Finished Succesfully

from xmc-for-arduino.

mhollfelder avatar mhollfelder commented on May 11, 2024

Sorry for the delayed reply to your issue and thank you very much for reporting this problem.

The mentioned problem is strange as we changed the search paths for the flasher some time ago and we thought the problem has been fixed.
We will test it again and try to find out where the problem comes from.

Best regards,

Manuel

from xmc-for-arduino.

bluetiger9 avatar bluetiger9 commented on May 11, 2024

Creating the symbolic link from @PabloPL's comment fixes the problem.

Seems that without having the symlink, the uploader tries to load the 32-bit library and this fails on 64-bit systems:

$ ./arduino
...
Exception in thread "main" java.lang.UnsatisfiedLinkError: jlinkarm.JLinkARMLibrary.JLINKARM_GetDLLVersion()I
	at jlinkarm.JLinkARMLibrary.JLINKARM_GetDLLVersion(Native Method)
	at Infineon.JLinkDebugger.GetDLLVersion(Unknown Source)
	at Infineon.XMCDevice.Program(Unknown Source)
	at Infineon.upload.main(Unknown Source)
# BridJ: dlopen error when loading /opt/SEGGER/JLink_V512g/libjlinkarm_x86.so.5.12.7 : /opt/SEGGER/JLink_V512g/libjlinkarm_x86.so.5.12.7: wrong ELF class: ELFCLASS32

Maybe this helps to fix the issue.

Cheers,
Attila

from xmc-for-arduino.

techpaul avatar techpaul commented on May 11, 2024

Is this resolved with release V1.1.1 using newer gcc version?

If not should this be added to Wiki for installation or older version installation?

from xmc-for-arduino.

StephiB avatar StephiB commented on May 11, 2024

from xmc-for-arduino.

techpaul avatar techpaul commented on May 11, 2024

Well perhaps we need to add to Wiki the fix suggested by PabloPL above of

"After doing

ln -s /opt/SEGGER/JLink/libjlinkarm.so /usr/lib/libjlinkarm.so

I was able to flash sketch to board.
"

from xmc-for-arduino.

PabloPL avatar PabloPL commented on May 11, 2024

Soon we should be able to use PlatformIO - https://github.com/Infineon/platformio-infineonxmc

from xmc-for-arduino.

PabloPL avatar PabloPL commented on May 11, 2024

@techpaul

Is this resolved with release V1.1.1 using newer gcc version?

I think problem is with XMCFlasher, not with gcc version. For some reason, it's not able to correctly load/use JLink software to flash board.

On my ubuntu install Segger JLink is installed (using deb package from theirs website)
into /opt/SEGGER/JLink directory. If adding symlink in /usr/lib/ fixes problem, maybe it's because XMCFlasher is not searching for libjlinkarm.so inside that directory (/opt)?

from xmc-for-arduino.

techpaul avatar techpaul commented on May 11, 2024

Well I have added a note about this on my Wiki for my fork of the package at

https://github.com/techpaul/XMC-for-Arduino/wiki/Linux-64-bit-Flasher-to-board

Until the Segger installation gets resolved

from xmc-for-arduino.

PabloPL avatar PabloPL commented on May 11, 2024

@techpaul Is there repo for XMCFlasher so we could for example create PR with fix ? This looks like something very easy to do.

from xmc-for-arduino.

techpaul avatar techpaul commented on May 11, 2024

Also @mhollfelder

There is no repo for this to my knowledge.

As this is an Infineon utility based or wholly part of the Segger JLink family, this has to be passed up the support chain for the Linux 64 bit installer to be fixed. Or part of the package beyond what I see being fixed

from xmc-for-arduino.

sherylll avatar sherylll commented on May 11, 2024

Since it seems to be a segger- or XMCFlasher-related problem, I'll close this issue.

Since PlatformIO does not depend on XMCFlasher, if this does not happen with PIO, it should de a problem of XMCFlasher (which to my knowledge is not open-sourced).

from xmc-for-arduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.