Dear all,
I have a spend sometime trying to figure out the drivers in linux in order to program/debug the XCORE-XA devel board. So far I have added udev file for XMOS XTAG based on
https://www.xmos.com/published/enable-u ... ion=X2612A
I have tried changing the symlink parameter to xtag-pro in a desperate trial and error.
SUBSYSTEM!="usb|usb_device", GOTO="xmos_rules_end"
ACTION!="add", GOTO="xmos_rules_end"
# 20b1:f7d2 for xmos XCORE-XA
ATTRS{idVendor}=="20b1", ATTRS{idProduct}=="f7d2", MODE="0666", GROUP="x", SYMLINK+="xtag2-%n"
# ID 04b4:6570 for XC-1 with Cypress Semiconductor Corp.
ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="6570", MODE="0666", GROUP="x"
#SYMLINK+="xc1-%n"
LABEL="xmos_rules_end"
I installed the J-Link last Linux software from SEGGER, it seems to work as it connects at least with the J-Link IC, here is the output
SEGGER J-Link Commander V5.10j (Compiled Feb 2 2016 19:32:28)
DLL version V5.10j, compiled Feb 2 2016 19:32:23
Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-STM32F103 V1 compiled Feb 5 2014 13:48:52
Hardware version: V1.00
S/N: 660003186
Emulator has Trace capability
VTref = 3.300V
Type "connect" to establish a target connection, '?' for help
dmesg shows me the following
[49543.183234] usb 1-12: USB disconnect, device number 108
[49543.183243] usb 1-12.2: USB disconnect, device number 109
[49543.184583] usb 1-12.3: USB disconnect, device number 110
[49549.061779] usb 1-12: new high-speed USB device number 111 using xhci_hcd
[49549.190986] usb 1-12: New USB device found, idVendor=04b4, idProduct=6570
[49549.191006] usb 1-12: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[49549.191007] usb 1-12: Product: USB2.0 Hub
[49549.191587] hub 1-12:1.0: USB hub found
[49549.191898] hub 1-12:1.0: 4 ports detected
[49549.461704] usb 1-12.2: new high-speed USB device number 112 using xhci_hcd
[49549.550027] usb 1-12.2: New USB device found, idVendor=20b1, idProduct=f7d2
[49549.550035] usb 1-12.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[49549.550040] usb 1-12.2: Product: XMOS XTAG-PRO
[49549.550044] usb 1-12.2: Manufacturer: XMOS
[49549.550047] usb 1-12.2: SerialNumber: XAMRyC493ZWnnPv4
[49549.621672] usb 1-12.3: new full-speed USB device number 113 using xhci_hcd
[49549.711732] usb 1-12.3: New USB device found, idVendor=1366, idProduct=0101
[49549.711734] usb 1-12.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[49549.711735] usb 1-12.3: Product: J-Link
[49549.711736] usb 1-12.3: Manufacturer: SEGGER
[49549.711737] usb 1-12.3: SerialNumber: 000660003186
I can reload udev and see the /dev/xtag2-2 device came up, but when I hit the flash button in xTimeComposer I got
/AN00141_xCORE_XA/bin/app_xcore_xa_leds: Error: F03005 (XB handler) Header tag incorrect
I guess something is incorrent in the xmos rules of udev, I really don't know about the Cypress Symlink, that's why I comment it..same for XMOS.
Can someone enlighten me with this please. Perhaps some way to debug.
I will appreciate any help,
Best,
XCORE-XA linux debugger conn issue - xTimeComposer w/ debian
-
- Member++
- Posts: 16
- Joined: Mon Apr 07, 2014 3:15 am
-
- Member++
- Posts: 16
- Joined: Mon Apr 07, 2014 3:15 am
Update:
I successfully Flashed my startKIT using only the following line in the xmos rules files.
ATTRS{idVendor}=="20b1", ATTRS{idProduct}=="f7d3", MODE="0666", GROUP="x", SYMLINK+="xtag2-%n"
I just add that line, reload rules and reconnect startKIT.
But XCORE-XA seems something else is needed.
Will appreciate your support,
Best,
I successfully Flashed my startKIT using only the following line in the xmos rules files.
ATTRS{idVendor}=="20b1", ATTRS{idProduct}=="f7d3", MODE="0666", GROUP="x", SYMLINK+="xtag2-%n"
I just add that line, reload rules and reconnect startKIT.
But XCORE-XA seems something else is needed.
Will appreciate your support,
Best,
-
- Member++
- Posts: 16
- Joined: Mon Apr 07, 2014 3:15 am
I found a rules file under xTimeComposer, which contains
SUBSYSTEM!="usb|usb_device", GOTO="xmos_rules_end"
ACTION!="add", GOTO="xmos_rules_end"
# 0403:6010 - XMOS XTAG-1
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0666", GROUP="x", SYMLINK+="xtag1-%n"
# 20b1:f7d1 - XMOS XTAG-2
ATTRS{idVendor}=="20b1", ATTRS{idProduct}=="f7d1", MODE="0666", GROUP="x", SYMLINK+="xtag2-%n"
# 20b1:f7d4 - XMOS XTAG-3
ATTRS{idVendor}=="20b1", ATTRS{idProduct}=="f7d4", MODE="0666", GROUP="x", SYMLINK+="xtag3-%n"
# 20b1:f7d2 - XMOS XTAG-PRO
ATTRS{idVendor}=="20b1", ATTRS{idProduct}=="f7d2", MODE="0666", GROUP="x", SYMLINK+="xtagpro-%n"
# 20b1:f7d3 - XMOS startKIT
ATTRS{idVendor}=="20b1", ATTRS{idProduct}=="f7d3", MODE="0666", GROUP="x", SYMLINK+="startkit-%n"
# 1366:0101 - Segger JLINK
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0101", MODE="0666", GROUP="x", SYMLINK+="jlink-%n"
LABEL="xmos_rules_end"
I reload rules and I can see xtagpro-2 and jlink-3 devices showing up under /dev/
But I am getting the same header problem
/AN00141_xCORE_XA/bin/app_xcore_xa_leds: Error: F03005 (XB handler) Header tag incorrect
I have tried with other example project with same result.
Now I can see the debugger under the xTimeComposer Options for Flash programming.
What am I missing?
SUBSYSTEM!="usb|usb_device", GOTO="xmos_rules_end"
ACTION!="add", GOTO="xmos_rules_end"
# 0403:6010 - XMOS XTAG-1
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0666", GROUP="x", SYMLINK+="xtag1-%n"
# 20b1:f7d1 - XMOS XTAG-2
ATTRS{idVendor}=="20b1", ATTRS{idProduct}=="f7d1", MODE="0666", GROUP="x", SYMLINK+="xtag2-%n"
# 20b1:f7d4 - XMOS XTAG-3
ATTRS{idVendor}=="20b1", ATTRS{idProduct}=="f7d4", MODE="0666", GROUP="x", SYMLINK+="xtag3-%n"
# 20b1:f7d2 - XMOS XTAG-PRO
ATTRS{idVendor}=="20b1", ATTRS{idProduct}=="f7d2", MODE="0666", GROUP="x", SYMLINK+="xtagpro-%n"
# 20b1:f7d3 - XMOS startKIT
ATTRS{idVendor}=="20b1", ATTRS{idProduct}=="f7d3", MODE="0666", GROUP="x", SYMLINK+="startkit-%n"
# 1366:0101 - Segger JLINK
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0101", MODE="0666", GROUP="x", SYMLINK+="jlink-%n"
LABEL="xmos_rules_end"
I reload rules and I can see xtagpro-2 and jlink-3 devices showing up under /dev/
But I am getting the same header problem
/AN00141_xCORE_XA/bin/app_xcore_xa_leds: Error: F03005 (XB handler) Header tag incorrect
I have tried with other example project with same result.
Now I can see the debugger under the xTimeComposer Options for Flash programming.
What am I missing?