Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Problem with custom PCB board with STM32F407VGT6 + STM32F103CBT6 controllers

Simos421

Newbie level 6
Joined
Jan 26, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,370
Hi all, I made a PCB board with STM32F407VGT6 (MCU) + STM32F103CBT6 (Debugger). I get the message ''Usb device not recognizable'' when I try to connect it to my computer via USB. I include the pics of my schematic. I followed the schematic of STM32F407G-DISC1. Any idea on what went wrong with my schematic? (see attached pics)
 

Attachments


KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
17,465
Helped
3,945
Reputation
7,888
Reaction score
3,815
Trophy points
113
Activity points
115,787
Hi,

what is your clock setup?
Do you have the USB firmware running? Which device class, which setup?
Show your code.

There may be PCB layout problems.

Klaus
 

Simos421

Newbie level 6
Joined
Jan 26, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,370
Hello, I have no code or clock setup because I haven't been able to get my device recognized by my computer so that I could load something. When I try to connect it I get the message ''Usb device not recognizable'' in windows. So everything is on factory default. For the record i took measurements with a voltage meter in all the feed pins of both controllers and I read the correct voltages. This is the crystal type that I used ECS-080-18-23G-JGN-TR but I dont think it matters. I think that by default the internal crystal of each chip is used
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
17,465
Helped
3,945
Reputation
7,888
Reaction score
3,815
Trophy points
113
Activity points
115,787
Hi,

you can not run USB without firmware.
When a USB_Host recognizes a new USB_device, then one of the first things is that he "asks" the device "who are you?".
And the device needs to respond with "mouse", storage device", "audio device"...

****

Or do you want to run the STM Bootloader?
If so then read through the STM bootloader application notes on "USB_bootloader_requirements", like external clock, BOOTx pin settings...

Klaus
 

Simos421

Newbie level 6
Joined
Jan 26, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,370
I haven't loaded anything in STM32F103CBT6 because it is not recocnized by my computer. I will try and use the STM bootloader that Klaus mentioned and see what happens. The architecture of my custom PCB is similar to the STM32F407G-DISC1 so another thing I can try is to remove the dicovery jumper that takes out the STM32F103CBT6 debugger chip. Then I will plug via SWD an external STlink debugger that I have and see what happens. I will post an update here soon.
 

ZASto

Advanced Member level 3
Joined
Jan 9, 2008
Messages
701
Helped
140
Reputation
283
Reaction score
124
Trophy points
1,323
Location
Messy Corner, 44°47'31.56"N, 20°28'9.16"E
Activity points
4,690
If you have loaded nothing, then it will not be recognized by computer. You can program STM32F103CBT6 with STlink V2. The same programmer can be used to program STM32F407VGT6
 

Simos421

Newbie level 6
Joined
Jan 26, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,370
So I tried to bypass STM32F103CBT6. I used the STlink V2 to program the main controller STM32F407VGT6 via SWD and it works fine, this is good news.

ZASto I have no clue how to program STM32F103CBT6 as a debugger via STlink. I will google search it.

Thank you
 

Simos421

Newbie level 6
Joined
Jan 26, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,370
Hi all,

I found the solution for loading the ST link firmware to STM32F103CBT6. I downloaded the STM flash loader demo. I connected the Rx Tx pins of a usb to uart cable to the Tx Rx pins (pin 30, pin31) of STM32F103CBT6 and set the Boot0 pin to high (3.3V). I run the STM flash loader and uploaded the .hex file that can be found in ''Making your own ST-LINK V2 from STM32 Blue-Pill or STM32 Black-Pill'' that contains the firmware.

I can confirm that it works fine.

Thank you!
 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
14,190
Helped
4,685
Reputation
9,385
Reaction score
4,439
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
121,177
A general point: In cases like this it is useful to keep a copy of Linux around, maybe on a bootable USB stick or CD/DVD. The terminal command 'lsusb' will interrogate all devices on all USB buses in the system and show the descriptor table contents. It should work even if the target device firmware is missing as long as the USB interface is 'live'. I'm not aware of any Windows or IOS equivalent programs but then I don't use them!

Brian.
 

Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top