我使用 KEEProg_24xxx_03c 通过 USB 控制 EEPROM 编程器。这多年来一直很好。
但是,现在它抱怨:
$ mono ./KEEProg_03c.exe
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
mono
自从我上次使用它以来,我很可能已经升级了。
听起来好像mono
不支持这个旧的二进制文件。我没有源代码,因此无法将其链接到较新的版本。
wine
启动程序,但 USB 访问不起作用(“关于”抱怨:找不到设备)。
我有哪些选择?有可以控制我的 24xxx 的 GNU/Linux 工具吗?我可以降级mono
或安装旧的库版本吗?
KEEProg 通过 USB 连接。USB 设备被检测为:
[1333363.114683] usb 3-2: new full-speed USB device number 33 using xhci_hcd
[1333363.248418] usb 3-2: New USB device found, idVendor=0403, idProduct=6001
[1333363.248423] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1333363.248426] usb 3-2: Product: FT232R USB UART
[1333363.248428] usb 3-2: Manufacturer: FTDI
[1333363.248430] usb 3-2: SerialNumber: A700f2Je
[1333363.250897] ftdi_sio 3-2:1.0: FTDI USB Serial Device converter detected
[1333363.250948] usb 3-2: Detected FT232RL
[1333363.251171] usb 3-2: FTDI USB Serial Device converter now attached to ttyUSB0
该设备看起来非常像这个(我找不到任何视觉差异):https ://sigma-shop.com/product/31/usb-24xxx-i2c-e-eprom-programmer-microchip-atmel.html
代码可以在这里找到:https ://info.kmtronic.com/software/KEEPROG/KEEProg_24xx/KEEProg_24xxx_03c.zip
我需要运行时 v2.0.50727:
这个答案:https ://stackoverflow.com/questions/33508922/mono-on-macosx-the-runtime-version-supported-by-this-application-is-unavailab/33517383#33517383建议:
哪个有效。