2021-07-30 12:38 AM
Hi, I'm completely new to MCU programming, and bought my very first unit stm32f103c8t6 from a local store. I read some glowing reviews about it and bought it as my first ever MCU because it was affordable. Boy am I regretting my decision now! :(
I can't even seem to get it connected with my PC. I'm using Windows 10 as I'm sure more than 75% of the world are. It seems there are no drivers for my OS. I tried the Windows 7 and Windows 8 drivers but they don't work.
When I plug in my stm32f103c8t6 with USB cable and micro USB port, it shows USB device is not recognized. There's clearly a driver missing.
I also bought a USB TTL adapter. I installed its drivers, and I connected using Vin, Gnd, Tx, Rx (A9, A10 pins) and tried to get it working. Used the Arduino IDE latest version like every instructional video says. The blink example seems to upload to the stm32f103c8t6 without issues, but the LED pc13 does not blink.
I tried searching everywhere for a solution, and all I found out is nothing. That's why I'm asking my question here. I don't want to buy anymore adapters or other physical items because my initial happiness about stm32f103c8t6 is already gone. What sort of a company doesn't develop drivers for Windows 10?? :(
I have a USB TTL (PL2303) adapter, several USB to micro USB cables, jumpers, breadboards, Resisters, Capacitors etc with me. I just want to try once more to somehow get my stm32f103c8t6 working, or just throw it away and buy an Arduino board.
So please let me know if there's a way to download some software, drivers, or connect my stm32f103c8t6 with the components I have somehow and get it working. I'm really not keeping high hopes here, so you can surprise me.
If it helps, here's the store link that I bought it from.
Solved! Go to Solution.
2021-07-30 10:59 AM
1) Sure, but with BOOT0=HIGH the USB should present as a viable device.
2) Not using Arduino IDE in this context, but thought that really want it's own loader installed
4 thru 6) yes, if your user code implements the LED blinking at a human discernible rate, it should run in the micro-controller when BOOT0=LOW
2021-07-30 04:09 AM
Welcome, @IGama.2, to the community!
Please don't give up, working with 32-bit MCUs is a little bit, but really just a tiny bit more complex than with 8-bit MCUs.
However, you bought what is called Blue Pill, hopefully with a real STM32F103 and not a fake one (many of them not being 100% compatible can be found on the market). Have you already found websites that introduce the Blue Pill board, like Electronicshub?
All what you need is the software environment, like the free of charge tools
Good luck!
/Peter
2021-07-30 05:16 AM
For the Blue Pill board to connect via USB you'd need to jumper BOOT0 High, or have USB Device software loaded into the device
For uploaded code to run BOOT0 needs to be Low
The cable also has to be viable, USB charging cables, lacking data wires will also not work.
ST sell the NUCLEO series boards, these are perhaps better suited to beginners, as they include a built-in debugger and contain authentic parts.
2021-07-30 08:22 AM
Hi, don't you understand my question? This has NOTHING to do with working 8 or 32 bit. It simply doesn't have a driver for the OS that 75% of the World uses. (Windows 10).
Are you positive that the said two programs will do anything? Because as it stands, the PC doesn't even recognize what's plugged into the USB. I want to double check before installing some useless software that can't be uninstalled properly.
2021-07-30 08:34 AM
Is that so? Thank you so much. So there is still some hope!!:see_no_evil_monkey:
See, I didn't know that. So even if I use a Serial TTL connection (Vin, Gnd, Tx, Rx), should I move the jumper to run? Can you please explain me if these steps are correct or wrong then?
Is this how it's supposed to be done then? Or should I just move the Boot0 when all the 4 TTL jumper cables are connected? (If I touch some pins accidentally, wouldn't it short circuit or damage the board somehow? The Boot0 jumper on the board requires a lot of pull to reposition.)
If you or someone knowledgeable can accurately mention the steps, it will be great help. I'll wait for a reply before trying because I really don't want to damage my board if I can get it working. :smiling_face_with_heart_eyes: It's perfect if I can use USB cable only but at this rate, even the TTL thing is sufficient for me. Thanks sooooooooo much in advance once again.
2021-07-30 08:41 AM
Got a bit of a chicken/egg situation here, an STM32 with no software on it isn't going to respond or do anything.
In Boot mode (BOOT0=HIGH/ONE) the System Loader should be a "STM32 BOOT LOADER" type USB device provided the cabling, wiring and powering of the board design permit.
Installing tools like STM32 Cube Programmer should on-board sufficient drivers for Windows to find and associate with the device.
When you plug the device in you should get Microsoft's Ding-**** type response indicating a device has been attached.
Do you get that? Does Device Manager report the presence of the device, or an unknown device?
If you get no kind of response that suggests more of a cabling or electrical issue at a board level.
You should seek support from your vendor.
2021-07-30 10:42 AM
No, it shows as a non identified USB device. I get the Ding but the notification says USB device is unknown.
If STM32 Cube gives drivers that's amazing. I'll of course try that if so, however can you confirm it?
Also, if you could, please let me know if the procedure steps to do it is correct? (Asking again since you haven't replied to that)
Is this how it's supposed to be done then? Or should I just move the Boot0 when all the 4 TTL jumper cables are connected? (If I touch some pins accidentally, wouldn't it short circuit or damage the board somehow? The Boot0 jumper on the board requires a lot of pull to reposition.)
If you or someone knowledgeable can accurately mention the steps, it will be great help. I'll wait for a reply before trying because I really don't want to damage my board if I can get it working. :smiling_face_with_heart_eyes: It's perfect if I can use USB cable only but at this rate, even the TTL thing is sufficient for me. Thanks sooooooooo much in advance once again.
2021-07-30 10:59 AM
1) Sure, but with BOOT0=HIGH the USB should present as a viable device.
2) Not using Arduino IDE in this context, but thought that really want it's own loader installed
4 thru 6) yes, if your user code implements the LED blinking at a human discernible rate, it should run in the micro-controller when BOOT0=LOW
2021-07-30 11:31 AM
Oh my god it worked. :smiling_face_with_heart_eyes:
@Community member Wish I could kiss you right now. I had all hope lost, now I can finally start believing.
Thank you a billion billion times. May everything you ever dream come true!!�?��?�?��?�?��?�?��?�?��?�?��?�?��?�?��?
2022-01-22 08:25 AM
Hey IGama
I am also facing the same problem , my STM32F1038t6 is not connecting to win10
computer,I did try with 32cubeprogrammer, vsc but nothing is working. In my STM
103c8t6 does not have any jumper.Please help. Thanks lot.