bperrybap / usbasp Goto Github PK
View Code? Open in Web Editor NEWThis project forked from petervh/usbasp
My repo for experimenting with the usbasp firmware from www.fischl.de
This project forked from petervh/usbasp
My repo for experimenting with the usbasp firmware from www.fischl.de
Hello,
I used your 1.06 alpha on a usbasp clone some years ago, now i bought a new one like this: https://it.aliexpress.com/item/1pcs-FREE-SHIPPING-ST-Link-V2-stlink-mini-STM8STM32-STLINK-simulator-download-programming-With-Cover/32442061903.html
i see from https://github.com/bperrybap/usbasp/network that a few user gone forward with your code, do you suggest to still using the alpha 1.06?
Short story, I have not investigated far, ATTiny5
Writing flash with TPI on 1.06a firmware (prebuilt binary) doesn't actually appear to modify the flash,
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e8f09 (probably t5)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "/tmp/arduino_build_514273/Blink.ino.hex"
avrdude: writing flash (242 bytes):
Writing | ################################################## | 100% 0.32s
avrdude: 242 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino_build_514273/Blink.ino.hex:
avrdude: load data flash data from input file /tmp/arduino_build_514273/Blink.ino.hex:
avrdude: input file /tmp/arduino_build_514273/Blink.ino.hex contains 242 bytes
avrdude: reading on-chip flash data:
An error occurred while uploading the sketch
Reading | ################################################## | 100% 0.10s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x00ba
0x43 != 0x47
avrdude: verification error; content mismatch
avrdude done. Thank you.
The existing firmware on the target is unmodified (evidenced by the behaviour of the target being that specified by the previous flash contents) indicating that even though it said it wrote flash, it didn't, and hence the verification error.
Usnig the current fischl firmware it works fine.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e8f09 (probably t5)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "/tmp/arduino_build_514273/Blink.ino.hex"
avrdude: writing flash (242 bytes):
Writing | ################################################## | 100% 0.91s
avrdude: 242 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino_build_514273/Blink.ino.hex:
avrdude: load data flash data from input file /tmp/arduino_build_514273/Blink.ino.hex:
avrdude: input file /tmp/arduino_build_514273/Blink.ino.hex contains 242 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.10s
avrdude: verifying ...
avrdude: 242 bytes of flash verified
Now, beware when testing, the verification in 1.06a firmware DOES work, so if you successfully write the flash with the fischl firmware, then try to write the same flash contents using the 1.06a firmware, it will look like it all worked fine, but it didn't, it still didn't write the flash it just passes verification because it was already written previously. So in other words, every time you do a test, make sure your flash content you are testing with is unique.
hi @bperrybap and @PeterVH
based on the above schematics of the cheap usbasp
looks like that there are some extra pin connected to the 10-pin connector. It would be useful to have one of these pins output a clock source (1mhz, 8mhz or 16mhz). Adafruit and Nick Gammon did the same in Arduino as ISP, please have a look: https://forum.arduino.cc/index.php?topic=112442.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.