Skip to content

Driver issue running under Windows #1

Description

@databeredning

Hi,

I'm seeing a Windows-specific issue with the following setup:

Firmware: commit 61f94b6 (main, tag 2026080504)
ESP-IDF: v6.0.3
Hardware: Waveshare ESP32-S3-RS485-CAN

Under Linux, everything works as expected. The device is recognized and both CAN transmit and receive work correctly using SocketCAN (candump, cansend, etc.).

Under Windows, the device appears in Device Manager with an exclamation mark and fails to start:

This device cannot start. (Code 10)

I'm using the latest PEAK Windows driver, 5.1.3.20113.

Device Manager reports:

Service: PCAN_USB
Problem: 0xA
Problem Status: 0xC0000001

I reproduced the same Code 10 failure on two separate Windows machines. The second machine had never previously used this ESP32-S3 device and had a fresh installation of the PEAK drivers.

I also verified the Windows/PEAK setup using a genuine PEAK PCAN-USB adapter, which works correctly.

So, at this point:

  • ESP32-S3 device + Linux/SocketCAN → works, TX and RX
  • Genuine PCAN-USB + Windows/PEAK driver → works
  • ESP32-S3 device + Windows/PEAK driver → Code 10 on two Windows machines

This seems to point toward a compatibility issue between the ESP32-S3 PCAN-USB implementation and the Windows PCAN_USB driver, possibly during USB/device initialization.

Is the current PEAK Windows driver expected to work with this firmware? If so, is there a known requirement regarding USB descriptors, firmware/device identification, or initialization that differs from the Linux driver?

I'm happy to help investigate and test any changes, collect logs, USB traces, etc. My experience with the internals of Windows device drivers is fairly limited, though, so I may need some guidance on what information would be most useful.

Really appreciate your work on this project!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions