#353

Sdílet
Vložit
  • čas přidán 19. 09. 2020
  • In video #345 I asked the question whether the ESP32 or the STM32 Bluepill is the better choice. The video created quite some controversy, mainly because I compared the weakest STM32F103 chip with the quite powerful ESP32. Some viewers thought I was unfair and suggested to do a test with more powerful chips like the blackpill. This is what we will do (incl. ESP8266). And we will learn quite a few things about the chances and the weakness of the “STM32duino” project. For example, its capability to do inline debugging. At the end of the video, you will have a good overview and know some tricks to save you a lot of time and hassle. And of course, you will know which board you need for speed…
    I am a proud Patreon of ‪@greatscottlab‬ , ‪@ElectroBOOM‬ , ‪@ELECTRONOOBS‬ , ‪@EEVblog‬ , and others
    No Docker, Microsoft Teams, Zoom
    Links:
    Bluepill: s.click.aliexpress.com/e/_d9B...
    Blackpills: s.click.aliexpress.com/e/_d9D...
    Teensy 4.1: amzn.to/3iPIn3k
    STM-Link 2-1: s.click.aliexpress.com/e/_d83...
    ST-Link V2: s.click.aliexpress.com/e/_dXD...
    Lots of STM32 info: stm32-base.org/boards/
    The links above usually are affiliate links which support the channel (no additional cost for you).
    Supporting Material and Blog Page: www.sensorsiot.org
    Github: www.github.com/sensorsiot
    My Patreon Page: / andreasspiess
    Discord: / discord
    If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission (of your purchases the next 24 hours) to buy new stuff for the channel
    My Amazon.com shop: www.amazon.com/shop/andreassp...
    For Banggood bit.ly/2jAQEf4
    For AliExpress: bit.ly/2B0yTLL
    For Amazon.de: amzn.to/2r0ZCYI
    For Amazon UK: amzn.to/2mxBaJf
    For ebay.com: ebay.to/2DuYXBp
    profile.php?...
    / spiessa
    www.instructables.com/member/...
    Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my primary job
    As an Amazon Associate, I earn from qualifying purchases
    #noMidrollAds
  • Věda a technologie

