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

Dynamic linking library API, GUI example added #15

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
*/*/*/*.o
*/*/*/*.def
*/*/*/*.a
*/*/*/*.so
*/*/*/*.dll
*/*/*/*/*.o
*/*/*/*/*.so
*/*/*/*/*.dll
*/*/*/*/*.def
*/*/*/*/*.a
*/*.hex
*/*.depend
*.exe
*/*.exe
*.o
*.dll
*.so
*.lib
*.depend
*/*.dbg
*/backup
*/lib
*/*.lps
*/*.res
*.layout
*/*.layout
release*/*
release*/*/*
updigui/updigui
25 changes: 25 additions & 0 deletions LICENSE_updigui_updilib
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
BSD 2-Clause License

Copyright (c) 2023, Ilya Medvedkov
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
File renamed without changes.
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# updiprog
# UPDI program tools

Utility and library with CLI (Pure-C) and GUI (Lazarus) modes for programming AVR devices with UPDI interface using a standard TTL serial port

#### Screeshots

![updi_gui](https://raw.githubusercontent.com/iLya2IK/updiprog/master/updigui/screenshots/Screenshot_20231018_221738.png)

## updiprog

This is C version of UPDI interface utility with improvements, you could refer to the Python version: [pyupdi](https://github.com/mraardvark/pyupdi.git)

Expand Down Expand Up @@ -32,15 +40,15 @@ I am using [CH340 USB to TTL converter](https://www.elektor.de/ch340-usb-to-ttl-
</pre>
**Warning!!!** If you don't have any output resistors on your CH340 board, please mount them!

# Additional features were added:
## Additional features were added:
- reading content of the flash memory from the MCU
- reading fuses
- different levels of logging
- faster programming/reading (about 6 seconds for the whole Tiny1616)
- many additional error messages
- locking/unlocking MCU

# A brief description of all available options.
## A brief description of all available options.

-b BAUDRATE - set COM baudrate (default=115200)
-d DEVICE - target device (tinyXXX)
Expand Down Expand Up @@ -72,3 +80,13 @@ I am using [CH340 USB to TTL converter](https://www.elektor.de/ch340-usb-to-ttl-

Write 0x04 to fuse number 1 and 0x1b to fuse number 5:
updiprog.exe -c COM10 -d tiny81x -fw 1:0x04 5:0x1b

## UPDIlib and UPDIgui

UPDIlib is a dynamically linking library and API for working with the UPDInterface. As an example of using the library, UPDIgui is presented - a program written in Lazarus for changing fuses, writing, reading and verifying the memory of AVR devices.


# Copyrights and contributions

* [Pure-C utility for programming AVR devices with UPDI interface using a standard TTL serial port](https://github.com/Polarisru/updiprog)
* Copyright (c) 2023, Ilya Medvedkov
Loading