Open QuinTeknoLife opened 4 years ago
Hi, I don't have a Teensy of my own, so I'll be unable to test. The most probably thing I can imagine is that the Teensy side is the one that formats the string in a way that doesn't work in the same way as for the arduinos. Maybe try this, change line 126 of uno2iec.ino to:
sprintf_P(tempBuffer, connectionString, unsigned(CURRENT_UNO2IEC_PROTOCOL_VERSION));
Please try that and see what happens.
I have tried the change of code you suggested, but it did not cause for any changes in behavior and still gives the same message.
The string that the teensy is putting out apparently is this one connect_arduino:2
So I tried to manually hard-set the protocol ver in QtStudio/mainwindow to 2, resulting in a connected arduino but a bunch of ATNCMD IEC_ERRORs which stop when I touch any of the io pins (or when i shove a female 1pin header-cable on any pin) on the teensy :S would these stop when hooked up to a c64? :p
@QuinTeknoLife @Larswad I got this working yesterday on a Teensy 2.0 that I used as a cheap ZoomFloppy before. Might be easily portable to the Teensy 2.0++. I had several timing issues, because the internal serial/USB connection is really fast and always at 12MB/s speed, more info on the teensyduino page. I had to insert several while loops that wait for data in the read buffer.
Also I had issues with \r
line endings on Linux, I had to replace them with \n
.
All changes including hex file for Teensy 2.0 is in #24.
So since i had a teensy2.0++ just laying around and teensy boards apparently run arduino code I decided to give this a shot. Compiling everything went fine and the board accepted the code perfectly but during runtime I get a protocol ver mismatch (apparently the board sends 0 but the program expects 2).
Is there any way to get this program to work with teensy?