-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
The GECCO/CMOD .xml files have a value named port which is a hardcoded port value. Unfortunately this value is going to change system to system and on different OS.
There are two functions that look for UART ports depending on the hardware in open_fpga:
self.boardDriver = drivers.boards.getCMODUartDriver(self.config.find("port").attrib["value"])
This first one relies on the hard-coded XML value
self.boardDriver = drivers.boards.getGeccoUARTDriver(drivers.astep.serial.getFirstCOMPort())
This function returns the first COM Port, which isn't always the FPGA if other peripherals are used.
This also only works for Windows OS. We should think about how to strengthen this port selection so it works across platforms.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels