Open mironovdm opened 6 years ago
As far as I remember sent bytes should always show up in the input buffer since the CP210x rx pin sees everything sent on the tx pin.
I've used a tiny84 successfully, I would guess that the 84 and 44 share the same dwire implementation.
If you want to try further, I suggest testing basic programming functionality with the tiny44 entirely out of circuit, just rst/dwire, gnd and vcc connected to the CP210x with very short, separated, wires.
-- Dave.
I forgot to mention that for ATTiny44a I have used CH340. CP210x works only with ATTiny13A, but for tiny44a there is such output:
Unconnected. > device com4
Debug: devicename 'com', n 4.
Debug. DwFindPort(s, 4, 0)
-- ConnectSerialPort entry. SPort: kind s, index 4, character -1, baud -1, handle $0, portname COM4.
COM4 ...................................... -- TryConnectSerialPort complete. SPort: kind s, index 4, character -1, baud 7224, handle $264, portname COM4.
-- ConnectSerialPort complete. SPort: kind s, index 4, character -1, baud 7224, handle $264, portname COM4.
SerialRead expected 2 bytes, received 1 bytes
00
0000: 0006 nop > reset
Didn't receive 0x55 on reconnection, got 00.
Clock speed may have changed, trying to re-sync.
...................................... -- TryConnectSerialPort complete. SPort: kind s, index 4, character -1, baud 7224, handle $2ec, portname COM4.
^C
Programming for tiny44a with CH340 works fine:
Unconnected. > device com3
Debug: devicename 'com', n 3.
Debug. DwFindPort(s, 3, 0)
-- ConnectSerialPort entry. SPort: kind s, index 3, character -1, baud 0, handle $0, portname COM3.
COM3 ............. -- TryConnectSerialPort complete. SPort: kind s, index 3, character -1, baud 7826, handle $210, portname COM3.
-- ConnectSerialPort complete. SPort: kind s, index 3, character -1, baud 7826, handle $210, portname COM3.
Connected to ATtiny44 on COM3 at 7826 baud.
0036: bf85 out $35, r24 > l
Loading 312 flash bytes from ELF text segment 0 to addresses $0 through $137.
0000: c010 rjmp 0022 (+17) >
Works fine with ATTiny13A and CP210x. But doesn't work with ATTiny44A, because when tried to connect I got this message:
So we see that device responds with its signature 9207 but there is no sended 0xF3 byte in receiving buffer wich dwdebug tryes to read. I tried to disable reading sended bytes in function SerialSendBytes() in Serial.c and modified it to:
And now dwdebug see the avr: