Skip to main content
Robmar
Senior II
February 1, 2023
Question

STM32F4 Discovery board fails to connect as a standard mouse when connected to a PC

  • February 1, 2023
  • 2 replies
  • 4708 views

The STM32F4 Discovery board docs state that "When connected to a PC with a second USB Type-A to USB Type-C to Micro-B cable through CN5, the board is recognized as a standard mouse".

This is confusing, Type-A to Type-C to Micro-B, what can that mean?

Anyway, I connected the IDE interface USB CN1 to the PC, and I connect the CN5 micro-USB to the same PC, and it does not detect it as a mouse. The board has not been reprogrammed, its out of the box.

Any ideas how to resolve this issue?

This topic has been closed for replies.

2 replies

Robmar
RobmarAuthor
Senior II
February 7, 2023

Hello STM, is there anybody out there?

Peter BENSCH
Technical Moderator
February 17, 2023

I just stumbled across your question and can answer it as follows: depending on the production date, the original binary contains a version from the folder Demonstrations of the STM32F4 firmware for STM32F4 discovery.

When the board is plugged in, the four LEDs should show different light patterns (eight times in turn, then eight times all at the same time) while the board waits for the blue user button to be pressed. As soon as it is pressed, the board should act as a mouse and the mouse pointer should be controllable by tilting the board; in addition, the direction of movement of the "mouse" is signalled by flashing LEDs.

This is also described in the file readme.txt, which can be found in the corresponding repository, either in your local or online repository folder.

Hope that answers your question?

Good luck!

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Robmar
RobmarAuthor
Senior II
February 17, 2023

Thanks Peter, appreciated, I'll give that a try, for sure it will work now!

waclawek.jan
Super User
February 23, 2023

> When the board is plugged in, the four LEDs should show different light patterns (eight times in turn, then eight times all at the same time)

Robmar, does it?

JW

Robmar
RobmarAuthor
Senior II
February 23, 2023

Yes indeed, Windows 10 also detects the board is plugged in to the USB, tilting the board does illuminate the leds as it tilts, but the mouse does not move.

I have tried this on two new STM32F407VG Discovery boards out of the package, neither move the mouse.

External USB mouse with the laptop does work, so it looks like something is wrong with the STM code...

Peter BENSCH
Technical Moderator
February 23, 2023

If the code would be faulty, it would not work on all my MB997B.

The mouse function only takes effect when you press the blue button once while the LEDs are flashing. When you press the blue button again, the game starts all over again.

Are you sure you pressed the blue button once?

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.