Installing the STM32 USB Bootloader, Easily! [SEE DESCRIPTION]

  Рет қаралды 261,935

Caleb Marting

Caleb Marting

6 жыл бұрын

I wasn’t able to easily find information on how to add USB bootloader support. I have compiled my findings and hopefully you will find this very useful.
PLEASE READ:
This video is now a year and a half old. I have a new version of the video here:
• How to Install the STM...
The dan drown stm32 link below that I used in the video is now old. There are multiple versions of the STM32 core now, this is the newest version, but may be incompatible with what is shown in the video. I am working on a new version of the video.
STM32 "Blue Pill" Discord, join for easy access to like-minded developers
/ discord
Add this to your Additional URLs under File/Preferences (OLD, BUT SHOULD STILL WORK):
dan.drown.org/stm32duino/packa...
Links:
Flash Loader:
goo.gl/e1mqwt
Drivers:
goo.gl/WB1TzB
Binaries:
goo.gl/kLJT21
Serial Adapter:
Amazon:
goo.gl/H9hdFb
Ebay:
goo.gl/aNzgew
Song:
Prototyperaptor - Awe Listen to the track here:
spoti.fi/2HwfxDh

Пікірлер: 484
@duprod5482
@duprod5482 5 жыл бұрын
I really like the detail of the LED blinking in sync with the music at the end.. :)
@CalebMarting
@CalebMarting 5 жыл бұрын
You are the first person to notice! You get a cookie
@PeterAbt
@PeterAbt 4 жыл бұрын
very satisfying led-music sync at the end! 🤩 and great, informative video btw, thank you!
@jlaroche0
@jlaroche0 6 жыл бұрын
Fantastic video! You're the man. So happy people are recognizing the utter awesomeness of the STM32!
@markcummings150
@markcummings150 Жыл бұрын
I’m just getting started with these devices, so this info is exactly what I need to get past the initial hurdles.
@SalarAzad
@SalarAzad 5 жыл бұрын
Great explanation Sir, that was very helpful. You should definitely do a series about the STM32 boards and development.
@MrBirinco
@MrBirinco 5 жыл бұрын
After bad (native usb port) experiences with Arduino SAMD21 MINI, I have decided to switch to STM32. I have ordered a couple different model of STM32 boards from China and was searching some sources to learn how to get it working with Arduino IDE. This is the best what I found so far... Now, I beleive that I am ready to work with STM32 boards when they arrive. You saved my days... Thanks a lot.
@baconocalypse
@baconocalypse 4 жыл бұрын
Thank you for explaining it without a lot of fanfare and jumping around. There's enough to keep track of figuring this stuff out without trying to follow a scattered video too. I knew I'd found something special at 0:22
@UpcycleElectronics
@UpcycleElectronics 4 жыл бұрын
Well done. This is the best and most complete explanation I've seen. I might actually dig a couple of these out of the back of a drawer and try them again.
@CalebMarting
@CalebMarting 4 жыл бұрын
I recently uploaded a new video about the HID bootloader for these. I would recommend that tutorial a little more. I'm not as proud of that video as I am if this one, but that bootloader works so much better when it's working right. Best of luck!
@kosa2004
@kosa2004 4 жыл бұрын
Thank you very much for this great and detailed video. I am using genuine /and fake/ STM32 blue pill boards for a time now. With your help my job just got better. You saved my life dude :) Thanks again!!
@CalebMarting
@CalebMarting 4 жыл бұрын
No problem! There is actually a new bootloader version and I'm working on a new video so stay tuned!
@RakshithPrakash
@RakshithPrakash 6 жыл бұрын
Wow this video is art, so precise and perfectly explained!!
@CalebMarting
@CalebMarting 6 жыл бұрын
Thank you!
@torresm8438
@torresm8438 5 жыл бұрын
This video saved me!!! I tried a hundred different things but with your help I was finally able to do it!! Thank you!!!!
@CalebMarting
@CalebMarting 5 жыл бұрын
I made it because it took a lot of experimenting to figure out how to do it. I documented it to save people the time. Thank you for watching!
@DeusExAstra
@DeusExAstra 5 жыл бұрын
Thanks for the video. I'm just getting started with this and after my initial research I decided to buy some stm32 boards. Never used any Arduinos, but these stm32s seemed much more capable and so cheap, I didnt see a reason to start with the actual Arduinos. Any more videos on this subject would be appreciated for us newbs. =)
@edwardarruda7215
@edwardarruda7215 6 жыл бұрын
Im a neophyte and had a difficult time trying to figure out what to do at the driver web pages. Figured it out and finally got it done. And it worked the first time.
@lahirupamodya6188
@lahirupamodya6188 5 жыл бұрын
great video! , Caleb Marting. I struggled a lot to install the USB bootloader a few months ago but I failed. I will differently try this tomorrow. Please do the mini-series on STM32. It would be a great resource for beginners. cheers !
@donpgibson
@donpgibson 6 жыл бұрын
Thank you for your clear explanation on how to do this. A real time saver!!!
@CalebMarting
@CalebMarting 6 жыл бұрын
No problem, I got upset at how hard it was to find this info so I made it easy for everyone else!
@johncherry108
@johncherry108 6 жыл бұрын
A little 'Windows-centric', unfortunately.
@CalebMarting
@CalebMarting 6 жыл бұрын
What system should I make a video for?
@AndrewGlasgow2020
@AndrewGlasgow2020 6 жыл бұрын
I use a MacBook Air Laptop or an iMac. I did not yet succeed in installing an FDTI driver on OSX ... ?
@ctjet99channel
@ctjet99channel 6 жыл бұрын
Andrew W Symons I don't know anything about Mac setup, check online for other types of drivers?
@robertcoyle1532
@robertcoyle1532 5 жыл бұрын
Nice job Caleb...straight to the point and no bullshit.
@WhatAmIGonnaGet
@WhatAmIGonnaGet 5 жыл бұрын
Yes more STM32 videos. I am learning this too, from standard 8-bit Arduino. I like the uarts and hardware interrupts, for projects like closed loop motor control with encoders.
@CalebMarting
@CalebMarting 5 жыл бұрын
Researching this topic now!
@accountdeactivated5486
@accountdeactivated5486 6 жыл бұрын
Absolutely perfect tutorial, exactly what I was looking for. Thank you! Btw there is a 5V pin on the STM32 Module
@ctjet99channel
@ctjet99channel 6 жыл бұрын
Ws2812B actually, most of the IO is five volt tolerant as well. You should be fine if you leave it on 5 volts but it's just better to be safe than sorry
@accountdeactivated5486
@accountdeactivated5486 6 жыл бұрын
It is safe, the 5V pin just goes to a LDO that regulates it to 3.3V
@seanocansey2956
@seanocansey2956 5 жыл бұрын
This vid is really well explained and easy to follow 👍🏾
@sadashivkamath
@sadashivkamath 5 жыл бұрын
Great Video and well presented...! Quite informative & crisp..!!
@jean-marclugrin1902
@jean-marclugrin1902 6 жыл бұрын
Very well done, thanks. I wish it existed two months ago when I had to painfully find it by myself. But now with this video I am at last able to reproduce it 😀
@reinermunch5159
@reinermunch5159 6 жыл бұрын
yeah, it works. Great job. Thanks a lot. Now I can jump over to stm32 easily
@renelefebvre53
@renelefebvre53 4 жыл бұрын
Hello, after a lot of trials and tests, I followed your video step by step and I finally managed to get the bootloader (...pc13.bin) for my "blue-pill" module working. I'm with windows 10 and it's much more random than with W7. Thanks for everything! Bonjour, après beaucoup d'essais et de tests, j'ai suivi votre vidéo pas à pas et j'ai enfin réussi à mettre en fonctionnement le bootloader (...pc13.bin) pour mon module "blue-pill". Je suis avec windows 10 et c'est bien plus aléatoire qu'avec W7. Merci pour tout !
@CalebMarting
@CalebMarting 4 жыл бұрын
If you would like to try it I have a new version of the bootloader that doesn't require any weird drivers, it's a little more difficult to get it up and running but I've had a lot of success with it. kzfaq.info/get/bejne/g9-foZt5lpeVgIU.html
@dzee9481
@dzee9481 4 жыл бұрын
Very informative video. I would love to see these processors used in either for Analog to Digital type of projects as well as Digital to Analog. Like the Teensy processors Paul has provided a nice web interface to build the DAC components. I was looking at using one of these processor to avoid buying DACs and ADC and Reference voltage since these should all be built into the processor.
@sajjsamm
@sajjsamm 4 жыл бұрын
thank you very much, after watching that video I was able to run my STM board finally!!
@KarelQuast
@KarelQuast 5 жыл бұрын
It really works. Thank you so much for step-by-step guide for dummies :-)
@brianhenning2014
@brianhenning2014 6 жыл бұрын
Detailed instructions, worked great!
@dwisaputra5936
@dwisaputra5936 5 жыл бұрын
perfectly explained ..... thanx man, ur video really helped my time
@brotschuh
@brotschuh 5 жыл бұрын
For everybody who is missing the information: To load the compiled sketch to the STM32 you should set the program jumper to 1 like shown THEN press the reset button. You have to do this everytime you want to upload a new sketch. Once it is loaded it will imidiatly start. If you diconnect power you set the jumper back to 0 and the program starts to run. Some Knockoffs may want to have the LED_BUILTIN renamed to PC13. However mine worked also with LED_BUILTIN and also when I mixed both pin named up and used them together 😂 Also mine worked fine when I accidently connected the VCC from the FTDI board to the 5Volt Pin of the STM32
@anibalvilelarj
@anibalvilelarj 5 жыл бұрын
Congratulations ! Great work. It worked fine for me. Thank you !
@venkir1408
@venkir1408 5 жыл бұрын
Great, very nicely explained. Did anyone notice the green LED blink with the beat sound at last ?
@CalebMarting
@CalebMarting 5 жыл бұрын
A few did but it's always great to see the little detail noticed :)
@LKbrilliant
@LKbrilliant 6 жыл бұрын
Works like a charm.!! Thanks
@stephenremillard9462
@stephenremillard9462 5 жыл бұрын
I was about to toss my SMT32 in the trash but your amazingly useful video saved it. Thank you!
@TheChrisey
@TheChrisey 4 жыл бұрын
Why would you do that? Those chips are awesome.
@ramadoingstuffs8135
@ramadoingstuffs8135 4 жыл бұрын
Perfectly work. Thank you so much!
@macieksoft
@macieksoft 5 жыл бұрын
2:35 Don''t hold the board like this! You can make short circuit with metal tools!
@CalebMarting
@CalebMarting 5 жыл бұрын
Some other people commented about this. I just did it so my fat fingers weren't in the way. Don't short your board!
@PatTrainor
@PatTrainor 4 жыл бұрын
He's just making sure everything is electrostatically grounded! :) And it those huge SMCs can't take that, or are cold sodder'd (my way of saying), good to know now. :)
@juanmontes8905
@juanmontes8905 4 жыл бұрын
the board isn't even connected
@macieksoft
@macieksoft 4 жыл бұрын
@@juanmontes8905 I mean the FTDI USBUART board. You can see him connecting it to the USB when holding it with tweezers.
@CalebMarting
@CalebMarting 4 жыл бұрын
Yeah the other end was unconnected from the computer but I can definitely see how bad it looked. It was just for a clearer picture of the board and I don't have any plastic tweezers
@MatejBosansky
@MatejBosansky 5 жыл бұрын
If you have only 5V serial converter, you can use it also. Just do not power board from serials 5v, but power board via usb and keep GND connected. A9 and A10 pins are 5V tolerant.
@GameProgrammer79
@GameProgrammer79 4 жыл бұрын
Thanks for the video. quite useful and subscribed a thumbs up
@MArifinDobson
@MArifinDobson 5 жыл бұрын
This is superb, awesome and amazing.
@elChico-TV
@elChico-TV 6 жыл бұрын
What can i say awesome explanation this STM32F103C8T6 are next generation mcu for cheap diy projects its same price as arduino pro mini but far better
@CalebMarting
@CalebMarting 6 жыл бұрын
I hope the Arduino community embraces them
@Danixu86
@Danixu86 5 жыл бұрын
The only thing that I've found that is worst than Arduino (at least on my board), is the ADC converter... Even when is connected to GND it still saying that is not zero, and I was unable to measure the right voltage because there are much variance in measurements. With an arduino board I was able to do it becuase is more stable. Also a good thing that I can do with this board is to play with clocks easily. I'm able to create a 200kHz PWM signal with a few lines, and for now I'm not able to create a PWM signal higher than 1kHz on Arduino. Is better for a proyect that I want to do of an SPS.
@khalidtubail
@khalidtubail 6 жыл бұрын
really awesome,,, thanks a lot. now i can enjoy programming with this board.
@CalebMarting
@CalebMarting 6 жыл бұрын
No problem! I'm working on more videos for this board so stay tuned!
@hseegreen
@hseegreen 4 жыл бұрын
Suscribed! excellent description in excellent way! :)) Thanx
@TheBodysome
@TheBodysome 4 жыл бұрын
That final send off image, I will never see emojis the same
@ashif2997
@ashif2997 6 жыл бұрын
thank you, caleb, it's awesome
@oskimac
@oskimac 5 жыл бұрын
Just subscribed. Nice.
@Jeroen1278
@Jeroen1278 3 жыл бұрын
Great explanation, thanks.
@akarshagarwal4516
@akarshagarwal4516 5 жыл бұрын
Great work. subbed and liked
@pjfrigate
@pjfrigate 6 жыл бұрын
Very useful! Thank you.
@CalebMarting
@CalebMarting 6 жыл бұрын
No problem, I have another video on the stm32 coming out within the week!
@ishanmadhav2471
@ishanmadhav2471 5 жыл бұрын
Thanks for the help man
@AlexanderLang1980
@AlexanderLang1980 4 жыл бұрын
Thanks for this video...I got things working ;)
@CalebMarting
@CalebMarting 4 жыл бұрын
You're welcome, that's why I made it!
@testingbeta7169
@testingbeta7169 4 жыл бұрын
thankyou for making world easier place :)
@kawur1
@kawur1 5 жыл бұрын
Nice! It worked! Thanks a lot
@CalebMarting
@CalebMarting 5 жыл бұрын
Wouldn't have made a video if it didn't work ;p
@avejst
@avejst 5 жыл бұрын
Nice job an video Thanks for sharing :-)
@EdwinFairchild
@EdwinFairchild 5 жыл бұрын
The stm32 comes with a usb bootloader from the factory, what it doesnt come with as the ARDUINO bootloader. With a St-link programmer ($5.00) instead of the FTDI thingy you have debug capabilities, you can step through your code while its running live line by line so having serial (SWD) is still very useful, of course you'd have to upgrade your IDEfrom the Arduino and go for something like KEIL or SystemWorkbench or Truestudio which is for stm32 which is now also free like the rest. And once you upgrade IDE you are not stuck using just the STM32F103 you can use any stm32 chip, some have dual cores one core runing bluetooth and thus eliminate those huge bluetooth dongles etc. And if you dont like to open the datasheet and learn how to program the chip you can use STM32Cube and just call functions that do everything for you, Arduino style, you dont learn much but you get things done quickly so for hobbyists its perfect.
@CalebMarting
@CalebMarting 5 жыл бұрын
This is some really good information, you wouldn't ever want to help me write for a video about this would you? (Yes I know it's a lot to ask)
@CalebMarting
@CalebMarting 5 жыл бұрын
Truth is I've tried to experiment with stm32cube and another idea but I got stuck
@EdwinFairchild
@EdwinFairchild 5 жыл бұрын
i wouldnt mind , im trying to start a blog myself about programming microcontrollers and personal projects etc... school just keeps me busy though... but yeah I wouldnt mind helping out when and where I can
@CalebMarting
@CalebMarting 5 жыл бұрын
School keeps me busy too
@karllaun2427
@karllaun2427 5 жыл бұрын
Great information! Just a heads-up, you have to register an e-mail address to download the flasher software. If your programming computer doesn't have an e-mail client (for verification) like mine, getting the flasher software will be problematic.
@hgcsm
@hgcsm 5 жыл бұрын
www.guerrillamail.com/
@ilian334
@ilian334 5 жыл бұрын
Great video
@behzadabf
@behzadabf 4 жыл бұрын
Very useful.. thanksss...
@yalcintufan3693
@yalcintufan3693 5 жыл бұрын
thank you.I ve got a lot of things.
@mutantthegreat7963
@mutantthegreat7963 Жыл бұрын
Rocking. Cheers
@dave-in-nj9393
@dave-in-nj9393 4 жыл бұрын
MAGIC SMOKE REFILL KIT @ 1.55 Sadly, Sparkfun discontinued sales of the Magic Smoke Refill Kit I did some research to see if I could replicate it. The crystalline structure of the silicon that makes up the chips seem to crystallize in a tetrahedron form. when the voltage gets too high, the angular lattice of the silicone vaporizes, but the structure remains partially intact. By a rather complicated osmosis process, it might be able to be replenished. The best I could figure is that it would be a process of: Tetra-Osmosis Tetrahedron Angular Lattice Binary Sedimentation unfortunately, the acronym does not sound quite as scientific.
@PolakeXD
@PolakeXD 5 жыл бұрын
best intro ever XD
@gauravapte5126
@gauravapte5126 5 жыл бұрын
thanks man.u made my day
@CalebMarting
@CalebMarting 5 жыл бұрын
Glad to hear it!
@gauravapte5126
@gauravapte5126 5 жыл бұрын
After flashing bootloader.. I am successfully able to blink led and lcd programming.. But i am unable to make call using gsm quectel m95 model. It was working before flashing bootloader.. Can you help me please
@CalebMarting
@CalebMarting 5 жыл бұрын
I have no idea what would cause that. What exactly are you trying to do
@gauravapte5126
@gauravapte5126 5 жыл бұрын
I am having quectel m95 gsm module.. i am trying to make call from that module to particular number.. Code is successfully uploaded..but no response from gsm module..
@CalebMarting
@CalebMarting 5 жыл бұрын
The only thing I can think of is that it somehow is messing with the uart or something. Can you try the same pin/comm method with a different device?
@SiddanagowdaBiradar
@SiddanagowdaBiradar 4 жыл бұрын
STMCube IDE is also so good. Are there videos on it ?
@CalebMarting
@CalebMarting 4 жыл бұрын
I'm not entirely sure, I really like it but can't justify using it because I don't do things that really need it
@klazzera
@klazzera 4 жыл бұрын
some boards have the 100kohm R3 resistor that connect BOOT0 header to mcu. In my case, when BOOT0 jumper is on 1 position, the pin on mcu only pulled up to 1 volt, which had me failed to flash the firmware. you might need to replace R3 with 10k. i just replaced it with a 2.2k smd resistor i had and it worked.
@CalebMarting
@CalebMarting 4 жыл бұрын
Interesting, thank you for your knowledge!
@samuellehmann4914
@samuellehmann4914 4 жыл бұрын
This has helped! Thank you :)
@klazzera
@klazzera 4 жыл бұрын
@@samuellehmann4914 you're welcome, i'm happy to hear someone to benefit from my discovery
@SamuelJohnsonBungie
@SamuelJohnsonBungie 4 жыл бұрын
You had me at delete system32 😂
@khalidtubail
@khalidtubail 6 жыл бұрын
thanks my friend, its wonderful tutorial, please keep going on, and do more STM videos.
@Funibert-Fox
@Funibert-Fox 6 жыл бұрын
Thank you
@CJ-tv9hd
@CJ-tv9hd 6 жыл бұрын
Mmmmmmm.... Absolutely splended! I am the globaglinkgalub, the shubbleduble...
@agentpx
@agentpx 5 жыл бұрын
0:13 when you are very delicate handling the stm32 but in the end lose a grip and stm32 fell onto the floor lol
@CalebMarting
@CalebMarting 5 жыл бұрын
May have happened a few times during filming
@rezamjj
@rezamjj Жыл бұрын
Hi, I have an .ioc file, how can I transfer it to blue pill with this method (using usb to ttl)?
@wiktorjaworski1710
@wiktorjaworski1710 Жыл бұрын
Hey, just a quick question - can i use a rs232 to usb adapter instead of the ftdi breakout board? I can't order it now but i want to try using it
@CalebMarting
@CalebMarting Жыл бұрын
You'd have to check the data sheet, I think it only supports uart for upload, check the bootloader section in the chip sdatasheets
@beakytwitch7905
@beakytwitch7905 3 жыл бұрын
The Arduino does bootloader for the first few seconds, then becomes available as a USB serial port. Does that happen here too?
@davidkempton2894
@davidkempton2894 5 жыл бұрын
Thanks!
@CaptFrost-ed8ij
@CaptFrost-ed8ij 5 жыл бұрын
Thank you so much for the video! One question, I can undo the bootloader by flashing a random program via serial I assume? Like loading the blink program via arduino serial?
@CalebMarting
@CalebMarting 5 жыл бұрын
Anything written over serial will overwrite the bootloader, that is correct
@CaptFrost-ed8ij
@CaptFrost-ed8ij 5 жыл бұрын
@@CalebMarting Thank you! I've also tried on the STM32F103RB development board. The board has PB11 connected to the led, I've tested 2-3 binaries and the generic_pc13 seems to be working!(Couldn't find PB11 binary) I've tried to learn more about this, could you explain on why specific binaries must be loaded on board which have different pins connected to the userled?
@CalebMarting
@CalebMarting 5 жыл бұрын
I think it's just so that the board knows which pins are mapped to what, sometimes certain boards have extra peripherals and stuff. If pc13 works then you should be set
@tahasinmohammadtahasin9300
@tahasinmohammadtahasin9300 Жыл бұрын
Can anyone tell me that after I install arduino bootloader in stm 32 then can I use any kind of nano or uno code in the stm board? Does it will support any kind of arduino library?
@monneratrj
@monneratrj 6 жыл бұрын
I always wanted to use STM32 without the need for the FTDI stuff... the video looks quite detailed, wich seems its harder than it appears... can you summarize in few steps everything that is needed? and after that? i will be able to write/rewrite just like common arduinos?
@CalebMarting
@CalebMarting 6 жыл бұрын
Yes, after install it should be able to be written just like a regular Arduino. In a few steps: Download the flasher program, drivers, and correct bootloader. Install the drivers Run the flasher program and use the selected bootloader and ftdi when you install. That's the basic gist, but please watch the video because there are pitfalls I can't type out on my phone that you should be aware of, really it's about 4 mins of video that matters, go to the timestamp mentioned.
@leejungwon200
@leejungwon200 5 жыл бұрын
Thank you~~~~!!
@pflanzgarten
@pflanzgarten 5 жыл бұрын
Thanks a lot Caleb. I get it!!! Now, i can program my bluepills through USB and use Serial Port Monitor. Only a question. I need to press the reset button after upload a program. Upload works fine, but before press the reset button, the COM port apears disabled. After pressing the reset button, the Serial Port Monitor and COM Port works fine. Both jumpers on 0 position.
@dansdroids4067
@dansdroids4067 4 жыл бұрын
I get the same issue, resulting in the error mentioned with the missing footage... any ideas of a workaround? seems like the usb is failing to reset the stm32 into flash mode?
@CalebMarting
@CalebMarting 4 жыл бұрын
Yes some STM32s can't reset themselves, meaning you need to reset it. either reset when it's attempting to program or something like that
@CalebMarting
@CalebMarting 4 жыл бұрын
Basically the USB can't reset it and therefore it can't find the right DFU device
@dansdroids4067
@dansdroids4067 4 жыл бұрын
@@CalebMarting Thank you. Is that the resistor hack that ive seen others doing?
@CalebMarting
@CalebMarting 4 жыл бұрын
It's one of the ways to perform the fix. you should test before you do that though because sometimes it's not required based on your computer or something else.you can also get around needing to do the resistor hack by resetting it as you're uploading. Did that make sense?
@michaszablewski5790
@michaszablewski5790 5 жыл бұрын
thank you, thank you, thank you
@CalebMarting
@CalebMarting 5 жыл бұрын
Np np np!
@MejoradoLopezJonathan
@MejoradoLopezJonathan Ай бұрын
this tutorial works for the programs in the stm32cubeide?
@johnnywonka1211
@johnnywonka1211 3 жыл бұрын
do you know anything about unlocking the hidden 64k flash on these boards ?
@CalebMarting
@CalebMarting 3 жыл бұрын
I wasn't able to figure it out
@kevinroscom
@kevinroscom 6 жыл бұрын
do you have any ideas on how to get the 2 DACs working in the Arduino IDE? AnalogWrite is only able to output PWM for me, and i'd rather use the true analog outputs. thanks!
@CalebMarting
@CalebMarting 6 жыл бұрын
I think you might have to use hardware registers. There are plenty of tutorials for using hardware registers on the Arduino for faster writing and reading of pins. If you can find which registers correspond to the DACS, it may work. (I haven't done any research but this might be a good stepping stone) Tell me how it goes!
@blaedd
@blaedd 6 жыл бұрын
While I'd double check the datasheet and schematic. Most STM32 inputs that aren't in analog mode are usually 5V tolerant. (3.3V is still preferable, but it would be an odd setup to damage the MCU)
@CalebMarting
@CalebMarting 6 жыл бұрын
I was going to make a second video calling my first self a liar but I'll explain that later
@insanet3
@insanet3 5 жыл бұрын
hey man tremendous video, can you make a tutorial on how to make the stm32 simulate a usb Keyboard?. can it be done with arduino programming? or do you have to use the st-link thingy?
@CalebMarting
@CalebMarting 5 жыл бұрын
I've gotten it to work before with just Arduino but it sort of messes with the bootloader if I remember right. I'll look into it haha
@dieSpinnt
@dieSpinnt 4 жыл бұрын
​@@CalebMarting It works, but you won't like this kind of configuration during development. It's cumbersome and annoying. Maybe later as end-user update mechanism. The boot-loader and your USB-stack will fight against each other every code-update time, worsened by the fact that such a blue pill has no proper USB re-enumeration circuitry like the maple series and most likely has the wrong pull up resistors(like you stated in your video. good job). For USB development I use a proper programming adapter as @insanet3 asked. So you have proper debugging available and two paths: One for development and one for the USB realization of your project. Prepare to invest some time, because this can be a hard task to wrap your head around and get your USB stuff working:)
@CalebMarting
@CalebMarting 4 жыл бұрын
You are exactly right, I had the same experience as you
@CalebMarting
@CalebMarting 4 жыл бұрын
Thank you for your insightful comment!
@kennedyplan7414
@kennedyplan7414 5 жыл бұрын
what is the required value for R10? and what value of paralleled resistors that you used?
@CalebMarting
@CalebMarting 5 жыл бұрын
I didn't have to use any special resistors. I just press the reset button. You should be able to find the right values on the wiki if you still need to though
@caffeinatedinsanity2324
@caffeinatedinsanity2324 3 жыл бұрын
If you plan on using the blue pill as a usb device for a project, I recommend not installing the usb bootloader because I did some usb projects with STM32CubeIDE and they take quite a lot of memory. I don't have exact numbers written down but I could use over 40% of flash and RAM just to make a mouse with a joystick. Black Pills' uCs have an inherent USB bootloader according to datasheet though.
@Drxxx
@Drxxx 3 жыл бұрын
Super videoo
@alfasih
@alfasih 3 жыл бұрын
I thought any stm32 should support DFU bootloader on the usb port out of the box. At least in the datasheet they didn't say anything about adding any extra bootloader in AN3156 document. Or the goal of this video is to add an Arduino bootloader on the STM32? It is confusing to me.
@CalebMarting
@CalebMarting 3 жыл бұрын
This is not required, and it just provides a way to upload bin files or use Arduino on the STM 32 f103 without needing an external programmer like a serial adapter or st-link. The f103 is old enough where it doesn't actually come with a dfu bootloader, and instead code can only be uploaded typically over serial or dfu. This bootloader is basically only useful for Arduino development however
@mattjmwmatt
@mattjmwmatt 5 жыл бұрын
Hello, do you happen to know or plan to make a video on nrf24 for stm32?
@CalebMarting
@CalebMarting 5 жыл бұрын
I wasn't planning on making a video for it. If I had one I would but i don't have an nrf24 at the moment. If you make any progress we could work together to make a video for it, however
@Shubham-po2tp
@Shubham-po2tp 3 жыл бұрын
After completion of procedure, Is there any need to change that jumpers boot point at any point in FUTURE application and different codes
@CalebMarting
@CalebMarting 3 жыл бұрын
The only jumper you would change is the boot one jumper. The opposite of the one that you used. When it's in the one position it forces the bootloader to be enabled, so if you having issues uploading code you can put the boot one jumper to one. Otherwise you should never need to move jumpers
@Shubham-po2tp
@Shubham-po2tp 3 жыл бұрын
@@CalebMarting Thank you so much...
@chloemcholoe3280
@chloemcholoe3280 5 жыл бұрын
the driver was the issue then yissssssssss I actually have a jtag but usb is just more easy :P Thanks :)
@CalebMarting
@CalebMarting 5 жыл бұрын
No problem!
@AJB2K3
@AJB2K3 5 жыл бұрын
Didn't come here to delete system32, already mastered accidently deleting it!
@TheNikhilmishras
@TheNikhilmishras 5 жыл бұрын
TIL! Thnx for the info! Are there any disadvantages to using the serial port method (apart from inconvenience)? Because I might need that extra 20kb of space. Great video thnx!
@CalebMarting
@CalebMarting 5 жыл бұрын
It's not the most reliable. I would definitely recommend picking up an ST-Link v2 if you are going to be using these a lot, otherwise serial works just fine and you can upload with that whenever even if you install the bootloader
@jamesaddison81
@jamesaddison81 5 жыл бұрын
Could I do this install on a windows machine then use the STM32 with Arduino IDE on a Mac or would I still have to use windows to use it?
@CalebMarting
@CalebMarting 5 жыл бұрын
It can be installed on Windows, but you have to make sure the drivers work. I have no idea
@austinfennacy
@austinfennacy 6 жыл бұрын
do the mini series! I'd love to know what arduino libraries work on STM32 without changing code
@CalebMarting
@CalebMarting 6 жыл бұрын
Any specific libraries I should cover?
@austinfennacy
@austinfennacy 6 жыл бұрын
hm, I would split it into two categories, probably some common libraries and some libraries that examine arduino-STM32 hardware overlap. some common ones, maybe NeoPixel libraries or MPU6050 (or any popular IMU) or LED? and as far as hardware goes, I know for example ATtiny85 doesn't have SPI built into the hardware so you have to mod the functionality with software, so maybe with the STM32 you could examine if the hardware for features like SPI, I2C, interrupts, etc all function well with the arudino libraries that use them To be honest I'm not sure if this will make an interesting video or not, I just know that I've heard not all Arduino libraries work out of the box on STM32. Maybe you could try to create a project that the Arduino doesn't have enough pins / interrupts / etc?
@CalebMarting
@CalebMarting 6 жыл бұрын
Hmmm, I just got neopixels working so I think I'll start there. We'll see what happens!
@splendensregan5270
@splendensregan5270 Жыл бұрын
Hi where can I get the FlashLoader Demonstrator for stm32 ?
@CalebMarting
@CalebMarting Жыл бұрын
Hi! You can get it from st's official site
@TheRainHarvester
@TheRainHarvester 6 жыл бұрын
Does maple mini mean (or imply) stmduino? I'd like a video that shows how many gpio are actually usable on stm. Some say 37, but I see pins that are dedicated to other functions. I liked the triple-try usb connection humor. :-)
@CalebMarting
@CalebMarting 6 жыл бұрын
The Maple Mini is actually a specific board, you can look it up and buy one. Stm32duino I think refers to boards flashed with the stm32duino bootloader. That might not be correct though. I believe there are slight differences between the two boards but I'm not quite sure. Did that help? I have more stm32 videos in the works, but I've gone down a rabbit hole and am still researching for the next video. Thank you, I knew someone would appreciate that joke :p
@TheRainHarvester
@TheRainHarvester 6 жыл бұрын
I'm eagerly waiting for my stm32f103c8 from ebay. I haven't found any info on debugging Arduino code (even if not in Arduino ide). I would like to debug, but I really like the ease of the Arduino libraries. Is it possible? How compatible are the libraries? Or, if debug requires non-Arduino libraries, how complete are those? (Support for lcd/oled displays etc) (Lots of material ideas for your videos! :-))
@jaragon1udem
@jaragon1udem 4 жыл бұрын
Can we use this bootloader without using arduino ? I ask because I prefer Keil. I just want the support for the USB port in the STM32
@CalebMarting
@CalebMarting 4 жыл бұрын
I'm not sure, I haven't gotten it to work with mbed or anything. You could extract how the .bin file is uploaded and just use keil to run that file
@TheWhitde
@TheWhitde 5 жыл бұрын
Looking seriously at STM32F4 board for just over AUD$10. 168Mhz, FPU, 1MB flash, 192K + 4K SRAM, heaps of I/O on a neat board. Currently use an Arduino Due that's great... but... but hate the default headers and well... 168Mhz and 192K is better than 84Mhz and 96K for a board that's ~60% of the price. Was looking at Teensy but not enough I/O for my project unless muck around with solder pads etc. I use Visual Micro under Visual Studio... and seems to install and compile. No point ordering a board if don't have means to compile... and as I just found out need a boot loader.
@CalebMarting
@CalebMarting 5 жыл бұрын
You don't need a bootloader. What I recommend is the STLink V2 for your situation. You can get one for $2 Edit:re-read the comment while I'm not half asleep, I recommend STM32 highly, it's just that the arduino support isn't quite there yet. I'm looking into alternative toolchains and stuff
@rcrazee5077
@rcrazee5077 4 жыл бұрын
I thought the ST-Link is the one that perform the USB interface of the STM32F? can someone enlighten me on this one.
@CalebMarting
@CalebMarting 4 жыл бұрын
Stm32f103 supports USB communication onboard, like the Arduino Leonardo. The main chip supports the communication
@doates625
@doates625 5 жыл бұрын
Every other "Getting Started" tutorial including the wiki is nonsense garbage thank you so much.
@CalebMarting
@CalebMarting 5 жыл бұрын
Thank you! I got fed up so I made this video. If you can think of anything else that would be a good video please share and I'll see what I can do
@doates625
@doates625 5 жыл бұрын
@@CalebMarting How about a video on going under the hood and doing bitwise digital IO? I've been researching that for some high-speed applications!
STM32 Bits: Neopixels!
3:13
Caleb Marting
Рет қаралды 6 М.
100❤️
00:19
MY💝No War🤝
Рет қаралды 21 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 49 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 14 МЛН
11. Install STM32 CubeIDE and LED blink program for Windows (OpenOCD included)
17:56
MicroPeta by Nizar Mohideen
Рет қаралды 64 М.
Blue Pill Bootloader
6:43
Richard Wenner
Рет қаралды 8 М.
Top Fifteen Mistakes People Make When Designing Prototype PCBs
12:26
Cosplay Light and Sound
Рет қаралды 136 М.
Debugging the Arduino Uno or Nano! (No extra hardware needed!)
6:58
STM32 F103 BLUEPILL - Getting Started with Arduino Core
9:32
Saravanan AL
Рет қаралды 75 М.
I built my own graphics card
15:34
jdh
Рет қаралды 1,4 МЛН
КАК ЗАЩИТИТЬСЯ ОТ ГРАБИТЕЛЯ👜
0:43
MEXANIK_CHANNEL
Рет қаралды 2,9 МЛН
3Funny Kids‼️ and LEGO😂 Kind Girl | JJaiPan #Shorts
0:50
เจไจ๋แปน J Jai Pan
Рет қаралды 11 МЛН
M3 Grease Gun by Umarex
0:35
Misha’s Guns
Рет қаралды 7 МЛН
Когда папа - ТРЕНЕР!🤣
1:00
Petr Savkin
Рет қаралды 3,3 МЛН
Отец года по мнению дочерей❤️
0:32
FilmBytes
Рет қаралды 1,5 МЛН