int incomingByte = 0; // for incoming serial data
void setup() {
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
}
void loop() {
if (Serial.available() > 0) {
incomingByte = Serial.read();
Serial.print((char)incomingByte);
}
}
Serial.available()
because the return value is always 0, which means no data is available on the serial line.
In this file, it looks like we encounter the following line, and apparently the running core never gets the character. At least it's how I understand it.
if (epstate->ueintx.rxouti) {
return AVR_IOCTL_USB_NAK;
}
Any ideas ? Does this sound it comes from my core definitions ? From something else ?
On a side note, the vhci kernel module and library from the git repos mentioned in the USB readme of simavr seem to compile and run without the need for the provided patches.
Hello list,
I'm trying to get simavr to work with the ATmega32u4 which uses a USB serial.