cancel
Showing results for 
Search instead for 
Did you mean: 

USB device example

maac
Visitor

Hello everyone,

I have an stm32f303cbt6 design (see image below) connected to an hub(USB2533) and an adum for isolation, i'm trying to run a USB device CDC example by creating a new project in the Stm32CubeIDE using device tool configuration.

 

I selected :

- RTC : HSE Bypass clock source (24Mhz)

- SYS : Serial wire debug 

- USB : fs device

- Middleware : USB device CDC

 

When i build and i compil to my board, windows doesn't recognise it, can you help me with that ?

(i tried also to put the connect_usb pin to 3.3 V, i got same thing)

 

Thanks.

 

maac_2-1731596831334.png

 

 

6 REPLIES 6
Andrew Neil
Evangelist III

@maac wrote:

windows doesn't recognise it,


Does it not see it at all? give an error? other?

gbm
Lead III

Too little information give for a reasonable help, but maybe you should start by increasing the default stack and heap sizes to twice the value.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

I don't have windows message.
I got this in USBTree (the hub has 3 downstream), it seems like the hub is detected but not the device (stm32).

maac_1-1731601411898.png

 

I gave informations as possible as i know, you can ask for information so i can put it.

The default configuration seems to make the USB detected at least, i don't undrestand what do you mean by increasing.


@maac wrote:

it seems like the hub is detected but not the device (stm32).


Is the device detected without the Hub ?

If you don't get any messages, and nothing appears in Device Manager, then the PC is not even seeing that anything has been plugged it.

Are you sure that you are using a good data cable - not just a charging cable?


@maac wrote:

i don't understand what do you mean by increasing.


"increasing" = "making bigger/larger"

ie, Whatever size your Heap and Stack currently are, trying making them twice that size.