Hello beautiful people,
I am currently at work (student intern) and I am trying to program an ATmega128, on a board, with an Arduino sketch. So far I have tried to program it with an Arduino ISP thing (this:
https://store.arduino.cc/arduino-isp), but AVRdude always returns "invalid device signature".
So the goal is to program the board with either the Arduino sketch or the exported Hex file via Atmel Studio 7.
The board has both an ISP and JTAG port, with the following caveats:
- To the PDI and PDO pins of the ISP also connects a MAX232 through 4.7kOhms resistors
- I don't know if the JTAG is activated on the ATmega, as it has never been programmed before, it is "fresh out of the box".
There are various methods to program this thing that I can find at my workplace:
- A Segger J-Link Edu
- A Segger Atmel SAM-ICE
- Two Arduino UNO's
- Said Arduino ISP
- A selection of Altera and Xilinx programmers
-
BUT nobody seems to have a real ISP programmer
To the best of my knowledge, none of the programmers are actually compatible, I don't know if I can program the ATmega with the Arduino stuff via Atmel Studio 7, and through the Arduino IDE it doesn't seem to work.
Would it maybe help to take out the resistors and disconnect the MAX232? That would definitely make testing the serial port rather tedious.
It would not be dramatic if I had to buy an ISP programmer of some sort with company money, given that they do not cost a fortune, but it would mean I had to wait for another week until I can get going.