-
Notifications
You must be signed in to change notification settings - Fork 4
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
Could a pre-compiled binary be made available? #4
Comments
Well, that's pretty much what I did:
And it seems to work! Here's the contents of that new hex file. I make no guarantee that it's error-free, but it's what I'm using so far.
And the command to write it to the chip.
Hopefully this helps someone. I'm not going to close this issue yet, because I'm not completely confident that it's an exact image of what the author intended, but like I said, it does seem to work. |
For those of us that don't want to modify it, but "just drop it in and go", it would be nice to have something that is already known to work with a standalone programmer.
I can export a hex file from the Arduino IDE, but it only includes the Flash, not the Fuses. I guess that's a start, but the Fuses are important too! How to get those? Read the datasheet and build them up manually from the screenshot of the author's (old now) Arduino IDE?
Why I think I need this:
I rearranged the schematic and PCB from here, to make it a hat for a Raspberry Pi that uses the Pi's GPIO UART, driven from pymcuprog with its recommended schematic for UPDI. ( https://pypi.org/project/pymcuprog/ and https://github.com/microchip-pic-avr-tools/pymcuprog/blob/main/help.md and https://community.platformio.org/t/pymcuprog-cant-use-my-uart/40104/6 ) A set of jumpers allows the same UART to program the onboard ATtiny202 instead of an external target. As far as the ATtiny202 is concerned, it does the exact same function with the exact same code.
Of course, HV UPDI isn't available for the onboard chip, so I need to make absolutely sure that I don't brick it while still setting the rest of the Fuses to make the key work. But I don't see a UPDI setting in the Arduino IDE anymore, which makes me nervous. Did it get dropped? And does the new default setting brick it by accidentally requiring HV?
So, with pymcuprog by itself, not the Arduino IDE, how to make the connection between the documentation here and a completely programmed chip? I think a complete set of binary data would do that, and it appears from the middle link above that using pymcuprog by itself to read a working key would produce that data in a single hex file.
The text was updated successfully, but these errors were encountered: