LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

More
09 Oct 2024 15:10 - 09 Oct 2024 15:10 #311652 by meister
> I saw some pretty nice ones you have that look like they might plug into a pi?
Do you mean this one ?
github.com/multigcs/rio-iceshield
it's not so easy to solder :(
Last edit: 09 Oct 2024 15:10 by meister.

Please Log in or Create an account to join the conversation.

More
10 Oct 2024 00:45 #311686 by mBender
Hey, I am trying to get my hand around this. I have started the Docker container in a Virtual Machine. The GUI Starts, but as soon as I click on a board and want to save the config I get the following error.

/riocore$ sudo docker logs -f riocore
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
loading board: /usr/src/riocore/./riocore/boards/Colorlight_i5-v7_0/board.json
WARNING: no plugins configured
ERROR: module/slot is not compatible
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1235, resource id: 9178654, major code: 40 (TranslateCoords), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1524, resource id: 9179451, major code: 40 (TranslateCoords), minor code: 0
ERROR: module/slot is not compatible
ERROR: module/slot is not compatible
WARNING: no plugins configured
WARNING: no plugins configured
WARNING: no plugins configured
WARNING: no plugins configured
Traceback (most recent call last):
  File "/usr/src/riocore/bin/rio-setup", line 3582, in save_config_cb
    self.save_config(self.config_file)
  File "/usr/src/riocore/bin/rio-setup", line 3593, in save_config
    self.save_config_as()
  File "/usr/src/riocore/bin/rio-setup", line 3574, in save_config_as
    name[0] = f"{name[0]}.json"
    ~~~~^^^
TypeError: 'tuple' object does not support item assignment
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
loading board: /usr/src/riocore/./riocore/boards/Colorlight5A-75E/board.json
WARNING: no plugins configured
WARNING: no plugins configured
Traceback (most recent call last):
  File "/usr/src/riocore/bin/rio-setup", line 3582, in save_config_cb
    self.save_config(self.config_file)
  File "/usr/src/riocore/bin/rio-setup", line 3593, in save_config
    self.save_config_as()
  File "/usr/src/riocore/bin/rio-setup", line 3574, in save_config_as
    name[0] = f"{name[0]}.json"
    ~~~~^^^
TypeError: 'tuple' object does not support item assignment
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
loading board: /usr/src/riocore/./riocore/boards/Colorlight5A-75E/board.json
WARNING: no plugins configured
WARNING: no plugins configured
WARNING: no plugins configured
WARNING: no plugins configured
Traceback (most recent call last):
  File "/usr/src/riocore/bin/rio-setup", line 3582, in save_config_cb
    self.save_config(self.config_file)
  File "/usr/src/riocore/bin/rio-setup", line 3593, in save_config
    self.save_config_as()
  File "/usr/src/riocore/bin/rio-setup", line 3574, in save_config_as
    name[0] = f"{name[0]}.json"
    ~~~~^^^
TypeError: 'tuple' object does not support item assignment
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
loading board: /usr/src/riocore/./riocore/boards/Colorlight5A-75E/board.json
WARNING: no plugins configured
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 683, resource id: 8648058, major code: 40 (TranslateCoords), minor code: 0
Traceback (most recent call last):
  File "/usr/src/riocore/bin/rio-setup", line 3582, in save_config_cb
    self.save_config(self.config_file)
  File "/usr/src/riocore/bin/rio-setup", line 3593, in save_config
    self.save_config_as()
  File "/usr/src/riocore/bin/rio-setup", line 3574, in save_config_as
    name[0] = f"{name[0]}.json"
    ~~~~^^^
TypeError: 'tuple' object does not support item assignment
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
loading board: /usr/src/riocore/./riocore/boards/Colorlight5A-75E/board.json
WARNING: no plugins configured
ERROR: MISSING PIN CONFIGURATION for 'bit' (bitin)
#update w {'type': 'bitin', 'pins': {'bit': {'modifier': [], 'pin': 'w'}}, 'signals': {'bit': {'display': {}}}}
#update we {'type': 'bitin', 'pins': {'bit': {'modifier': [], 'pin': 'we'}}, 'signals': {'bit': {'display': {}}}}
#update w {'type': 'bitin', 'pins': {'bit': {'modifier': [], 'pin': 'w'}}, 'signals': {'bit': {'display': {}}}}
#update  {'type': 'bitin', 'pins': {'bit': {'modifier': []}}, 'signals': {'bit': {'display': {}}}}
Traceback (most recent call last):
  File "/usr/src/riocore/bin/rio-setup", line 3574, in save_config_as
    name[0] = f"{name[0]}.json"
    ~~~~^^^
TypeError: 'tuple' object does not support item assignment
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
loading board: /usr/src/riocore/./riocore/boards/Colorlight5A-75E/board.json
WARNING: no plugins configured
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 590, resource id: 8664042, major code: 40 (TranslateCoords), minor code: 0
WARNING: no plugins configured
WARNING: no plugins configured
WARNING: no plugins configured
ERROR: MISSING PIN CONFIGURATION for 'bit' (bitin)
#update 2 {'type': 'bitin', 'pins': {'bit': {'modifier': [], 'pin': '2'}}, 'signals': {'bit': {'display': {}}}}
#update down {'type': 'bitin', 'pins': {'bit': {'modifier': [], 'pin': '2', 'pull': 'down'}}, 'signals': {'bit': {'display': {}}}}
Traceback (most recent call last):
  File "/usr/src/riocore/bin/rio-setup", line 3574, in save_config_as
    name[0] = f"{name[0]}.json"
    ~~~~^^^
TypeError: 'tuple' object does not support item assignment
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
loading board: /usr/src/riocore/./riocore/boards/Colorlight5A-75E/board.json
WARNING: no plugins configured
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1102, resource id: 8686578, major code: 40 (TranslateCoords), minor code: 0
ERROR: MISSING PIN CONFIGURATION for 'step' (stepdir)
ERROR: MISSING PIN CONFIGURATION for 'dir' (stepdir)
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1614, resource id: 8688081, major code: 40 (TranslateCoords), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2612, resource id: 8691031, major code: 40 (TranslateCoords), minor code: 0
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
loading board: /usr/src/riocore/./riocore/boards/OctoBot/board.json
WARNING: no plugins configured
Traceback (most recent call last):
  File "/usr/src/riocore/bin/rio-setup", line 3582, in save_config_cb
    self.save_config(self.config_file)
  File "/usr/src/riocore/bin/rio-setup", line 3593, in save_config
    self.save_config_as()
  File "/usr/src/riocore/bin/rio-setup", line 3574, in save_config_as
    name[0] = f"{name[0]}.json"
    ~~~~^^^
TypeError: 'tuple' object does not support item assignment
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
loading board: /usr/src/riocore/./riocore/boards/Colorlight5A-75E/board.json
WARNING: no plugins configured
WARNING: no plugins configured
#update d {'type': 'counter', 'pins': {'up': {'modifier': [], 'pin': 'd'}, 'down': {'modifier': []}, 'reset': {'modifier': []}}, 'signals': {'counter': {'display': {}}}}
#update d5 {'type': 'counter', 'pins': {'up': {'modifier': [], 'pin': 'd5'}, 'down': {'modifier': []}, 'reset': {'modifier': []}}, 'signals': {'counter': {'display': {}}}}
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1781, resource id: 8739807, major code: 40 (TranslateCoords), minor code: 0
Traceback (most recent call last):
  File "/usr/src/riocore/bin/rio-setup", line 3582, in save_config_cb
    self.save_config(self.config_file)
  File "/usr/src/riocore/bin/rio-setup", line 3593, in save_config
    self.save_config_as()
  File "/usr/src/riocore/bin/rio-setup", line 3574, in save_config_as
    name[0] = f"{name[0]}.json"
    ~~~~^^^
TypeError: 'tuple' object does not support item assignment
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
loading board: /usr/src/riocore/./riocore/boards/Colorlight5A-75E/board.json
WARNING: no plugins configured
WARNING: no plugins configured
WARNING: no plugins configured
WARNING: no plugins configured
WARNING: no plugins configured
Traceback (most recent call last):
  File "/usr/src/riocore/bin/rio-setup", line 3582, in save_config_cb
    self.save_config(self.config_file)
  File "/usr/src/riocore/bin/rio-setup", line 3593, in save_config
    self.save_config_as()
  File "/usr/src/riocore/bin/rio-setup", line 3574, in save_config_as
    name[0] = f"{name[0]}.json"
    ~~~~^^^
TypeError: 'tuple' object does not support item assignment

 

Please Log in or Create an account to join the conversation.

More
10 Oct 2024 06:08 #311698 by meister
fixed, but this error comes only if you do not add .json suffix to your filename.

Thanks for reporting !

Please Log in or Create an account to join the conversation.

More
11 Oct 2024 01:28 #311788 by digiex_chris

> I saw some pretty nice ones you have that look like they might plug into a pi?
Do you mean this one ?
github.com/multigcs/rio-iceshield
it's not so easy to solder :(

Yes that's the one thank you! Which XO91 did you end up going with? Is that for the SPI CLK? I'm looking into having jlcpcb solder it for me, their cost for the parts is quite low.

Please Log in or Create an account to join the conversation.

More
11 Oct 2024 14:33 #311812 by mBender
Hi all,

I am trying to get my hands around this. Played around with the Docker container a bit. I have so many questions... :D

I think it would make sense if we collect for the Boards to have a sample config file. E.G. I just ordered the Colorlight5A 75E and will set up a simple milling machine with stepper motors. What do you think?

Either way, if someone could share a running json file with me, that would give me a head start.

I will add to the documentation to make it easier for further users to get started.

Please Log in or Create an account to join the conversation.

More
12 Oct 2024 10:23 #311854 by meister
> Yes that's the one thank you! Which XO91 did you end up going with? Is that for the SPI CLK? > I'm looking into having jlcpcb solder it for me, their cost for the parts is quite low.
it's not needed, i use the RPI clock for the FPGA

Please Log in or Create an account to join the conversation.

Time to create page: 0.091 seconds
Powered by Kunena Forum