« PreviousPages: 1 [2]
Sedj | Posted: 20 Mar 2024, 02:35 AM |
---|---|
Member Posts: 16 Joined: 29-June 22 |
So I'm finally getting around to fixing my clock and I was looking for a bit more instruction on setting up my usbasp to load to the tiny I looked through a few guides and there just seem to be a bunch of steps for using arduinos instead of the usbasp. :) round 2 on fixing the clock cuz I have time :) ------------- |
[top] | |
Sedj | Posted: 21 Mar 2024, 01:19 AM |
Member Posts: 16 Joined: 29-June 22 |
So ive looked into it a bit more and see endless guides for programming tiny85s so im kinda treating the 4313 like a 85 and trying to program it according to the 85s pinout and i just keep getting failed chip erase error Clock is set to 8MHz. programmer is usbasp and i changed it to lilusbk ------------- |
[top] | |
mit | Posted: 21 Mar 2024, 10:28 AM |
yeah whatever Admin Posts: 566 Joined: 4-May 16 |
You say clock is set to 8MHz, that means you set the fuse bytes already? What was the output of the previous avrdude command I posted? The tiny85 and tiny2313 have the same programming protocol, the wiring should match the pictures and diagram on the "changing the timezone" section of the assembly instructions though. If you post the actual output of the error messages I might be able to help more. ------------- |
[top] | |
Sedj | Posted: 25 Mar 2024, 02:45 AM |
Member Posts: 16 Joined: 29-June 22 |
So I have not set the fuse bytes yet and i'm just getting a programmer is required for upload when I run the AVR command and also I have a attiny4313 which I don't think matters looking at the pinouts Last edit by Sedj at 25 Mar 2024, 02:46 AM ------------- |
[top] | |
mit | Posted: 25 Mar 2024, 10:46 AM |
yeah whatever Admin Posts: 566 Joined: 4-May 16 |
QUOTE
Could you post the actual output? It sounds like the the programmer is not installed correctly.i'm just getting a programmer is required for upload For instance if I run avrdude -c usbasp -p t4313without it plugged in, I get error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp' Is that what you're seeing? Whereas if the programmer is connected and working, but the part isn't responding, I get: error: program enable: target doesn't answer. 1 If you show the command you're running and the response you're getting I'm more likely to be able to help. ------------- |
[top] | |
Sedj | Posted: 31 Mar 2024, 02:53 AM |
Member Posts: 16 Joined: 29-June 22 |
When I try to upload the code: Sketch uses 286 bytes (6%) of program storage space. Maximum is 4096 bytes. Global variables use 9 bytes (3%) of dynamic memory, leaving 247 bytes for local variables. Maximum is 256 bytes. A programmer is required to upload When I try to burn bootloader: (Dont know if i even need to do this) avrdude: warning: cannot set sck period. please check for usbasp firmware update. avrdude: Expected signature for ATtiny44 is 1E 92 07 Double check chip, or use -F to override this check. Failed chip erase: uploading error: exit status 1 ------------- |
[top] | |
mit | Posted: 1 Apr 2024, 02:12 PM |
yeah whatever Admin Posts: 566 Joined: 4-May 16 |
It sounds like you're trying to do something with Arduino? There is no Arduino involved with the clock. It shouldn't be compiling a sketch and you definitely don't want to burn a bootloader. You just want to configure the fuse bytes on the ATtiny and flash the hex file. Can you try running avrdude from the command line? ------------- |
[top] | |
Sedj | Posted: 1 Apr 2024, 11:51 PM |
Member Posts: 16 Joined: 29-June 22 |
Ok well that makes more sense when I run the AVRDUDE command in command prompt (windows) it says its not a command obviously so ill need to setup a linux machine :| ------------- |
[top] | |
mit | Posted: 2 Apr 2024, 09:33 AM |
yeah whatever Admin Posts: 566 Joined: 4-May 16 |
Oh I use it on windows all the time. Just navigate to the folder where avrdude.exe is and Shift + right click, then "open command prompt here". Then run the commands with .exe:avrdude.exe -c usbasp -p t4313 If the only option is "open powershell here" (depends on windows version I think?) then click that and type cmd to make it an old fashioned windows command prompt. ------------- |
[top] | |
Sedj | Posted: 21 Nov 2024, 03:00 AM |
Member Posts: 16 Joined: 29-June 22 |
Finally flashed the tiny and popped it back in and not I'm stuck with this? also it gets stuck and just repeats the same thing 2.10-17. Last edit by Sedj at 21 Nov 2024, 03:10 AM ------------- |
[top] | |
mit | Posted: 22 Nov 2024, 08:29 AM |
yeah whatever Admin Posts: 566 Joined: 4-May 16 |
I think you're going to have to explain more if you want me to help, did you follow the instructions I gave you? Did you set the fuse bytes on the attiny? Any error messages? If you want I could just post you a new ATtiny chip flashed correctly. ------------- |
[top] | |
Sedj | Posted: 22 Nov 2024, 10:32 PM |
Member Posts: 16 Joined: 29-June 22 |
Here is what i did. The first part i have t2313 in there dont know if that is correct. C:\Users\hdame\Downloads\avrdude-v8.0-windows-x64>avrdude -c USBASP -p t2313 -B2000 -U lfuse:w:0xe4:m Set SCK frequency to 500 Hz Error: cannot set sck period; please check for usbasp firmware update Device signature = 1E 92 0D (ATtiny4313) Error: expected signature for ATtiny2313 is 1E 91 0A - double check chip or use -F to carry on regardless Avrdude done. Thank you. C:\Users\hdame\Downloads\avrdude-v8.0-windows-x64>avrdude -c USBASP -p t4313 -U flash:w:us_eastern.hex:i Error: cannot set sck period; please check for usbasp firmware update Error: cannot set sck period; please check for usbasp firmware update Reading 1678 bytes for flash from input file us_eastern.hex Writing 1678 bytes to flash Writing | ################################################## | 100% 1.24 s Reading | ################################################## | 100% 0.93 s 1678 bytes of flash verified Last edit by Sedj at 22 Nov 2024, 10:35 PM ------------- |
[top] | |
Sedj | Posted: 22 Nov 2024, 10:37 PM |
Member Posts: 16 Joined: 29-June 22 |
Hey its all working properly now. I changed the t2313 to match the tiny im using (t4313) and its good to go. Here is the output from that. C:\Users\hdame\Downloads\avrdude-v8.0-windows-x64>avrdude -c USBASP -p t4313 -B2000 -U lfuse:w:0xe4:m Set SCK frequency to 500 Hz Error: cannot set sck period; please check for usbasp firmware update Reading 1 byte for lfuse from input file 0xe4 Writing 1 byte (0xE4) to lfuse, 1 byte written, 1 verified Avrdude done. Thank you. C:\Users\hdame\Downloads\avrdude-v8.0-windows-x64>avrdude -c USBASP -p t4313 -U flash:w:us_eastern.hex:i Error: cannot set sck period; please check for usbasp firmware update Error: cannot set sck period; please check for usbasp firmware update Reading 1678 bytes for flash from input file us_eastern.hex Writing 1678 bytes to flash Writing | ################################################## | 100% 1.24 s Reading | ################################################## | 100% 0.93 s 1678 bytes of flash verified Avrdude done. Thank you. ------------- |
[top] | |
« PreviousPages: 1 [2]
Sign in to post a reply.