[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] [patch #9507] Fix UPDI chip erase
From: |
Jan Egil Ruud |
Subject: |
[avrdude-dev] [patch #9507] Fix UPDI chip erase |
Date: |
Fri, 5 Jan 2018 07:53:26 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36 |
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/