2017-07-18 02:12 PM
Hello i'm using CUBE 4.22 and i keep getting a conflict (see jpg bellow). when i click the checkbox USB->Device (FS), the TIM1 says ''!'' and shows several conflicts. and when i click on the Clock Configuration tab, the clock screen appears and i see a dialog box that says ''do you want to run the automatic clock issues solver?''. i click ''yes'' and then it says ''cannot find solution for some constraints''.
is there a way to resolve this problem? thanx
Note: this post was migrated and contained many threaded conversations, some content may be missing.2017-07-19 03:15 AM
Hi !
You didn't choose the right sub-family to have the crystal-less USB. Take a look there
http://www.st.com/en/microcontrollers/stm32f0-series.html?querycriteria=productId=SS1574
Only F0x2 and F0x8 have this mode.
Also on the nucleo you can have the clock coming from the ST-Link part, so you might have not noticed that you were using an external clock.
2017-07-19 03:19 PM
well thanx for that but this is seriously messed up.
http://www.st.com/en/microcontrollers/stm32f0-series.html?querycriteria=productId=SS1574
page does say that the 070 chips do NOT have a ''crystal-less'' USB. but page says that they DO. the says that ''the clock source must use an HSE crystal oscillator'' but no the NUCLEO-F070RB does NOT have a crystal. here (see below) are the parts from the that illustrate the hardware:in the image you can see crystal X1 connected only to the STLINK interface, you can see crystal X2 which is 32kHz, and you can see crystal X3 which is SUPPOSED to be connected to the 70RB chip according to the schematic, but it is clearly absent on the board itself. and yes i checked and that's what my board looks like. there is no crystal X3. the board is MADE by ST, and i did have a working USB connection on it, so i still dunno what to think. either the ST people need to proofread their docs, or there just isn't a definitive answer to this question. the circuit i'm making uses a 500kHz PWM and i have to be certain that the USB signals will have enough fidelity to work.
stm32f070f6 no crystal ambiguity contradictory docs documentation timing
2017-07-19 03:44 PM
As Kraal suggested, your Nucleo board is likely using the MCO (Master Clock Output) from the ST-Link. Although the F07 is not using the crystal directly, it's essentially the same as the 8 MHz crystal clock.
You should be able to put an oscilloscope probe on 'U5B pin 5' or the SB50 bridge and see an 8 MHz clock.
2017-07-19 04:26 PM
OK thanx i found what you're talking about. yes there is an MCO signal going to the 70RB chip. so it does have an external clock pulse. i been misled because of implications that i never tried to verify. the X3 is missing because it's an option in case i separate the STLINK from the uC. still,
page says that they 'recently added crystal-less USB' to the STM32F0x0 Value line.that sucks because my PCB is really small, n now i gotta add three more components. and the crystal is a big-ass part. damn....
2017-07-19 04:44 PM
I can appreciate the negative surprise. Did you check to see if the similar parts with 'crystal-less USB' Kraal suggested may work, for example, STM32F072 [48 pin package, however] or STM32F042?
2017-07-19 06:26 PM
yeah that's a thought. it ***** having to figure this **** when i'm almost done with the whole development. the 42 chips are considerably more expensive. but if i have to pay for a crystal then maybe i should go with that. now i gotta go back and refigure a whole lotta stuff.....
2017-07-20 12:24 AM
well i got the LED to blink so it is running properly. but it ***** because i am gonna have to get a crystal. or change to a 042 chip. OH THE HUMANITY.....
2017-07-20 03:20 AM
I cant imagine that USB HS (480Mbit/s) can ever work without a crystal. You may get USB FS (12Mbit/s) working without a crystal but I never even tried because it really sounds like an invite for production problems to me.
Try something like this crystal if you have PCB problems: ABM3B-8.000MHZ-10-1-U-T (Abracon LCC)
2017-07-20 05:29 AM
Since we are talking about an F0, USB HS was out of question from the start. However I have used almost successfully(*) the crystal-less mode with an F042 on a custom board (HID stuff, hobby grade). I agree with you that for a real product which will see a different temperature range and so on, I would go with a real crystal. The crystal ST choose for the Nucleo-32 board is quite small.
(*) Almost, because the enumeration process is taking 2 seconds where it should be negligible. After enumeration everything works as expected...
2017-07-20 01:01 PM
thanx i'll get one it looks like the smallest i can get. but i'm also looking at one of
http://www.digikey.com/scripts/DkSearch/dksus.dll?Detail&itemSeq=233671609&uq=636361512982254510
because it's a through hole and i can position it over the uC chip and save board space that way.