But when I try to program ATTiny816 seesaw board, I am getting following error:
An error occurred while uploading the sketch
avrdude: jtagmkII_initialize(): Cannot locate “flash” and “boot” memories in description
avrdude: jtagmkII_program_enable(): bad response to enter progmode command: RSP_ILLEGAL_MCU_STATE
avrdude: jtagmkII_program_enable(): bad response to enter progmode command: RSP_NO_TARGET_POWER
avrdude: jtagmkII_read_byte(): bad response to read memory command: RSP_NO_TARGET_POWER
avr_read(): error reading address 0x0000
read operation not supported for memory “signature”
avrdude: error reading signature data for part “ATtiny816”, rc=-2
avrdude: error reading signature data, rc=-2
avrdude: jtagmkII_program_disable(): bad response to leave progmode command: RSP_NO_TARGET_POWER
Don’t know anything about what you are trying to do.
BUT what is the 10µF cap on the reset pin supposed to be doing. Does the Arduino Nano have a reset button? If so this pin is probably connected to that and the cap might be upsetting the operation.
Would he be referring to the reset button by any chance?
When the Nano is being programmed from a serial adapter, DTR is tied to RST through a low value capacitor, and RST has a high value capacitor to GND. When DTR goes low this puts a low pulse on RST. This enables the IDE to reset the Nano at the end of programming. The connection is usually built-in to the adapter. OP hasn’t shown the connection from PC to Nano, so it is not clear whether it is being used like this in this case. Hence the question about hitting the button.
This is my fault, I was wrong here.
The Seesaw doesn’t have a boot-loader which is why your using a UDPI in the first place. (my bad!)
It does however have memory allocated for the bootloader and flash for the perifpherals which is what your error message is complaining about.
As to why that is I’m not sure because the Docs say that :
The Arduino IDE will automatically set the correct [Microcontroller unit] model and F_CPU (clock-speed)
My next step would be to post the error information you’ve provided here to a new issue on the jtag2udpi github repository.
I’d want to know what IDE setting or compiler flag I need to help my udpis find the correct memory locations.
Super frustrating mate. Seems like you’re doing everything right.
Good luck, and don’t hesitate to keep us updated or ask more questions
Thanks for that. Cleared that up.
just thought it might have been the case of throwing capacitors at anything that might seem to need one. Often the case here but can have some pretty unpredictable results sometimes if done in a seemingly random manner.
Yes, remember that one. Pleased you had some success and acquired some knowledge out of it. It is pretty fascinating at times. I think because you can’t actually see anything happening in the way of little electrons and “holes” buzzing around.