Follow-up Comment #6, patch #9507 (project avrdude): Here's another attempt on the unlocking, and it should be according to your suggested strategy.
One significant change I had to do was to allow the error code received in jtag3_recv() to trickle all the way up to main.c to be able to identify that the device was locked. Since all return status checks I could find only checked for "<0" I chose to replace some "return -1;" with "return status;", and in jtag3_recv() I return "-(RSP3_FAIL_OCD_LOCKED)". The attachment unlock_test_output.txt is a "screen shot" of the terminal when trying out the different scenarios. This patch needs the latest patch in patch #9506 (https://savannah.nongnu.org/patch/?9506) to work. Patch #9506 contains all the changes to avrdude.conf.in. (file #42847, file #42848) _______________________________________________________ Additional Item Attachment: File name: unlock_avr8x.patch Size:11 KB File name: unlock_test_output.txt Size:2 KB _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?9507> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ avrdude-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/avrdude-dev
