UNO R4, upload via USB works well but serial console output via USB not.
My problem could be that I use Windows 7 Home (and IDE 2.1.0) The issue is already known and described here. https://github.com/arduino/docs-content/issues/1465
Solution shall be:
@JwX000 for some reason your machine is enumerating the Minima as USB\VID_2341&PID_0069&MI_00
while the driver looks for USB\VID_2341&PID_0069&MI_02 (which works on Win10+) .
Probably forcing the driver (either via zadig or directly in windows) would work; in the meantime @per1234
I would mark Win7 as unsupported
My question: is there a workaround how to change in Windows 7 this USB\VID_2341&PID_0069&MI_00 to that USB\VID_2341&PID_0069&MI_02<
Sketch:
uint16_t test_value;
void setup() {
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(19200);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED_BUILTIN, HIGH);
delay(250);
digitalWrite(LED_BUILTIN, LOW);
delay(250);
Serial.print(test_value);
test_value++;
}
Unfortunately the description is so ambiguous as to render it impossible to follow. Perhaps it was a case where the reporter just tried a bunch of random things until something worked and didn't really know what it was they did that made it work (an experience I am all too personally familiar with ), and instead of just admitting that, they instead threw together a word salad of "mapping", "remapped", etc.
But anyway, I think it gave me enough of a lead to figure out what they actually did. I was able to fix the problem with the serial port of my UNO R4 Minima on the Windows 7 machine.
Please try this:
Start Zadig.
Select "CDC Port (Interface 0)" from the menu in the Zadig window.
Click the ▼ button in the driver selection field until it shows "USB Serial (CDC)".
Click the "Replace Driver" button.
An "Installing Driver" dialog will appear.
Wait for the "Installing Driver" dialog to close. You should now see a "Driver Installation: SUCCESS" message at the left side of the status bar at the bottom of the Zadig window.
Click the X icon at the top right corner of the Zadig window.
The window will close.
Now try using the serial port of your UNO R4 Minima board again, just as you did before. Hopefully this time everything will work as expected.
Thank you for reply. Unfortunately it was not working at my Windows 7 instance. I even tried to uninstall and install again the arduino-ide_2.1.0_Windows_64bit.msi. At least I am able to upload the sketch. There shall be another UART with pins at this board so I can use that one.
Please can you share your printscreen of Zadig after you did workaround above? What is the driver name and the USB ID last two digits.
Thank you for reply.
Sorry my fault, when I made the previous screenshot I did not roll the devices menu right.
In reality I followed your step 2 CDC Port (Interface 0) as described.
Below is the correct picture:
There are only 3 choices: Downgrade driver, Install WCID Driver, Extract Files (Don't Install)
So current driver is WinUSB(v10.0.0.0) Zadig offers downgrade to WinUSB(v6.1.7600.16385)
I see. So you actually have a different problem than the one reported at arduino/docs-content#1465, and the one I encountered on my Windows 7 machine. The problem reported at arduino/docs-content#1465 is that the driver installation fails. The instructions I provided were intended to work around that specific problem. But somehow the driver installation was successful on your machine. So we don't need to work to install the driver and so my instructions are irrelevant.
We instead need to focus on trying to solve the problem you are actually having. In order to do that, we need to have a clear understanding of what the problem is.
Please provide a detailed description of what you mean by this in a reply on this forum thread, including:
What did you do?
What were the results you expected from doing that thing?
What were the results you observed that did not match your expectations?
Make sure to include the full and exact text of any error or warning messages you might have encountered.
Thank you for reply.
I am able to run Arduino IDE 2.1.0 on my PC windows 7 home premium without problems.
The UNO R4 Minima is detected as port COM26 when connected by micro-usb cable.
I can see this COM26 port in Arduino IDE and I can upload the Sketch however UNO R4 serial port is not listed in HTerm terminal available ports.
There is only COM1 available in HTerm. Also the Arduino IDE built-in terminal cannot detect the UNO R4 serial port as well.
Port monitor error: EOF. Could not connect to COM26 serial port.
I noticed the latest Arduino IDE is 2.3.2 which requires W10 and above. I have another PC with W10 I will try later on there.
I did another trial on Windows 7.
I replaced the whole Windows 7 partition on PC by "fresh" backup image (by Clonezzila)
I installed Arduino IDE v2.1.0 + UNO R4 minima board from Boards Manager
Still similar result, I can upload but cannot see the Serial.println() output because of the USB/Serial port is not accessible in Windows.
However I am happy with the upload capability over USB and as the serial port I can use Serial1, onboard-pins 2.54mm pitch and TTL/RS232 converter.
That's fine for my experimenting occasionally.