Using an STK500 with IDE 2.3.4 to program an ATmega128l

Highly specific post from relative newcomer to the forum & 128L but old time embedded systems geek

I'm using an old STK500 programmer to program an ATmega128L. This poses several issues, most of which I think I've got. However I have some really 'stupid' questions.

  1. Everything is being done on a Mac. I have intel and Apple M3. Usually this is worked on an intel on my desk.

  2. What should all the jumper settings on the STK500 be? There are quite a few...

  3. I've got a USB->Serial converter selected as the port, and the converter plugged into the STK500, and the STK plugged into power. Yet, I never see rx/tx light up when the system tries to talk to the STK, and, in fact, doesn't seem to see it.
    Attempting to upload code, I get:

OS error: cannot open port /dev/cu.usbserial-FTEFGG64: Resource busy
OS error: cannot open port /dev/cu.usbserial-FTEFGG64: Resource busy
Error: probing stk500v2 failed, as did stk500v1; perhaps try -c stk500v1
Error: unable to open port /dev/cu.usbserial-FTEFGG64 for programmer stk500
Failed programming: uploading error: exit status 1

I can talk to the converter fine otherwise. I have vague memories of needing to push the 'program' button long ago when I used this critter, but can't honestly remember.

Once I get the ability to program the 128L located in the programmer, I'll be moving on to doing so via ICSP, trying to program an Olimex breakout board like this:

Any hints about doing so are welcomed.

Thanks!
Bob

Hi @komradebob.

Do you have the serial port open in any other application? If so, try closing that application (or the port in the application) before attempting an upload.

You can also try closing the "Serial Monitor" tab in the bottom panel of the Arduino IDE window? Arduino IDE is designed to automagically juggle control of the serial port between Serial Monitor and the upload tool, so this should not be necessary, but it is worth checking just in case.

Since you didn't receive any responses about the STK500 (and unfortunately I don't have any experience with these so I can't help), it might be best to just move on to that anyway.

Do you have another ISP programmer on hand? If not, you make a DIY "Arduino as ISP" programmer from a spare board:

https://docs.arduino.cc/built-in-examples/arduino-isp/ArduinoISP/

If you don't have a spare Arduino board, I can recommend the USBasp programmer as a good option. They are available for a reasonable price from the usual online marketplaces.

You can add support to Arduino IDE for the ATmega128L using the excellent 3rd party "MegaCore" boards platform: