Making progress on getting CUPL programming to a bearable state.
I was able to move my CUPL editing and device programming to my main Mac M2 machine. I'm using UTM (QEMU under the hood), to virtualize Windows 11 ARM edition. (Guide to follow here:
https://docs.getutm.app/guides/windows/). Inside Windows 11 ARM, both WinCUPL and ATMISP work flawlessly so far through Microsoft's translation layer. Finally, using UTM's USB sharing feature, I'm able to plug my Atmel programmer directly into the VM, and to program a CPLD successfully.
I did have some trouble initially with FTDI drivers, but putting the FTD2XX.DLL file found in this archive (
https://ftdichip.com/wp-content/uploads ... utable.zip) inside the ATMISP directory made it work. I did have to use the one from the "x86" folder.
I also switched my editor to Visual Studio Code, with the build actions below. To use ATMISP like this you need to run it once manually to configure your device, and use it to save a .chn file with the same name of your .pld next to it. The following extension has syntax highlighting for CUPL:
https://marketplace.visualstudio.com/it ... ighlighterNext goals are : automate ATMISP to generate the svf file, and move to VSCode Server so I can edit and program natively on Mac without using the VM's GUI.
Code:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "cupl",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"command": "C:\\Wincupl\\Projects\\cupl.bat ${fileDirname}\\${fileBasenameNoExtension}.pld"
},
{
"label": "atmisp",
"type": "shell",
"group": "build",
"command": "C:\\ATMISP7\\ATMISP.exe ${fileDirname}\\${fileBasenameNoExtension}.chn"
}
]
}