Skip to content
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

Using jtag2updi as a library for a standalone Arduino (use case being over-the-air programming) #77

Open
sieumap43 opened this issue Aug 7, 2024 · 1 comment

Comments

@sieumap43
Copy link

Hi @ElTangas,
is it possible to use the jtag2updi as an Arduino library (or even C/C++ library) within an Arduino program? And thus the Arduino can manually flash the data from any source and not just what avrdude gives it. For example, the Arduino can flash an array inside its memory as a program
const uint8_t hexData[] PROGMEM = { 0x0C, 0x94, 0x5C, 0x00, 0x0C, 0x94, 0x6E, 0x00, 0x0C, 0x94, 0x6E, 0x00, 0x0C, 0x94, 0x6E, 0x00, 0x0C, 0x94, 0x6E, 0x00, 0x0C, 0x94, 0x6E, 0x00 };
provided that the memory above is beforehand manually translated from hex file.

Is there any function like updi_flash(uint8_t * data, uint8_t length);?

Context: I want to build a wireless programmer (currently thinking of the NRF24L01+) without the use of the bootloader. Thus the Arduino receives the data, which was translated from the Hex file into bytes, and the flashes these bytes on the the target MCU.

Alternatively, anybody knows any other approach to Over-the-air for Attiny which have UPDI interface?

Thank you in advance.

@sieumap43 sieumap43 changed the title Using jtag2updi as a library for a standalone Arduino Using jtag2updi as a library for a standalone Arduino (use case being over-the-air programming) Aug 7, 2024
@FKW9
Copy link

FKW9 commented Sep 6, 2024

Look at this: https://github.com/adafruit/Adafruit_AVRProg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants