Hi
I didn't do what you said. I tried something else.
I started by copying the TestAndMeasurement.bin file to FLASH.BIN. Same file, different name.
For all of the commands below, the USB-GPIB adapter was connected to a usbasp programmer via the ISP connector.
I ran this command in Linux:
>$ avrdude -P usb -c usbasp -p m32u4 -e -U flash:w:FLASH.BIN
and got the following messages in response:
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9587 (probably m32u4)
avrdude: erasing chip
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: reading input file "FLASH.BIN"
avrdude: input file FLASH.BIN auto detected as raw binary
avrdude: writing flash (9312 bytes):
Writing | ################################################## | 100% 5.40s
avrdude: 9312 bytes of flash written
avrdude: verifying flash memory against FLASH.BIN:
avrdude: load data flash data from input file FLASH.BIN:
avrdude: input file FLASH.BIN auto detected as raw binary
avrdude: input file FLASH.BIN contains 9312 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 4.74s
avrdude: verifying ...
avrdude: 9312 bytes of flash verified
avrdude: safemode: Fuses OK (E:F3, H:D8, L:FF)
avrdude done. Thank you.
After this, the status LED started flashing on the GPIB adapter. So this looks like success.
I like writing this sort of thing into Linux shell scripts to reduce the chance of error. I have 4x more adapters to build and program. A script means I can exactly reproduce a complex command sequence.
My script looks like this:
#!/bin/bash
# uploads usb-gpib firmware to usb-gpib adapter.
# version 1.2 13 Nov 2023
avrdude -P usb -c usbasp -p m32u4 -e -Uefuse:w:0xcb:m
avrdude -P usb -c usbasp -p m32u4 -e -Uhfuse:w:0xd8:m -Ulfuse:w:0xff:m
avrdude -P usb -c usbasp -p m32u4 -U flash:w:BootLoader.hex
# -> yields
# avrdude: safemode: Fuses OK (E:CB, H:D8, L:FF)
# copy the TestAndMeasurement.bin file to FLASH.BIN. Probably not necessary, but it worked.
# This command loads the firmware.
avrdude -P usb -c usbasp -p m32u4 -e -U flash:w:"FLASH.BIN"
# run this command to read and verify the firmware
avrdude -P usb -c usbasp -p m32u4 -U flash:v:"FLASH.BIN"
At the end of running these commands, the status LED slowly flashed on the usb-GPIB adapter. So it all appears to have worked.
I then tried shorting the two ISP pins to try and get the adapter to appear as a drive, but that didn't work.
The final test I haven't done is to try controlling a device. I have a HP 3478A multi-meter. I just need to find some software compatible with the adapter. One I tried was looking for a COM port.