-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrupted flash memory writes for Atmega328p with ISP interface #44
Comments
Logged internally as DSG-7318. |
I think your fix works... interesting though, the tool protocol also has a delay argument which is not correctly used. This fix in pyedbglib's avrispprotocol.py could arguably be more "correct" when seen from the tool firmware: Add parameter to write_flash_page:
Then send in the delay to the tool firmware and set bit 6 to make use of it:
|
This MR is about fixing the AvrIspProtocol.write_flash_page() by using the delayed write command with an optional delay parameter. A delayed write page flash is prefered over normal write command in terms of being in sync with MCU's flash memory timing constraints. See this issue for further details : microchip-pic-avr-tools/pymcuprog#44 ref: https://smade.atlassian.net/browse/LC03T-477
This MR is about fixing the AvrIspProtocol.write_flash_page() by using the delayed write command with an optional delay parameter. A delayed write page flash is prefered over normal write command in terms of being in sync with MCU's flash memory timing constraints. See this issue for further details : microchip-pic-avr-tools/pymcuprog#44
While trying to execute :
The command always fails at flash memory verification step:
The
mismatch location address
is not always the same.On the other hand, while trying to flash using MPLAB IPE with the same HW setup, and the same
hex
file, it always passes.The text was updated successfully, but these errors were encountered: