I've been playing around with an ATTiny13A, and I finally got a blink code working on it. I had to use my Arduino uno clone, as an ISP. That took longer than it should have, since I tried using the ICSP header, but what should be the reset pin, on some boards, isn't on this one.
So anyways I know some AVRdude stuff is working on my PC. But so now I'm wondering why AVRdude/dudess gives errors, when I've tried using Bus Pirate in SPI mode to talk to the ATTiny13A. I know the tiny doesn't have full SPI, but they call it that in the datasheet. And I'm connecting the BusP ChipSelect pin to the reset of the tiny.
For the Bus Pirate, it's version v3.6, v3b , firmware v5.10, bootloader v4.4. I'm pretty sure it's USB drivers and all that work fine in win10, using Putty terminal, today anyways. It's com port is set for 115,200 , 8n1n.
In the BP SPI mode, I choose default clock polarity and phase, I've tried 30kHz, 125kHz as the speed, and open drains, and I have the pull-up's enabled, and a jumper connecting the Vpullup to Vcc.
I used the Bus Pirate's UART for some STM32 stuff, and I seem to remember entering some UART-bridgemode, then exiting the terminal. Is there anything like that I'm supposed to do for SPI ?? Because the main AVRdude error I get is that it can't connect to my COM port.
I've tried to get the latest versions of these, but IDK. I've installed WinAVR, AVRdudess 2.17(AVRdude v7.3), and tried AVRdude v8.0. But in powershell it says it AVRdude v5.10 so IDK.
But anyways in AVRdudess, with the correct COM port, Brate, and ATTiny13A chosen, if I hit detect MCU, no matter what programmer I choose, like
The Bus Pirate
The Bus Pirate(bitbang.....)
Atmel STk500 v1
ft232r
I always get
avrdude error: unable to open port COM7 for programmer buspirate
A possible candidate serial port is:
-P COM7 or -P ft232r
AVRdude in powershell says about the same thing.
Well now that I got the ArduinoISP to work, I know the fuse bits and basic config are set, and AVRdude works (at least some copy on my PC, maybe just in the Arduino folders??) , and so does the chip. But when I try the BP over SPI mode, I still get nothing fr4om AVRdude, just trying to detect the ATtiny.
I did try a few different Baudrates, changing it in device manager and Putty. 9600 gave me problems with the terminal, not responding at all.
But now for sure the ATtiny main internal clock is set to 9.6MHz, so 115,200Br should be ok. But I read the intenal osc is not that great, and my chip could also be a fake, so I should try some other Brates.