Comments (12)
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.
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.
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.
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.
from xmc-for-arduino.
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.
Soon we should be able to use PlatformIO - https://github.com/Infineon/platformio-infineonxmc
from xmc-for-arduino.
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.
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.
@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.
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.
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)
- XMC-for-Arduino and PlatformIO for my own XMC4500 Platform HOT 5
- Imformation on XMC1400 Arduino Kit HOT 3
- XMC4400 Platform2Go mangled Serial port configuration HOT 1
- XMC4 series Analog Referenece AREF pin errors HOT 1
- a bug for chinese user HOT 10
- RS485 Modbus library throwing errors HOT 6
- Chose board to flash by port HOT 1
- Multiple definition of CCU40_0_IRQHandler HOT 1
- Poor voltage amplitude on RX pin HOT 4
- J-Link Debug HOT 1
- XMC Flasher not working HOT 4
- XMC2Go: Wire.begin() sends I2C start condition HOT 18
- XMC1100 ICSP Programmer HOT 1
- Can not connect xmc2go to arduino ide HOT 2
- Only SPI or I2C? HOT 1
- Defining SERIAL_ONBOARD raises error HOT 4
- onboard serial not working HOT 1
- Update xmc2go Wiki with onboard serial information HOT 4
- XMC1100 2GO I2C unresponsive
- map() definition conflicts with STL version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmc-for-arduino.