fpoussin / QStlink2

Cross-platform STLink v2 GUI
Other
187 stars 72 forks source link

STM32L0 discovery board, STLinkv2 not found #43

Open rajesh0therascal opened 6 years ago

rajesh0therascal commented 6 years ago

I am getting this error when i try to connect my STM32L0 discovery board

Log: Searching Device... ST Link V2 / Nucleo not found or unable to access it. Did you install the udev rules ? USB error: -2

Using Ubuntu 16.04. installed using PPA. and this is first installation

After 1 hour: some changes in stlink.rules it started giving a different error

Searching Device... ST Link V2 / Nucleo found! Fetching version... Changing mode to SWD... Fetching mode... Mode: Debug Fetching status... Status: Core Halted Fetching MCU Info... Device not found in database! Disconnecting... Disconnected.

Error log in terminal

6801 - Info: "Searching Device..." 6801 - Info: Cannot open device 6826 - Info: "ST Link V2 / Nucleo found!" 6826 - Info: "Fetching version..." 6826 - Info: "Changing mode to SWD..." 6927 - Info: "Fetching mode..." 6927 - Info: "Mode: Debug" 6927 - Info: "Fetching status..." 6929 - Info: "Status: Core Halted" 6929 - Info: "Fetching MCU Info..." 6929 - Info: CoreID: BC11477 7230 - Info: libusb_bulk_transfer Error reading: -7 7230 - Info: LIBUSB_ERROR_TIMEOUT 7530 - Info: libusb_bulk_transfer Error Writing: -7 7530 - Info: LIBUSB_ERROR_TIMEOUT 7530 - Error: In qint32 stlinkv2::sendCommand(const QByteArray&), at src/stlinkv2.cpp:671 7997 - Info: libusb_bulk_transfer Error reading: -7 7997 - Info: LIBUSB_ERROR_TIMEOUT 7997 - Info: CM0+ Searching at 40015800 7997 - Info: ChipID: 0x081 7997 - Error: Did not find chipID! 7997 - Info: "Device not found in database!" 7997 - Error: Device not found in database! 7997 - Info: "Disconnecting..." 7998 - Info: "Disconnected."

Pls help.

fpoussin commented 6 years ago

Hi,

You need the chip id to add it to the devices.xml file.

jiapei100 commented 6 years ago

Same problem here. I'm using Nucleo-F767ZI . It seems Nucleo-F767ZI is NOT supported by QStlink2 yet?

35 Device descriptions loaded. Searching Device... ST Link V2 / Nucleo found! Fetching version... Fetching mode... Mode: Debug Changing mode to SWD... Fetching mode... Mode: Debug Fetching status... Status: Core Running Fetching MCU Info... Device not found in database! Disconnecting... Disconnected.

Cheers Pei