ItsyBitsy nRF52840 Express Serial.begin() hang on Windows 10

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ispybadguys
 
Posts: 8
Joined: Sun Mar 19, 2023 11:44 pm

ItsyBitsy nRF52840 Express Serial.begin() hang on Windows 10

Post by ispybadguys »

I wrote a program on a ItsyBitsy nRF52840 Express using a MacBook. I ran the program and even connected to a Windows 10 Parallels VM running on the mac.
I moved the ItsyBitsy to a Windows 10 machine and the code hangs at Serial.begin(). Here is the code:

Code: Select all

    Serial.begin(57600);                                                           // Initialize serial port I/O.
    while (!Serial)                                                                // Wait for serial port to connect. Required for native USB!
    {
      digitalWrite(PIN_LED1,!digitalRead(PIN_LED1));                               // Blink while waiting
      delay(20);
    }
I see the COM port appear on the Windows machine but it can't communicate. I looked for a different driver but cannot find one.

Thanks
Kurt

User avatar
dastels
 
Posts: 15660
Joined: Tue Oct 20, 2015 3:22 pm

Re: ItsyBitsy nRF52840 Express Serial.begin() hang on Windows 10

Post by dastels »

Do you have a terminal app running and trying to talk to the board? I have no idea about windows but it's might be worth trying that.

Dave

User avatar
ispybadguys
 
Posts: 8
Joined: Sun Mar 19, 2023 11:44 pm

Re: ItsyBitsy nRF52840 Express Serial.begin() hang on Windows 10

Post by ispybadguys »

I verified that COM24 is created when I connect the ItsyBitsy but opening a terminal does not change anything however if I double click the reset the device reconnects and Windows opens the disk drive on the ItsyBitsy.

Kurt

User avatar
dastels
 
Posts: 15660
Joined: Tue Oct 20, 2015 3:22 pm

Re: ItsyBitsy nRF52840 Express Serial.begin() hang on Windows 10

Post by dastels »

Yes, double click put the board into bootloader mode. There isn't a drive mounted unless your C++ sketch does it, or you have CircuitPython running on the board.

Dave

User avatar
ispybadguys
 
Posts: 8
Joined: Sun Mar 19, 2023 11:44 pm

Re: ItsyBitsy nRF52840 Express Serial.begin() hang on Windows 10

Post by ispybadguys »

Does anybody have this problem that they can't user the Serial on a Windows Machine? I have a hard time believing that is true. So what is wrong with my Windows system configuration?

Kurt

User avatar
dastels
 
Posts: 15660
Joined: Tue Oct 20, 2015 3:22 pm

Re: ItsyBitsy nRF52840 Express Serial.begin() hang on Windows 10

Post by dastels »

Is your terminal app set to 57600 baud like your Serial initialization?

Dave

User avatar
ispybadguys
 
Posts: 8
Joined: Sun Mar 19, 2023 11:44 pm

Re: ItsyBitsy nRF52840 Express Serial.begin() hang on Windows 10

Post by ispybadguys »

It looks like I was actually wrong. I used the wrong COM port or something because it is working now when I open the device with the IDE serial.

Thanks

Kurt

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”