Komentáře • 845

  • @BenMitro
    @BenMitro Před 3 lety +82

    The man with the Swiss accent does it again - another video of really useful information and comparisons. Thanks Andreas.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +2

      My pleasure!

    • @eddybash1342
      @eddybash1342 Před 3 lety

      No, he is : ' The " guy " with the Swiss' accent '. ;)

    • @BenMitro
      @BenMitro Před 3 lety

      @@eddybash1342 I have different speakers on my computer...

    • @eddybash1342
      @eddybash1342 Před 3 lety

      @@BenMitro yeah, I am so happy for you ! ;)

    • @marleyemery5785
      @marleyemery5785 Před 2 lety

      you prolly dont care but does someone know a tool to get back into an instagram account?
      I stupidly lost the password. I love any assistance you can offer me.

  • @naimfuad5913
    @naimfuad5913 Před 3 lety +79

    that windows usb disconnect sound 12:57 left me scrambling by checking all usb port

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +7

      :-))

    • @Dust599
      @Dust599 Před 3 lety +5

      you get what you deserve by running windows.

    • @TheInreamir
      @TheInreamir Před 3 lety +4

      I was copying a really big file from my PC to HDD. 😅😅 mini heartattack.

  • @lohikarhu734
    @lohikarhu734 Před 3 lety +1

    I've only watched the introduction, and already in awe of your ability to get this work done! And, additionally, how responsive you are to viewer input... Respekt!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      Now this answer took two days. But there were so many comments. An CZcams sorts the wrong way round :-(

  • @john-r-edge
    @john-r-edge Před 3 lety +17

    Great having a silverback expert to listen to about the latest tech - as he can relate it to the legacy gear of the 60s and 70s. As someone a similar level of chronological endurance as Andreas, I encountered some of the items mentioned in the 70s.
    At University I did Fortran programming via punch cards - one 80 char line per card; don't drop your card stack and get them out of order.
    We had Digital Equipment Corp computers - though not their VAX line, rather the earlier PDP-11 which were accessed via hardcopy terminals (and a very few dumb terminals with VDU, cutting edge for the time).
    The oldest input method I worked with was having to submit code via paper tape, 7-hole type (so 7-bit) prepared on a teletype which had a keyboard, paper tape punch and tape reader. Like Telex but with full ASCII character set (Telex is 5-bit).
    That was painful - to correct just one error the old paper tape was copied to a new one up to the bad line, you type in the new line, and copy the rest of the tape.
    I also used the Teletypes as a primitive word processor to generate newsletters onto Gestetner stencils for printing newsletters for a club (photocopying still rather expensive).
    And who knows what a Gestetner stencil is?

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +5

      Yea, during those days quality of typing and programming was on a different level because the limit was compute power. Today, the bottleneck is our time and no more computers. So our behavior is adapted...

    • @lohikarhu734
      @lohikarhu734 Před 3 lety +1

      This part I need to "borrow":
      " a similar level of chronological endurance"
      Since my first "computer" was an MEX6800D2 ....

    • @lohikarhu734
      @lohikarhu734 Před 3 lety

      @@AndreasSpiess yep, my friend and I developed a complete monitor and in-line assembler for MC146805, in 2K , using a ksr-33 as our "user interface", and sold the evaluation board in quite a few countries, as we actually beat Motorola in getting the eval board for MC146805 to the market. The "good old days" ;-)

    • @waynet8953
      @waynet8953 Před 3 lety

      I remembered that era. The IBM printer was huge, and open itself up automatically when it ran out of paper; graduated in '72. Feels like another life technologically.

  • @AndreasSpiess
    @AndreasSpiess  Před 3 lety +36

    The small ST-Link sticks seem also be upgradeable if you try hard and plug- and unplug them several times. Quite a few viewers helped me to get the job done. Thank you!

    • @ronaldhofman1726
      @ronaldhofman1726 Před 3 lety

      Thanx, i wil try this.

    • @galileo_rs
      @galileo_rs Před 3 lety +7

      Bluepills that come with the genuine ST chips are all 128K (yes the datasheet states 64) and can be overclocked to 128MHz. The usual problem with those is a wrong resistor (R10) that prevents some usb controllers from enumerating the device and awful USB micro connectors (like the one you got). Spent quite some time trying to find the problem when the issue was a bad connector. The stlink adapters (with 128K flash) or any stm32 for that matter can be flashed with "Black Magic Probe" firmware. That gives you another virtual serial port that you can connect to RX/TX of target micro, which simplifies the monitoring since there is only BMP connected to the computer. BMP also has support for TRACESWO so that is another added benefit.

    • @ugetridofit
      @ugetridofit Před 3 lety

      One should remember and take into account when comparing ESP32 is that you have 2 cores both running 240MHZ. The rest just have one.

    • @Spongman
      @Spongman Před 3 lety +1

      you _can_ debug an Arduino UNO using PlatformIO. I don't know if they changed something recently, but it works fine. I don't know why anyone with an ounce of embedded experience would use the Arduino IDE instead of PlatformIO for anything.

    • @JessieKropp
      @JessieKropp Před 3 lety

      I encountered the same issues with my cheap ST-Link clone. Unplugging it at the right moment allowed me with upgrade it. I was also able to use it for programming through the Arduino IDE.

  • @edwardcdg
    @edwardcdg Před 3 lety

    Wow! You have organized an enormous amount of great information in this video. Many thanks from all of us!

  • @TheAoab50
    @TheAoab50 Před 3 lety +1

    Thanks a lot for the awesome video, you have spent a lot of time to make all the comparisons and give us the results ready. Thanks again. By the way, the small hand is very funny.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      You are welcome! And it seens this small hand has some "fans"...

  • @Royaltea_Citizen
    @Royaltea_Citizen Před 3 lety +12

    This guy is setting some high standards! Thanks for doing all of this for the community.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +6

      You are welcome! If we do it, we do it right (learned from my father ;-)

  • @sarveshk09
    @sarveshk09 Před 3 lety +2

    Wow! Just uploaded! Watching it because it's Uncle Andreas testing my favorite boards!
    I've started using Bluepills now, and wonder why I wasn't using them before. Amazing microcontrollers with lots of customization options.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +2

      True. And the Blackpills offer even more...

    • @sarveshk09
      @sarveshk09 Před 3 lety

      @@AndreasSpiess Haven't used Blackspills yet, but gotta test them soon! So much improvement over the previous boards.

  • @noweare1
    @noweare1 Před 3 lety +1

    This was a large undertaking. You did a great job. Who could even speculate that in 2020 makers would have access to these type of chips to program and make awesome things with.

  • @mikesnapper9001
    @mikesnapper9001 Před 3 lety +2

    I ordered some of the black pills to give them a spin. So far i mostly use arduinos, and AVR chips, but debugging through serial printing, or even just blinking leds is pretty annying, having a full live debugger support in vscode is going to be amazing if i get it to work. Your videos are constantly improving ee hobbyist life. I still frequently use the wire wrapping tool i got because of your video (never knew it even existed before) and love it.

  • @Beatfreak19831
    @Beatfreak19831 Před 3 lety +5

    Thanks for another great video. I hope you will find the time in the future to test the power consumption for the stm32s, especially the L series boards.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +4

      Me too. They should be quite good.

    • @ristomatti
      @ristomatti Před 3 lety +1

      Often it seems though that the problem is not so much the power consumption (in deep sleep at least) but the development boards having constantly on power LED's, serial to USB chips and non-LDO power regulators. One could think the STMicro boards for the low power STM's might have this thought out but I wouldn't bet on it.

  • @peter.stimpel
    @peter.stimpel Před 3 lety +57

    nice jumps into history, like that.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +10

      Me too. They are nice memories. And they come with a reason like that video...

  • @klassichd10
    @klassichd10 Před 3 lety

    Thanks for the great overview and comparision!

  • @1DR31N
    @1DR31N Před 3 lety

    Thank you for another enjoyable video full of useful information. Great job again.

  • @midiup
    @midiup Před 3 lety

    Andreas I always appreciate your videos and I thank you for the clarity and seriousness of the contents. I am a professional user of STM32 and fortunately my work is also the hobby for which I use STM32 for my projects as well: I liked what he said about STM32 but I think those you say represent 10% of the STM ecosystem, very more complete and resourceful than what you say. I hope that this video will be followed by others to best represent a family of 1000+ components used in thousands of applications, from wearables to industrial controllers, from IOT to 3D printers. Good job!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      I will not touch the commercial world and will stay with the Arduino IDE. This is a Maker channel and "Rapid Prototyping" is what we usually do. There are other platforms or channels for corporate education, I think.
      The second problem I see: If I would abandon Arduino IDE and join whatever other Ecosystem, I would lose 90% of my viewers because they would not like my decision :-( Too many other possibilities. Just read the comments in my "micropython" video. The only video I do not answer comments, BTW. Too many "fanboys"

  • @tapizvolador
    @tapizvolador Před 3 lety

    Hi Andreas, again an excellent video.
    i didn't understand everything, not because you are not clear but because I am still learning. However, I looked the whole video till the very last second because I find it addictive and would like to become versatile in these technologies.
    Being more or less of the same generation as you, I appreciated your jump in the past with which I am more comfortable.
    Congratulations.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      I have quite a few viewers of our age. This is why I sometimes do these jumps back in time... And it is also good for me to remember.
      Do not forget: I had to learn all this stuff, too. My normal job is to build large ESP systems for big corporations... So it is possible!

  • @Electromakerio
    @Electromakerio Před 3 lety +2

    We loved this project so much, that we featured it in this weeks episode of The Electromaker Show!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      Thank you, also for your very nice words! I wish you all the best with your show. I am already a subscriber.

  • @dreamcat4
    @dreamcat4 Před 3 lety

    A lovely video, thank you so much. Learned some useful info!

  • @amansaxena5898
    @amansaxena5898 Před 3 lety +1

    Woah!!! That tiny teensy is FAST 😯😯😯. I wasn't really expecting that big of a surprise! Looking forward to a dedicated video on it.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      As I said: I have no use for that performance. So I also have no idea for a video :-(

    • @amansaxena5898
      @amansaxena5898 Před 3 lety

      @@AndreasSpiess 😕. Still, lived this nice video!

    • @jankomuzykant1844
      @jankomuzykant1844 Před 3 lety

      @@AndreasSpiess I think there should be something interesting for your radio hobby and teensy 4
      github.com/DD4WH/Teensy-ConvolutionSDR

  • @BenjaminEggerstedt
    @BenjaminEggerstedt Před 3 lety

    Great, a new video! Thanks, Andreas!

  • @henrydokie
    @henrydokie Před 3 lety

    Great content! Informative and clear, I was able to learn a lot.

  • @EliSpizzichino
    @EliSpizzichino Před 3 lety

    great video! this overview saves tons of time!

  • @rodstartube
    @rodstartube Před 3 lety

    I was about to shout "include any Teensy 4.x in the benchmarks"... and at the end on the video you included it, as the surprise !!! AWESOME! as always I tell you, this was an awesome video as always!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      We CZcamsrs have to tell a story to stay interesting ;-)

  • @skewedmaker
    @skewedmaker Před 3 lety +1

    Always interesting and useful. Thanks for the trip down memory lane: I learned FORTRAN on an IBM in high school (on punch cards) and did my computer science courses in college on a VAX.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      There are quite a few viewers of our age with similar experience on this channel. At least according the many comments.

    • @keithsafford3056
      @keithsafford3056 Před 3 lety

      Learned COBOL, Fortran, and BASIC on an NCR Century 101 in high school and programmed COBOL on an IBM 30xx series in the early 80's. Learned Pascal, C, C++, VB, VB.NET, C#.NET and have been using SQL Server since v6.5. Has been interesting IT evolve over the years.

  • @luizcassettari
    @luizcassettari Před 3 lety

    I have the small ST-Link and works great on the Arduino IDE, I update the firmware on the STM32CubeProgrammer and everything works!
    Great video!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      You are right. I learned it from other viewers and tried all of my sticks. 1 of 3 was also upgradable...

  • @avejst
    @avejst Před 3 lety

    Impressive test
    Great job
    Thanks for sharing your great video👍😀

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Thank you. It took some time to create this video... But it was a lot of fun!

  • @McTroyd
    @McTroyd Před 3 lety

    I hadn't put the link together in my head that STMicro is so often used in commercial applications. Now we can see why -- relatively high power in a relatively inexpensive package! My old Arduinos might need some new buddies... Thanks for the video!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      Glad it was helpful! And enjoy the new "buddies"

  • @pranavsrinivas4299
    @pranavsrinivas4299 Před 3 lety

    Exactly what I needed right now. Thanks.

  • @krystofvydra
    @krystofvydra Před 3 lety

    The video comes out right when we are starting to learn about programming cortex M0's that must such a coincidence lool. Great video tho! Your channel is one of the best when learning about mcu's and rf stuff!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Thank you. MCUs and RF happen to be the most interesting things for me ;-)

  • @John_Smith__
    @John_Smith__ Před 3 lety

    Great video once again ! And Great for you to mention the History of Digital and the VAX machines, great times! Thanks once again for the video!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      You are welcome! My history fitted well int this video...

  • @gregorymccoy6797
    @gregorymccoy6797 Před 2 lety

    Your videos are very information dense. Other channels have alot of fluff and covey far less in more time. Thanks for doing what you do in the manner you do

    • @AndreasSpiess
      @AndreasSpiess  Před 2 lety

      Thank you for your nice words. I create my videos in a way I would also like them on other channels.

  • @marklewus5468
    @marklewus5468 Před 3 lety +1

    Thanks for putting all of this information together, I always enjoy your videos. For a couple dollars more you could use a STM32F7 or H7.The F4 is rated 225 DMIPS while the F7 is 462 DMIPS and the H7 is 1177 DMIPS. They are more or less software compatible. So you get more than 5x the single/double integer performance of the F4. The H7 also has a double precision floating-point processor compared to single precision on the F4. The H7 NUCLEO board costs $29 for the official ST micro board. These will blow an ESP32 out of the water in single precision, double precision, or float.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      Thanks for the info. I would not compare the H7 boards with the ESP. I would compare them with a Teensy. Then I assume they will be similar. Anyway, as said in the video: I have no usage for this power for the moment :-(

  • @circadianrebel
    @circadianrebel Před 3 lety +35

    Oh, a correction: The bluepills (and pretty much all STM32's) do have a built in bootloader. They have a serial bootloader that is burned in the silicon itself and can be selected with the boot jumpers. They actually have 3 different bootloader slots, but the USB requires flashing and doesn't come installed by default.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +10

      I did not know about a serial bootloader. Maybe I did not find a lot of information about it because using SWD instead of Serial has lots of advantages.

    • @circadianrebel
      @circadianrebel Před 3 lety +14

      @@AndreasSpiess Indeed. SWD is so much better. And that also highlights that limited documentation targeted at hobbyists might be one of the biggest stumbling blocks for these STM32 boards right now.

    • @user-mr3mf8lo7y
      @user-mr3mf8lo7y Před 3 lety +2

      Second that.. All of Bluepills I ordered (2+ years ago) from China came with bootloader installed.

    • @PerchEagle
      @PerchEagle Před 3 lety

      I had a maple mini that got stuck in DFU mode and kept the last code I uploaded to it until it cracked while I was installing/uinstalling different USB drives in hope to get it to respond to Arduino IDE. And of course bought other maple minis.

    • @dieSpinnt
      @dieSpinnt Před 3 lety +3

      @@circadianrebel Maybe these people can't use google or the STMicro own search bar or don't know what an application note is?
      AN3155: USART protocol used in the STM32 bootloader
      AN4657: STM32 in-application programming (IAP) using the USART
      Also it is a shame that people think a "bootloader" is a development tool. Thank you Arduino... Instead a bootloader is a tool to provide updates to an end-user or to ease in-circuit flashing and .... yes, for development, too. But that is not its main purpose. What you do when using a bootloader on the STM32 platform is in fact that you block your way to (easy) access the USB-Stack and waste the opportunity of rich debugging. I really can't understand this with 3$ ST-Link clones out there in the wild or the ability to use a second Blue-Pill as full blown ST-Link v2 Programmer.
      Please excuse the rant (not directed at you), I had to get this off my head:)
      Bonus: AN3156 USB DFU protocol used in the STM32 bootloader - Lists chipfamilies with integrated USB Bootloader, no need to roll your own.
      As always: RTFM :)

  • @Wolfram69756D
    @Wolfram69756D Před 3 lety

    Amazing! Thanks for this video! :)

  • @patric8283
    @patric8283 Před 3 lety +16

    To get the most out of the STM32 boards try using the STM32CubeMX and STM32CubeIDE development tools. Not as straightforward as the Arduino IDE but great for configuring all the hardware features

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +6

      You are right. But I use the Arduino IDE on this channel. It has many advantages, for example that we can use it for different architectures. And it has libraries. And most of my viewers use it.
      As you write, the cube environment is a very different world.... I had a short glimpse during the video production.

    • @farvezfarook3422
      @farvezfarook3422 Před 3 lety +4

      With the cube IDE it is very easy to configure pin functions , adc ,timer ...etc

    • @adlerweb
      @adlerweb Před 3 lety

      @@farvezfarook3422 Sure, but it's a closed program and hard/impossible to get running on anything but a few OS versions and hardware configurations. You can, however, use STM32CubeMX (which is based on Java) and PlatformIO (which sadly also limited their OS/Hardware support in the last months) to get a similar feature set.

    • @StephenHoldaway
      @StephenHoldaway Před 3 lety +2

      I've found CubeMX is useful for figuring out what configurations are possible without reading the datasheet cover to cover, but the code it generates is pretty marginal, and the STM32 HAL documentation isn't great either. Configuring USB endpoints with the code gen from Cube MX had me going in circles for a week of evenings as an experienced programmer; switched to libopencm3 and it was a breath of fresh air compared to the HAL 😅

    • @glewiss6696
      @glewiss6696 Před 3 lety +1

      @@StephenHoldaway But don't see a great tutorial on how to use libopencm3.

  • @ES-qe1nh
    @ES-qe1nh Před 2 lety +1

    Super video!

  • @sramctc
    @sramctc Před 3 lety

    've been learning a lot from you, Sir~~~ thx

  • @Ed19601
    @Ed19601 Před 3 lety +1

    I may give them a try. Thanks for the explanation

    • @robinrobinstrand
      @robinrobinstrand Před 3 lety

      Check out the mbedOS.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      You are welcome. A "test ride" is not very expensive...

    • @Ed19601
      @Ed19601 Před 3 lety

      @@AndreasSpiess i tried the black pill. Very nice board. But i miss the wireless. I may try it as an i2c slave for an esp01 or add an nrf24l01

  • @jasontay4704
    @jasontay4704 Před 2 lety

    I'd like to offer another perspective as well. We used NXP chips for years in our product, but we were still considered low volume, a small company making just a few hundred pieces a year - NXP never ever contacted us ever. Later we thought of switching to STM32, even at the point of deciding which STM32 to use, ST sent out an FAE to help us choose and decide and sent us samples even though we are in Malaysia, the FAE helped us all the way. When we had doubts, they helped us check internally within their organisation which way was the best way to fix it. So to me, I really respect ST, they really make an effort.

    • @AndreasSpiess
      @AndreasSpiess  Před 2 lety

      Seems to be a good company. Thank you for sharing your experience!

  • @migueljosemedinacarrillo420

    Mis respetos máster ❗muy útiles tus videos

  • @crckdns
    @crckdns Před 3 lety

    Danke fürs Video Andreas^^

  • @a1nelson
    @a1nelson Před 3 lety

    The square, black STM32F407 boards shown early in the video are my favorite STM32 option. They come with a header for the very inexpensive and popular NRF wireless boards. You can just plug it right in and start writing code. That combination doesn't provide functionality that's directly equivalent to the ESP modules, but for many applications, it's cheap, effective and super easy to work with.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      Unfortunately mine only has a 103 chip. It is quite old...

  • @kleindavid9416
    @kleindavid9416 Před 2 lety

    this is just awesome information

  • @GeekRedux
    @GeekRedux Před 3 lety

    The hilariously contrasting hand sizes at about 12:56 might be my favorite part of the video :D

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      You are right. This small hand seems to have a quite a few "fans"

  • @rbphilip
    @rbphilip Před 3 lety

    A very good video. Thanks!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      You are welcome!

    • @rbphilip
      @rbphilip Před 3 lety

      @@AndreasSpiess I have a handful of STM32 boards from work stuff and an ESP32 I bought a while ago. Perhaps I'll find some spare (ha!) time to do similar comparisons.

  • @pavankumar-ff9bo8zc5y
    @pavankumar-ff9bo8zc5y Před 3 lety +1

    I may not understand a lot of things related to microcontrollers and electronics (Still trying. I am only a computer science graduate), but boy does he deliver every single time. Bam bam bam. 💥💥 💥 Andreas has to be one of the top rated quality content creator/reviewer on youtube that exist today.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      Thank you for your nice words. I am glad you like my videos.

    • @pavankumar-ff9bo8zc5y
      @pavankumar-ff9bo8zc5y Před 3 lety +1

      Andreas Spiess Thanks to you!! 🙏🙏We get to see some amazing stuffs on your channel. You make it lot easy for hobbyists/electronic enthusiasts to make the right choice of components for their projects and also reduce the hurdle of setting up some of the components which otherwise would be tedious for most beginners like me. What amazes me is you walk into such great lengths in deducing/deciphering the components and explaining them, making it easy for the viewers to make the right choices. I can only imagine the amount of hardwork and dedication that has gone into each of your videos. Respect and total support ✊

  • @mattsaxey529
    @mattsaxey529 Před 3 lety

    Very helpful, very informative! I loaded a reel-to-reel data tape onto a mainframe (Univac?) when I did work experience (14 years old).

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      This was hard work back then. Bytes per kg were small back then

  • @DienNguyen-pm6fi
    @DienNguyen-pm6fi Před 3 lety

    very nice and detail video, thumb up

  • @varunkoganti9067
    @varunkoganti9067 Před 3 lety +6

    Mr. Spiess I use the stm33f103c8t6 (blue pill) with the cheap clone stlink V2 debugger , my experience is positive. I faced no issues.
    Edit - I only use ARM Keil cause I like C.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      It did not work with the CubeProgrammer, which is also used by the Arduino IDE. As said, it worked with PlatformIO.
      But in the meantime viewers pointed me in the direction of upgrading also the small programmers. And really I found one which was upgradeable. The first wo were not.

  • @UpcycleElectronics
    @UpcycleElectronics Před 3 lety +1

    Very helpful.
    I just got a F411 working with micropython 2 days ago. REPL for the win! No proprietary cube programmer tracker/spyware needed.
    I'm on Fedora Silverblue as well. So the toolchain is completely sandboxed, containerized, and independent of my OS. It will never break from Mr. Bill looking through my Windows and deciding to close his Gates.
    I used the micropython and mcauser github repos. I only needed the USB connection to the DFU bootloader for programming. The only hiccup I had was solved by reading the ../micropython/ports/stm32/README and using the suggested dfu-util (from Linux repos) instead of the utility packaged with micropython. This was probably due to the fact the user space I am running in is rootless.
    With Silverblue, a udev device rule needs to have permissions set to mode 0666 for the specific device while programming. Just having the user name added to the dialout group is not enough.

    • @cfeigel
      @cfeigel Před 3 lety +2

      This is great! I've seen mention of a BlackPill 2.0 board based on the F411 chip by a company called WeAct. Supposedly micropython is supported on it through paltform.io?
      micropython seems the way forward, now that we have sufficient processing power. I'd love to see Andreas load up micropython on the F11 and the ESP32 and compare some real sensor-handling code!

    • @UpcycleElectronics
      @UpcycleElectronics Před 3 lety +1

      @@cfeigel
      I haven't tried it with Platform IO yet. I can say, the python prompt works with a basic serial terminal emulator. I used sterm, a very simple terminal written recently in python 3. It's available with _pip install sterm_ and has easy to read and well commented source for hacking. I have also gotten as far as a connection to the onboard python prompt using PyCharm. I read a 2 page forum thread on μpy IDE options from 2018-19. The most recommended option there was the thonny.org IDE, PyCharm was a close second.
      PyCharm is available as a pre-containerized flatpak while thonny is not. Atom is also containerized, but it makes even more external IP calls than PyCharm. I whitelist firewall my workstation so I'm in control of most of my traffic. Punching holes in my firewall for an IDE is annoying.
      I probably won't use PyCharm either. I need to just suck it up and figure out the full jedi master Vim skilz

    • @UpcycleElectronics
      @UpcycleElectronics Před 3 lety +1

      @@cfeigel
      Definitely use Thonny! I got it working in an isolated toolbox container with $ dnf install thonny. It's the easiest, cleanest, most functional embedded hardware IDE I've ever seen, intuitive too. No nonsense.
      BTW, if anyone does this F411 thing, be sure to get the W25Qxx flash sop8 memory chip you need. After installing μpy without the external flash there's only 45k of the 512k flash left.
      You need to set the configuration bits to put μpy in the flash chip and set the size of chip in the ../ports/stm32/boards/WEACT_F411CEU6/mpconfigboard.h file. Supported chips in the config file are the W25Q16, W25Q32, W25Q64, W25Q128, (2MB/4MB/8MB/16MB). There is not a setting available for the Q256, although the chip does exist. The W25Q128 can be purchased for around $2 for x5, shipped, on AliEx, yes, even now, to me, in California, a week ago (Sept 2020).
      Follow the μpy documentation to start and on the blackpill:
      >>> import pyb
      >>> pyb.LED(1).on()
      >>> pyb.LED(1).off()
      ((!))
      mic drop

    • @cfeigel
      @cfeigel Před 3 lety +1

      @@UpcycleElectronics Nice! Thanks for the tips! I'll have to give Thonny a try (in my copious free time). This has the makings of a nice How-To document!

  • @khomo12
    @khomo12 Před 3 měsíci

    Great! Thank you!

  • @Cptnbond
    @Cptnbond Před 3 lety +17

    Awesome episode, and quite extraordinary that you got access to tax authorities computers for student education at night, such trust at old times.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +4

      I agree. This would no more be possible today. Nobody would take this risk.

    • @jackhoffman6120
      @jackhoffman6120 Před 3 lety +5

      During 1990 I tried to impress my girlfriend at the time and show her the various mainframe systems for the OEM computer company I was employed at.... at 2:00am in the morning. During normal working hours I had access to the computer room, but explaining to the company director what I was doing in the computer room at 2am might have proved difficult.
      .
      At the point my girlfriend and I returned to my car in the company carpark to depart which technically was "unauthorised access " a security guard arrived in his patrol car and very quickly entered the building to see what triggered the alarm system and fortunately for us did not see us in the carpark, so we were able to disappear unnoticed.
      .
      I wasn't aware that 24/7 computer room alarm monitoring service was installed as my access was normally during working hours.
      .
      I was an "idiot" logged in as "root" at 2:00am trying to impress my girlfriend and the company never found out what really occurred.
      .
      I had no malicious intentions as all I was trying to do was impress a lady who I was dating.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +2

      I hope it helped ;-) We all did a lot but remember only the things we should not have done...

    • @travelvideos
      @travelvideos Před 3 lety

      Same here. Asked to be locked into computer lab for nights to learn and program, but it was 90s and we had already IBMs.

  • @chuxxsss
    @chuxxsss Před 3 lety +1

    I got your show 1 hour after you put it up. While fixing a Samsung lcd TV.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      I assume you have a lot of spare time because you cannot watch TV ;-)

    • @chuxxsss
      @chuxxsss Před 3 lety

      @@AndreasSpiess No just want one for my background when doing vlogs. It was free, and I did repair them for Samsung for 8 months 11 years ago. So hopefully I can fix it. They are pretty simple.

  • @ted356
    @ted356 Před 2 lety

    I got a big chuckle of the comment about the Swiss Army knife. 😀

  • @christopherstimek5154
    @christopherstimek5154 Před 3 lety

    Great overview of STM32’s I have been looking for an overview. I have done a lot of work with MSP430’s and have been looking for something faster.

  • @jeffbornes3986
    @jeffbornes3986 Před 3 lety

    As Always I love your videos. I would like to know if you were running the ESP8266 at 80 or 160 mhz for your testing?
    Thanks

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      I used the standard settings for all boards. So it was 80 MHz for the ESP8266

  • @Richardincancale
    @Richardincancale Před 3 lety +1

    I’m glad you included Teensy at the end. For projects using sound they are very good, supporting I2S. And the add-on IDE is very easy to use. I was a PDP11 person, VAXes are a bit too modern!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      So you started probably a little earlier than me... We had a PDP11 at my first job. But when I worked with DEC it was the high time of VAX...
      The Teensy seems to be a well maintained product and the upload worked flawlessly, you are right.

    • @ristomatti
      @ristomatti Před 3 lety +1

      I think the add on IDE (for audio) only works for Teensy 3.x boards. I wanted to try some of that and bought a Teensy 4.1 only to notice this in the documentation after the fact. Teensy boards are quite expensive to buy from the Europe. I bought mine from The Pi Hut in UK, it was 29€. Wouldn't have bought unless I had other stuff for the same shipping cost.

    • @Richardincancale
      @Richardincancale Před 3 lety +1

      Ristomatti Airo Thanks for highlighting the audio question about Teensy 4.x. As you say the documentation for the audio IDE tool is all about 3.x, but lots of talk in their forums about audio on the 4.x - confusing! Apparently 4.x doesn’t have a built-in DAC so that may limit it’s use unless you add an external DAC.

    • @ristomatti
      @ristomatti Před 3 lety

      @@Richardincancale Interesting, it didn't occur to me to go check the forum. Thanks for the tip!

    • @ristomatti
      @ristomatti Před 3 lety

      @@Richardincancale The audio tool interests me mainly as it's based on Node-RED and I love Node-RED. 😁

  • @unomasenelmar
    @unomasenelmar Před 3 lety +1

    Excelente, gracias por iluminar a las bestias como yo, grandioso vídeo de presentación yo uso el stm401ce con programación HAL lo hace todo bien. Saludos

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      You are welcome. And thanks for sharing your experience!

  • @PauloSilva-ll4vs
    @PauloSilva-ll4vs Před 3 lety

    This video came in a good moment for me because, my blue pills arrived this week and I spent a big amount of hours trying to program the USB bootloader int it, I get it working using Caleb Marting instructions, every others I tried didn't work for me, but I am waiting my st-link arrive to forget the USB for blue pill it is a strange manner to program a chip, every time you program the virtual com port goes out and get back again a great nonsense, at least for me. Thank you Andreas for this great video...

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      This USB behavior is common for all boards using native USB. If you program it they stop to execute the USB code and are disconnected by the PC.

  • @jorgedelcastillo2811
    @jorgedelcastillo2811 Před 3 lety

    Good job, Andreas ¡¡¡

  • @jedandecko5585
    @jedandecko5585 Před 3 lety +2

    Teensy 4.1 soon :) Another great video, thank you.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      As said: I have no plans for the Teensy for the moment...

  • @madengineer6833
    @madengineer6833 Před 3 lety +1

    Great video!
    What do you think of the STM32 nucleo boards in combination with their HAL (hardware abstraction layer), which can be created with STM32CubeMX and the STM32CubeIDE (Eclipse C with integrated CubeMX)? It is more like classical programming in C rather than using the Arduino libraries but should be easier to use for standard-tasks than writing custom function handlers.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      I do not know how they handle sensors (libraries). This is why many of us like the Arduino IDE.

  • @yahmk3978
    @yahmk3978 Před 3 lety

    Thank you.

  • @sharpbends
    @sharpbends Před 3 lety

    I too started with IBM360 in the 70's and also now marvel at the size, power & cost of Teensy4.1 Esp32 and Pi zero etc. Imagine what we will be impressed with in another 10 or 20 years :-)

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      You are right: Time will give us better electronics. But still, current times are ideal for me. We get a lot of good stuff for a decent budget...

  • @gaeljaton
    @gaeljaton Před 3 lety

    To answer one of the last questions, teensy products (from 3.2 serie) is especially design for real time audio processing. For complex applications like quality reverb, vocoder or time/buffer based effects it requier lot of power. Then the add-on for arduino IDE "teensyduino" inclued lots of usefull libraries, like compliant MidiUSB and HID (keyboard / mouse / joystick / raw hid emulation) and a powerfull audio library with synthesizer patching tool in visual on-line editor, effects, samples manipulation (from on board sd card reader or rom)... As a digital artist, it's my prefered developpement boards for simplicity, power and good support (the developpers oftently answer you in person on the dedicated forum). But simplicity have a (little more) cost, so if you're not affraid and need lot of power in a small factor form, just go teensy!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      Thank you for showing me some examples for the usage of this power.

  • @dansdroids4067
    @dansdroids4067 Před 3 lety

    Great video, thanks! Ive had some good success with the WeAct BluePill-Plus and the supplied stm32duino compatible usb bootloader, had to use a ST-Link v2 to flash the bootloader without any problems.. it seems that WeAct is the same company that made the BlackPill..

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      They also have a nice GitHub page with a lot of info.

  • @mvadu
    @mvadu Před 3 lety +5

    Thank you for this in depth video Andreas. Given the omnipresent WiFi I think i am going to stick with Esp32.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +4

      You are right. Most of my projects profit from Wi-Fi. But for low power projects it might be an interesting choice.

    • @robinrobinstrand
      @robinrobinstrand Před 3 lety +1

      There is alot of STM32 microcontrollers with WiFi capabilities, check out mbedOS and go to their hardware overview

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +5

      I know. I just did not see boards on AliExpress with these chips. And no Wi-Fi lib for the Arduino. So for the moment they are not very useful for me...

  • @homelessrobot
    @homelessrobot Před 3 lety

    In the early 2000s i used to work at the university of alabama in their surplus warehouse, refurbishing and processing electronics and computer equipment so they could dispose of it, sell it, or reuse it. We would every so often get a 'mini' vax. About the size of a refrigerator.

  • @emilalmberg1096
    @emilalmberg1096 Před 3 lety +10

    I love your little embedded jokes.
    Hope you are well, your voice sounds strained.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +7

      I am well and I do not know why my voice sounds differently...

  • @jstro-hobbytech
    @jstro-hobbytech Před rokem

    Thanks!

  • @khalid_ba
    @khalid_ba Před 3 lety

    Two years ago, I ported OnStep, an open source telescope controller to the STM32F1. I used the Blue Pill, since it was cheap (US $2) and available from multiple sources (Amazon, eBay, AliExpress), unlike the Teensy at the time. The Blue Pills always came with 128K which is about enough for OnStep. Both STM32 and CKS chips worked perfectly with no issues for about a year and a half. Over 350 people built OnStep controllers based on the PCB I co-designed for the Blue Pill. We program the Blue Pill using PA9/PA10 and a USB to TTL adapter (FTDI, CP2102, CHG340).
    However, in the past few months we saw Blue Pills with only 64K and OnStep would not run. No idea what the issue is. It is impossible to guarantee that a Blue Pill has 128K before testing it, so this confuses users. We are looking into alternatives, including the Black Pill.
    I also ported OnStep to the STM32F4, and since we use stepper motors for it, I used a ready made 3D printer board (FYSETC S6 in this case). I program it using DFU without any issues.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Thank you for sharing your experience. Looking at your GitHub it seems you did not use the Arduino IDE for your project.

    • @khalid_ba
      @khalid_ba Před 3 lety

      @@AndreasSpiess It is definitely Arduino based.
      My github is just a fork of the main project, and not kept up to date, just when I have features and code changes.
      The project Wiki is here onstep.groups.io/g/main/wiki/3884
      The Blue Pill is only one low cost platform that can run it.
      groups.io/g/onstep/wiki/STM32F103-Blue-Pill
      You will also find videos in my playlist for the project
      czcams.com/video/tgzy1bFrGBc/video.html
      Oh, and thank you for your videos. I learn a lot from them, and loved the 1970s memories. My memories on computers are from the early 80s!

  • @123behoo
    @123behoo Před 3 lety

    Great video Andreas! Ever think of doing a video with microchip and LCD?

  • @drmocm
    @drmocm Před 3 lety +1

    If you break off the st-link from one of the nucleo boards, you can use it for other boards and also still connect it to the board you broke it off from.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Good tip. so far I did not try it. But maybe a good way to save money.

  • @MrCareyer
    @MrCareyer Před 3 lety +1

    Thank you very much for the really good video. Could you do a comparison or projects with K210 chips as well? These emerging buggers and the topic of "edge computing" and AI inference are somewhat missing on this channel which is a bit sad. Keep up the excellent work. 👌

    • @ristomatti
      @ristomatti Před 3 lety

      Everything AI/ML is still typically expensive and more or less vendor specific. It's also a very big rabbit hole to dive in. So is SDR/RF stuff which has been a topic several times but I assume it's because of Andreas' prior experience on the area.
      As an example, during the summer I bought a Jetson Nano to use it for IP camera object detection together with Node-RED. Eventually got it to work as I wanted but it was a lot of work. Countless hours of googling, waiting hours of library compilation, learning a little Python and in the end I still knew only the most basic terminology and had pretty much no idea what I was doing (just modifying example code).
      With that said, the edge computing stuff is an interesting topic. I just think we'll have to wait until it gets more mature tech with community maintained tools and easy to use abstraction libraries before we see any of it on this channel. This is just my opinion of course, Andreas is full of surprises! Do you happen to know of some hobbyist cheap solution that fits the criteria already existing?

    • @ristomatti
      @ristomatti Před 3 lety

      BTW I had never heard of K210 and googled it a bit. Is this something you were talking about www.seeedstudio.com/Grove-AI-HAT-for-Edge-Computing-p-4026.html? I agree that's not prohibitely expensive. Didn't yet read of the potential applications but will now.

    • @MrCareyer
      @MrCareyer Před 3 lety

      Ristomatti Airo Yes, this is what I was taking about. Google for MAIXbit and MAIXduino for example or for Huskylens to get an impression of what is possible. The boards are generally not more extensive than those of the ESP32 kind but they have way more power under the hood and can do some impressive stuff. This brings some fresh air to the work bench 😉

    • @ristomatti
      @ristomatti Před 3 lety

      @@MrCareyer I'll check these, looks interesting. If I see something cool, I'll tip Andreas about it on Patreon. :)

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +2

      @MrCareyer: It is on my list...

  • @amintayebi
    @amintayebi Před rokem

    Thanks for your videos, in case you put an experimental experience regarding sdi12 sensors using stm32 it would be so helpful for many people, as there is no existing sdi12 sensor library for stm32 which easily cold be used.

    • @AndreasSpiess
      @AndreasSpiess  Před rokem

      So far I never had a sensor with this interface :-(

  • @bertbrecht7540
    @bertbrecht7540 Před 3 lety

    This video cleared up so much confusion for me. Thanks!
    Are the Black Pill boot loaders located in a protected area of the flash where it does not get erased when larger scripts are written to it or if I set all flash bits to 0?
    Also, would love a video on the STM8.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      I assume they are in a protected space, but I do not know.

  • @PerchEagle
    @PerchEagle Před 3 lety

    Seriously ! Very interesting video about comparison with different boards, specs, interesting information ..
    I liked the how is the effectiveness of the STM32 memories compared with the larger ones in ESP32, because of the RTOS and wifi background running in ESP32.
    But is it that the ESP32 would be more beneficial compared to STM32 in wifi applications because of the builtin wifi ?

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Wi-Fi was covered in my last comparison video...

    • @PerchEagle
      @PerchEagle Před 3 lety

      @@AndreasSpiess oh .. ok so this comparison is about specifications regarding memory and performance ?

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Yes.

  • @klif_n
    @klif_n Před 3 lety

    Interesting look at the STM boards. I haven't yet tried one.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      Thank you. If no Wi-Fi is needed I think they are a good choice. Particularly for low power or ADCs. And if you need more pins.

    • @crckdns
      @crckdns Před 3 lety

      ..and if you need more hardware UARTs .. that's one of the points I was "missing" in the test - even though the test compared their power, not capabilities :) so no offence to the video meant!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      @crckdns: It would not be possible to compare all 1000 STM32 chips. They differ too much.

    • @crckdns
      @crckdns Před 3 lety

      @@AndreasSpiess your videos are great, you can do it, I believe in you! :D
      Not but for serious, there are only 2 of the F4 series, only 1 (maybe 2 if not high performance) of F7 series (F7 is great, take a look at them!) deserving a deeper review..
      UART is great for your viewers to know, they can talk with active sensors in real-time like GPS etc. ^^

  • @evolyenergy5916
    @evolyenergy5916 Před 3 lety

    Hello, What do you think of the newly released STM32WL for LoRa applications ? It seems like its the equivalent of an MCU + a LoRa transmitter (like a Atmega 328p + RN2483) at a smaller price if I understood correctly (correct me if I am wrong).
    Also on the same note, what is for you the best combination (MCU, Lora transmitter, antenna) to make a cheap, small & battery efficient node ? (simple one sensor node, humidity, temperature, tachymeter....) ?
    Thank you very much for your videos ! Very helpful and inspiring !!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Currently, I do not have an overview of all the modules. So I cannot answer. Maybe the differences are relatively small because all have to use the same chips and the same SW.

  • @timobreumelhof88
    @timobreumelhof88 Před 2 lety

    Thank you, again. :-)

  • @JanJeronimus
    @JanJeronimus Před 3 lety +1

    As always an interesting video.
    Regarding applications for these devices, perhaps MIPS does not tell everything. The boards shown in this video have more MIPS than a VAX! However is there word processing, spreadsheet or real database software for any of these boards? Perhaps one of your viewers know.
    On a VAX i used in a multi user environment MASS-11, 20/20 (S2020) and 1032.
    On a cheap Raspberry PI you can use office software.
    Also, a cheap micro-processor seems to be more dangerous than your knife. Perhaps someone if afraid that you would use it in your tank project?

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      I am sure they would have enough power for simple word processing as we knew it in the 1980s (I used a Z80 for that). But these days user comfort and graphics interface takes 90% of the power.

  • @CaliBeta
    @CaliBeta Před 2 lety

    Excellent 🔥📟👍

  • @ThatEgghead
    @ThatEgghead Před 3 lety

    Yeah, the Teensy ecosystem is amazing. I've not really played with the 4.x yet. But the 3.x line are fantastic. With the Snooze library, power consumption excellent. The audio GUI from PJRC is great. The forums & support are great.
    Only downsides I'm aware of are some people don't like anything closed source (the HalfKay bootloader & MKL02/MKL02 are required to program various Teensy's) and on that basis... I hope there are contingency plans to keep it going if anything ever happened to Paul (though I really hope nothing ever does of course!).

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Good to know! This is my first Teensy and, as said, I have not yet a project needing this power.

  • @glewiss6696
    @glewiss6696 Před 3 lety

    Thanks Andreas for this video that I was waiting for! One question. How to import libraries in the project in platformio like on arduino IDE? for instance wifi,blth shield library...
    Thanks

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      Maybe you watch a tutorial on PlatformIO. AFAIK it should take care of it automatically.

  • @ForOurGood
    @ForOurGood Před 2 lety

    So I have been working through all my microcontrollers to get them working with PlatformIO. It occurred to me the reason I sometimes blew up a Bluepills bootloader was caused by using wrong programming settings when switching between microcontrollers in the Arduino IDE (so many settings!). PlatformIO effectively makes that problem go away. To be honest I am reminded how fabulous and Arduino Uno like the Bluepills is with a bootloader installed. On the flipside dealing with the Blackpill has been a total pain to work with, I can't say I am loving it yet..

    • @AndreasSpiess
      @AndreasSpiess  Před 2 lety

      So we had different experiences with the Blackpill. It worked ok here…

    • @ForOurGood
      @ForOurGood Před 2 lety

      @@AndreasSpiess I got it to work, it turned out mostly to be some weird problem related to an old USB-3 port on my PC. First I tried to use the built-in WeAct bootloader.. but that is garbage. Now I am using DFU which works but is a pain pressing the button to program everytime. Also entering DFU mode is a bit flakey.. I would say that is the strength of the Bluepills HID bootloader as it behaves just like an Uno. Got my first ESP32 with USB-C yesterday, looks pretty nice but physically larger than I expected. At first it would not program without pressing the boot button, But I found a cheat of adding a 10uf cap on the EN pin that solved that. Loaded a little web server test program and connected it to my WiFi, overall a smooth experience.

  • @Hulker69
    @Hulker69 Před 3 lety

    There's also Adafruit's STM32F405 Feather Express, which while a more expensive dev board than the blue/black pills does have good support (Arduino and CircuitPython) plus they have connected an SD Card writer/reader connected using high-speed SDIO

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Adafruit's product generally have a good support, but are not easily available around the world :-(

  • @TMS5100
    @TMS5100 Před 3 lety +1

    You should do comparison of I/O as well. For example Nucleo 144 boards are really crazy.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      You are right about the I/O. But because all STM chops are different it is not possible to do a comparison in a video. It was already hard for me to get an overview about their numbering...

    • @hinkelstein4six
      @hinkelstein4six Před 3 lety

      @@AndreasSpiess f0 is based on Cortex M0, f1 is based on cortex M3, f2, f3, f4, l4, and g4 are based on Cortex M4, and f7 and h7 is based on Cortex M7. Cortex M7-types are the only ones with 64bit FPUs. Cortex M4-types have only 32bit-FPUs. Cortex M0 and Cortex M3 types don't have a FPU and the compiler uses only 32 it-arithmetic.

  • @herik63
    @herik63 Před 3 lety

    When I was younger I worked for a tpm for digital equipment material, I can’t believe that the enormous Vax780 is so slow compared with a esp32 :)
    Very nice materials in any case, than I worked for Sony for almost 30 years, and now I’m unoccupied! :(

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      Our industry is not easy if we approach a certain age. Good luck!

  • @MikesTropicalTech
    @MikesTropicalTech Před 3 lety

    My Uni in Canada had two VAX 11/780s and they easily supported a hundred terminals. Not great raw power, but great I/O. When I didn't want to walk to the computing centre through a blizzard, I dialed into the DEC maintenance modem with my TRS-80 Model 3. Ssh - don't tell anyone!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      Back then it was technically complicated to dial in. Today it is complicated because of all the corporate rules and the tools.

  • @petelynch9468
    @petelynch9468 Před 3 lety

    Yes. The final question: what is the application of very fast microcontrollers is a good one. I am sure they have many uses for commercial products. But as a hobbyist, I rarely find that low performance is a limitation for what I want.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Some viewers seem to be in audio and video (display). This needs some power.

  • @scottyanke655
    @scottyanke655 Před 3 lety

    The Nucleo boards all have the built-in ST-Link V2 part, which does make it easier. The ST-Link part can be separated from the Nucleo part, and the ST-Link part can be used as a full ST-Link programmer/debugger on other STM boards that don't have an ST-Link, like the blue pills. It's an added value if you get at least a couple of the Nucleo boards at the beginning, even if you use other STM32 chips. The Nucleo boards can still be used with the separated ST-Link part, or with an actual ST-Link, just using a few jumper wires.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Yes, you are right and this seems to be the idea. I probably still would spend the few dollars for a debugger in a case. Because it is nicer looking...

  • @GaMa998
    @GaMa998 Před 3 lety +2

    Hey,
    You might as well use the CubeIDE to test the faster F7 (and maybe even H7) if they're not supported by the Arduino IDE. It's really quite simple, eclipse based IDE.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      My problem was not the IDE when I looked at it. It was the completely different naming... And STM is not my main platform. Most of my projects still need WiFi

    • @joba1560
      @joba1560 Před 3 lety +1

      wanted to write about the same. I knew Arduino and PlatfoemIO. When I first looked at STM32s I tried Arduino and failed, tried PlatformIO and failed. Tried CubeIDE / CubeMX and had it blinking within an hour. All chips supported, not just some selected boards. Now I have a coin cell lora node that should run much longer than my ATTiny based node.

  • @DrTune
    @DrTune Před 3 lety

    I do embedded stuff for a living and the majority of gigs are on STM32 (of some sort). I use the STM32 System Workbench IDE (eclipse based) with CubeMX, or (better) Segger Embedded Studio. They're a very reliable choice and don't tend to have availability issues, never really had any serious unexpected problems, and - big win for the CubeMX addon for System Workbench, it's easy to migrate between devices when we decide we actually _do_ need CAN or whatever on a project;; the CubeMX code generation thing is pretty great for that.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Thank you for sharing your experience. For professional development these are probably good decisions.
      This channel is for Makers, where we do "rapid prototyping". This is why a lot of us use the Arduino IDE. Most of us anyway use ESPs as their main platform.

  • @ahasani2008
    @ahasani2008 Před 3 lety

    Thanks for the video, really enjoy and learn a lot from it. Seems like you have spare flash space in your benchmark sketch, could you kindly re run the stm32f4xx with -O2 flag (O2 flag is easily set in the Arduino IDE and in PlatformIO, just add "build_flags = -O2
    build_unflags = -Os"), During my test 168Mhz F4 can easily match 240Mhz esp32, if you overclock the F4 to 240Mhz it will leave the esp32 in the dust (though ESP32 has a dual core trick up its sleeve). Thanks again for your great videos

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      You are right. I tried double-precision Wheatstone on the F446 and it got 14.53 MIPS with this optimization instead o around 1 on default.

  • @pinealservo
    @pinealservo Před 3 lety +12

    Many Blue Pill boards have an incorrect resistor connected to USB which will cause many USB controllers to reject them. Even with the clone chips you should be able to get USB working if you replace the resistor with the correct value. But I agree, you should probably not buy Blue Pill boards.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +2

      I knew about the fact and checked my boards. They all had the correct resistor...

    • @gino.avanzini
      @gino.avanzini Před 3 lety +1

      Having the option of using an ST-LINK which enables debugging, USB bootloader is a big no for me. Also I use the cheap ST-LINK v2 without any problems. But I code using STM32CubeIDE, which is ST's official development environment, it is very good

    • @keen2461
      @keen2461 Před 3 lety +1

      @@gino.avanzini That's how a real engineer uses the STM32s. Using them with the "arduino" IDE is absurd.

  • @joachimbaumann731
    @joachimbaumann731 Před 3 lety

    My opinion: Blue Pills with an original STM32 processor work very well and I wholly recommend them for small to normal projects. But I program all of my STM32 using an ST-Link (the small ones, which can also be updated by the same procedure you showed). You can even modify the ST-Links to expose the SWDIO pin (which isn‘t really needed but you can do it...). You can even use FreeRTOS on a Blue Pill (only 2 tasks and a queue, but it works). With the larger ones FreeRTOS is a very nice way to structure your code. For bigger projects though the STM32F4 processors are definitely the right choice. And I mainly use STM32CubeIDE for development which I can also recommend.
    And thank you for another very good video, Andreas.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Thanks for sharing your experience. How do you deal with sensors (libraries) on with the CubeISE?
      And: After other comments, I found a third small programmer and this one was updateable. So I have 2 which cannot be updated and one which worked...

    • @joachimbaumann731
      @joachimbaumann731 Před 3 lety

      Andreas Spiess I first look here: stm32f4-discovery.net/, the author is employee of ST. Then I search whether somebody else has solved my problem and the fallback is to look in the STM32Duino project and Roger Clark‘s github repo.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      So you can use "Arduino" libraries in a Cube project?

    • @joachimbaumann731
      @joachimbaumann731 Před 3 lety

      Andreas Spiess You can take the source and use it in your own project... -

  • @science4allworld587
    @science4allworld587 Před 3 lety

    Hi Andreas... i have blue pill and had managed to program it with arduino ide using chinese st link adapter... had to do lots of tweaks, can't remember now though ;). More than a year old story.
    But amazing to know teensy working as Ferrari. I didn't knew they are so fast. Any idea if they are power hungry too? At 100s of MHz i believe they might be draining current too much?

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      I did not measure the current. Keep in mind that a Raspberry is even faster...

  • @rpavlik1
    @rpavlik1 Před 3 lety

    The stlink clones have another neat trick: their swd pins are usually accessible if you take them apart, which makes them suitable for turning into a variety of small USB projects in a nice case. (Eg they can become a gpg key with Gnuk) There are also other debugger cores that can be installed on them. Their internals vary widely, though, so if you find one you like, buy more from that vendor. I recently bought a batch that ended up having tvs (transient/esd) protection on all the pins, wow!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      Other viewers mentioned that you can flash them with Segger or blackbox. I will try this once. Seems to be possible also for the other ST-Links

    • @rpavlik1
      @rpavlik1 Před 3 lety

      @@AndreasSpiess yeah I don't think you can put segger jlink on the clones, but you can put it on the stlink built into the nucleo boards.

  • @darkstar2111
    @darkstar2111 Před 3 lety +5

    15:53 Still used for such purposes today :) CZcamsr Martian Colonist (British phd in astronomy) talks about that in one of his videos. BTW not that long ago NASA was looking for fortran developer to make some changes in Voyagers probes. Can you imagine debugging with 19h ping?

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +3

      If you know old languages of old frameworks you can earn quite some money, if they find you. And I hope they still have a mockup or test system around in Huston for debugging. Otherwise this would be a lazy job...
      When I started with Fortran I also had to wait sometimes hours for the output and we used our brains to avoid errors as much as possible. So maybe somebody knowing Fortran still works in this way...

    • @jean-marclugrin1902
      @jean-marclugrin1902 Před 3 lety +5

      @@AndreasSpiess Indeed, I was also allowed just 3 compilation a day: early morning, at lunch time and at the end of the day. And this was only possibly if you occasionally brought flowers or chocolates to the girls in charge of typing the punched cards. I now feel like a war veteran speaking endlessly of the old battles (and his young age). 😉

    • @MrRfaass
      @MrRfaass Před 3 lety

      @@AndreasSpiess Yes, I always try to have it right the first time... I am indeed from the no debugger time ha! I looked a week for a missing hash... A9 #00 is load zero with no hashtag that was load it from address 00 which was random at start up... (6502)