#353

  Рет қаралды 139,741

Andreas Spiess

Andreas Spiess

Күн бұрын

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.aliexp...
Blackpills: s.click.aliexp...
Teensy 4.1: amzn.to/3iPIn3k
STM-Link 2-1: s.click.aliexp...
ST-Link V2: s.click.aliexp...
Lots of STM32 info: stm32-base.org...
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...
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...
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
www.facebook.c...
/ spiessa
www.instructab...
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

Пікірлер: 851
@MiniLuv-1984
@MiniLuv-1984 4 жыл бұрын
The man with the Swiss accent does it again - another video of really useful information and comparisons. Thanks Andreas.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
My pleasure!
@eddybash1342
@eddybash1342 3 жыл бұрын
No, he is : ' The " guy " with the Swiss' accent '. ;)
@MiniLuv-1984
@MiniLuv-1984 3 жыл бұрын
@@eddybash1342 I have different speakers on my computer...
@eddybash1342
@eddybash1342 3 жыл бұрын
@@MiniLuv-1984 yeah, I am so happy for you ! ;)
@marleyemery5785
@marleyemery5785 3 жыл бұрын
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 4 жыл бұрын
that windows usb disconnect sound 12:57 left me scrambling by checking all usb port
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
:-))
@Dust599
@Dust599 4 жыл бұрын
you get what you deserve by running windows.
@TheInreamir
@TheInreamir 4 жыл бұрын
I was copying a really big file from my PC to HDD. 😅😅 mini heartattack.
@john-r-edge
@john-r-edge 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
This part I need to "borrow": " a similar level of chronological endurance" Since my first "computer" was an MEX6800D2 ....
@lohikarhu734
@lohikarhu734 4 жыл бұрын
@@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 4 жыл бұрын
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.
@lohikarhu734
@lohikarhu734 4 жыл бұрын
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 4 жыл бұрын
Now this answer took two days. But there were so many comments. An KZbin sorts the wrong way round :-(
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
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 4 жыл бұрын
Thanx, i wil try this.
@galileo_rs
@galileo_rs 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
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.
@sarveshk09
@sarveshk09 4 жыл бұрын
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 4 жыл бұрын
True. And the Blackpills offer even more...
@sarveshk09
@sarveshk09 4 жыл бұрын
@@AndreasSpiess Haven't used Blackspills yet, but gotta test them soon! So much improvement over the previous boards.
@Royaltea_Citizen
@Royaltea_Citizen 4 жыл бұрын
This guy is setting some high standards! Thanks for doing all of this for the community.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
You are welcome! If we do it, we do it right (learned from my father ;-)
@circadianrebel
@circadianrebel 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@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 4 жыл бұрын
Second that.. All of Bluepills I ordered (2+ years ago) from China came with bootloader installed.
@PerchEagle
@PerchEagle 4 жыл бұрын
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 4 жыл бұрын
@@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 :)
@peter.stimpel
@peter.stimpel 4 жыл бұрын
nice jumps into history, like that.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Me too. They are nice memories. And they come with a reason like that video...
@vijaysulakhe5605
@vijaysulakhe5605 3 ай бұрын
Excellent explanation and video, many THANKS. Hope you make more video about STM32 projects with Arduino IDE.
@AndreasSpiess
@AndreasSpiess 3 ай бұрын
The STM32 did not get a lot of tracktion in the Maker community :-(
@patric8283
@patric8283 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
With the cube IDE it is very easy to configure pin functions , adc ,timer ...etc
@adlerweb
@adlerweb 4 жыл бұрын
@@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 4 жыл бұрын
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 4 жыл бұрын
@@StephenHoldaway But don't see a great tutorial on how to use libopencm3.
@noweare1
@noweare1 4 жыл бұрын
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.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
True. And I love it!
@mikesnapper9001
@mikesnapper9001 3 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
Me too. They should be quite good.
@ristomatti
@ristomatti 4 жыл бұрын
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.
@amansaxena5898
@amansaxena5898 4 жыл бұрын
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 4 жыл бұрын
As I said: I have no use for that performance. So I also have no idea for a video :-(
@amansaxena5898
@amansaxena5898 4 жыл бұрын
@@AndreasSpiess 😕. Still, lived this nice video!
@jankomuzykant1844
@jankomuzykant1844 4 жыл бұрын
@@AndreasSpiess I think there should be something interesting for your radio hobby and teensy 4 github.com/DD4WH/Teensy-ConvolutionSDR
@varunkoganti9067
@varunkoganti9067 4 жыл бұрын
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 4 жыл бұрын
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.
@Electromakerio
@Electromakerio 4 жыл бұрын
We loved this project so much, that we featured it in this weeks episode of The Electromaker Show!
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Thank you, also for your very nice words! I wish you all the best with your show. I am already a subscriber.
@TheAoab50
@TheAoab50 4 жыл бұрын
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 4 жыл бұрын
You are welcome! And it seens this small hand has some "fans"...
@UpcycleElectronics
@UpcycleElectronics 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@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 4 жыл бұрын
@@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 4 жыл бұрын
@@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!
@tapizvolador
@tapizvolador 4 жыл бұрын
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 4 жыл бұрын
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!
@McTroyd
@McTroyd 4 жыл бұрын
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 4 жыл бұрын
Glad it was helpful! And enjoy the new "buddies"
@rodstartube
@rodstartube 3 жыл бұрын
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 3 жыл бұрын
We KZbinrs have to tell a story to stay interesting ;-)
@jasontay4704
@jasontay4704 3 жыл бұрын
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 3 жыл бұрын
Seems to be a good company. Thank you for sharing your experience!
@edwardcdg
@edwardcdg 4 жыл бұрын
Wow! You have organized an enormous amount of great information in this video. Many thanks from all of us!
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Glad it was helpful!
@skewedmaker
@skewedmaker 4 жыл бұрын
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 4 жыл бұрын
There are quite a few viewers of our age with similar experience on this channel. At least according the many comments.
@keithsafford3056
@keithsafford3056 4 жыл бұрын
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.
@pavankumar-ff9bo8zc5y
@pavankumar-ff9bo8zc5y 4 жыл бұрын
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 4 жыл бұрын
Thank you for your nice words. I am glad you like my videos.
@pavankumar-ff9bo8zc5y
@pavankumar-ff9bo8zc5y 4 жыл бұрын
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 ✊
@khalid_ba
@khalid_ba 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@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 kzbin.info/www/bejne/qpjdqmSYe9d6eMU 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!
@midiup
@midiup 4 жыл бұрын
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 4 жыл бұрын
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"
@Cptnbond
@Cptnbond 4 жыл бұрын
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 4 жыл бұрын
I agree. This would no more be possible today. Nobody would take this risk.
@jackhoffman6120
@jackhoffman6120 4 жыл бұрын
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 4 жыл бұрын
I hope it helped ;-) We all did a lot but remember only the things we should not have done...
@travelvideos
@travelvideos 4 жыл бұрын
Same here. Asked to be locked into computer lab for nights to learn and program, but it was 90s and we had already IBMs.
@gregorymccoy6797
@gregorymccoy6797 3 жыл бұрын
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 3 жыл бұрын
Thank you for your nice words. I create my videos in a way I would also like them on other channels.
@marklewus5468
@marklewus5468 4 жыл бұрын
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 4 жыл бұрын
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 :-(
@luizcassettari
@luizcassettari 4 жыл бұрын
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 4 жыл бұрын
You are right. I learned it from other viewers and tried all of my sticks. 1 of 3 was also upgradable...
@pinealservo
@pinealservo 4 жыл бұрын
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 4 жыл бұрын
I knew about the fact and checked my boards. They all had the correct resistor...
@gino.avanzini
@gino.avanzini 4 жыл бұрын
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 4 жыл бұрын
@@gino.avanzini That's how a real engineer uses the STM32s. Using them with the "arduino" IDE is absurd.
@homelessrobot
@homelessrobot 3 жыл бұрын
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.
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
And very expensive when they were new...
@circadianrebel
@circadianrebel 4 жыл бұрын
The early revisions of the chinese bluepills have an error in the design; there is a resistor with the wrong value. The result is the USB implementation is out of spec and unreliable. Depend on the PC's USB host controller and a couple other factors it may work fine, may work unreliably, or may fail entirely. There is a newer revision of the board that has the same STM32F103, but fixes the resistor value (and IIRC removes the 32.768kHz crystal used by the RTC). The new revision is on a black PCB so was often called the blackpill, which is just confusing with the new STM32F411 based boards also being called blackpills. You can replace the resistor on the original bluepill boards to fix the USB, but as you've probably figured out SWD is better anyways.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
I read about the wrong resistors. So I checked all my boards and I was fortunate. Nothing to change. But all of them are blue. My Blackpills also had the right chips.
@Richardincancale
@Richardincancale 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@Richardincancale Interesting, it didn't occur to me to go check the forum. Thanks for the tip!
@ristomatti
@ristomatti 4 жыл бұрын
@@Richardincancale The audio tool interests me mainly as it's based on Node-RED and I love Node-RED. 😁
@DrGreenGiant
@DrGreenGiant 4 жыл бұрын
Firmware guy here as my day job working on STM32 H7 and G0, alongside a ESP32 . Also home hobby guy, formerly on Arduino but now on ESP8266, 8285 and ESP32. Biggest issue I find for the ESP32 in commercial products is the immaturity of the IDF. It's constantly changing and has bugfixes almost daily. It makes developing a product on it a monumental pain in the bum. STM32 doesn't have this issue but the manufacturer hardware code is considerably more simple in terms of just am API to the hardware, not great for hobbyists. The ESP IDF has full working source code and projects, so much better for hobbyists. I love both to be honest, I have a soft spot for the ESPs, I really like them. Never used them in the Arduino environment though, in fact I've not used the Arduino IDE for many years
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
You are right. I can imagine that a stable development system is a big part of a business decision. Fur us Makers the "rapid prototyping" aspect is probably a bit more important...
@DrGreenGiant
@DrGreenGiant 4 жыл бұрын
@@AndreasSpiess Indeed. It is a nightmare when the boss says you want the new feature that's just been announced, so you update the API and everything else breaks because it is so fluid! On the other hand, for my home hobby projects it is awesome!
@gaeljaton
@gaeljaton 4 жыл бұрын
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 4 жыл бұрын
Thank you for showing me some examples for the usage of this power.
@darkstar2111
@darkstar2111 4 жыл бұрын
15:53 Still used for such purposes today :) KZbinr 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 4 жыл бұрын
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 4 жыл бұрын
@@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 4 жыл бұрын
@@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)
@krystofvydra
@krystofvydra 4 жыл бұрын
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 4 жыл бұрын
Thank you. MCUs and RF happen to be the most interesting things for me ;-)
@a1nelson
@a1nelson 4 жыл бұрын
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 4 жыл бұрын
Unfortunately mine only has a 103 chip. It is quite old...
@John_Smith__
@John_Smith__ 4 жыл бұрын
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 4 жыл бұрын
You are welcome! My history fitted well int this video...
@GeekRedux
@GeekRedux 4 жыл бұрын
The hilariously contrasting hand sizes at about 12:56 might be my favorite part of the video :D
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
You are right. This small hand seems to have a quite a few "fans"
@cbm80amiga
@cbm80amiga 4 жыл бұрын
5:47 Andreas, it is not fair to compare flash size with 3-4x more expensive ESP32. Compare it with Pro Mini or Nano which have 32k only. And 64k is not true because "genuine" bluepills have 128k. And they are cheaper than AVR Arduinos. A few months ago I purchased bunch of bluepills for $1.4 only. Perfect and cheaper AVR replacement. But cannot be compared to ESP8266/ESP32 - completely different applications. MCUs are not computers. Typical electronics engineer will not compare MIPS but rather number of SPI, I2C, CAN buses, speed of SPI/I2C, number of ADCs, general purpose IOs, lowpower modes, etc.
@JinQian
@JinQian 4 жыл бұрын
Actually, the "genuine" C8T6 bluepills are 64k.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
I do no more use a lot of Atmel chips for my projects. So I was not interested too much in this comparison. I agree with your remark on IO instead of MIPS. Last time I used IO operations in my benchmark and was criticized. Now I used MIPS and am criticized again ;-) I think that the Dhrystone benchmark has a good relation with typical programs using I/O and logic. I checked my Bluepills and the cube programmer only showed 64k. So I was probably unlucky.
@cbm80amiga
@cbm80amiga 4 жыл бұрын
@@AndreasSpiess I still use Pro Mini in some projects because of ... its size. I miss STM32 or ESP equivalent, less pins but smaller size (I know that there are small STM8 boards). And the price matters. If it didn't I could use expensive RPi or OrangePi for all projects :) I'm not criticizing you, but such comparizon WiFi chip vs no-Wifi has no sense. There is no the best solution. Everything depends on what you want to do.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
@Philipp: How do you check tis fact? My Cube programmer showed 64k on all my newly purchased Bluepills.
@cbm80amiga
@cbm80amiga 4 жыл бұрын
@@AndreasSpiess If you have bluepill with original STM chip - it has 128k, if it is Chinese fake "CKS" it probably has 64k. How to check it. In Arduino IDE there are 2 options - 64 and 128k, long enough sketch crashes on real 64k.
@1DR31N
@1DR31N 3 жыл бұрын
Thank you for another enjoyable video full of useful information. Great job again.
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
My pleasure!
@JerryEricsson
@JerryEricsson 4 жыл бұрын
Greetings from the high plains of South Dakota! I am sort of coming out of my slump brought on by the death of my wonderful wife of 51 years and 4 days. It has been 31 days since her passing, and I can, at long last, make it most of the way through the day with out tears, unless something happens to set me off. At any rate enough about my life in the frozen North Country, which right now is sitting at a lovely 65 degrees with a bright sun and balmy wind out of the West. Many moons back I saw a deal on a pair of brand new, in the shrink plastic STM32 DISCOVERY boards. I got them for a couple bucks with free shipping, I opened one and the other is in a drawer gathering dust because, unlike the add on Ebay, I have never been able to do much except make the two LED's blink. Have you any experience with these little boards? They do come with a built in programmer, and a USB plug. I also have a little blue pill that I picked up many years ago that still lays in the box. I have had it up and running and did manage to get into it and do a bit of playing so I know I used to be able to make it work, I have long since forgotten how I did that, but I am sure I can look at your videos and take that little course and be back up and running with it. I think the DISCOVERY board labeled MB913C with the ARM chip 32F100 RBT6B should work for some project, somewhere, some time if I could only figure out what, when and where to make it do something useful.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Glad to read that you recovered a little! Looking back is always important. But looking forward is more important because we can change the future, not the past. I am sure you will never forget her. But she would want you to look forward, I am sure. Concerning the Discovery boards: There is a list of supported boards in the STM32duino project. At a short glimpse, I did not see the number you wrote above.
@ted356
@ted356 2 жыл бұрын
I got a big chuckle of the comment about the Swiss Army knife. 😀
@AndreasSpiess
@AndreasSpiess 2 жыл бұрын
:-)
@mvadu
@mvadu 4 жыл бұрын
Thank you for this in depth video Andreas. Given the omnipresent WiFi I think i am going to stick with Esp32.
@AndreasSpiess
@AndreasSpiess 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 4 жыл бұрын
There is alot of STM32 microcontrollers with WiFi capabilities, check out mbedOS and go to their hardware overview
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
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...
@GaMa998
@GaMa998 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
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.
@sharpbends
@sharpbends 4 жыл бұрын
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 4 жыл бұрын
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...
@emilalmberg1096
@emilalmberg1096 4 жыл бұрын
I love your little embedded jokes. Hope you are well, your voice sounds strained.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
I am well and I do not know why my voice sounds differently...
@MikesTropicalTech
@MikesTropicalTech 4 жыл бұрын
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 4 жыл бұрын
Back then it was technically complicated to dial in. Today it is complicated because of all the corporate rules and the tools.
@citadelik
@citadelik 4 жыл бұрын
I use only F7 chips when I build drones (even the f4 chips are getting dropped from several drone software projects because of flash and CPU limitations). One reason is I can run the IMU at much higher update speeds making for a much more stable and responsive drone. I also recently got a Color Maximite 2 which uses a Waveshare CoreH743I at its heart (480Mhz) and has a graphics accelerator. The F7 boards are not that much more expensive and provide another jump in performance over the F4's. I'm building a Micropython equivalent of the Color Maximite 2 and really enjoy working with the F7 series. Regarding the Teesny I use mine to update a RGB matrix board without flicker. I tried a ESP32 and can get it to work but had to do extra coding to reduce flicker. That was with a Teensy 3.1 board.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Thank you for sharing your experience. Not many people commented that they use the F7/H7 chips. But I agree. The boards are cheap compared with the smaller ones.
@drmocm
@drmocm 4 жыл бұрын
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 4 жыл бұрын
Good tip. so far I did not try it. But maybe a good way to save money.
@klassichd10
@klassichd10 4 жыл бұрын
Thanks for the great overview and comparision!
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
My pleasure!
@scottyanke655
@scottyanke655 4 жыл бұрын
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 4 жыл бұрын
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...
@petelynch9468
@petelynch9468 4 жыл бұрын
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 4 жыл бұрын
Some viewers seem to be in audio and video (display). This needs some power.
@DutchBigEd
@DutchBigEd 3 жыл бұрын
The board you show at 7:52 has an STlink that can be broken off the main board. That’s what I did and I use that STlink to program my bluepills with the Arduino IDE. This STlink has a number of pins to the right hand side of the usb connector and I use three of them for programming the bluepills..
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
You are right. These are full STlink programmers! A few other commenters also wrote they do it like that.
@Spacedog49
@Spacedog49 4 жыл бұрын
I learned FORTRAN on an IBM 360 that used 80-column punch cards. To gain access to the university's 360 I had to take an upper level programming class. The professor just walked in, gave the required assignment to pass the class, and walked out. We did not see him again until the end of the semester. I use my Teensy 4.1 for "special" high speed aerospace data collection and control projects. I have not used it as much as I would like due to support and knowledge issues. If I run into a problem, I revert back to an STM32 or SAMD21. I need to collect data and not resolve hardware or software issues.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
This was a real lazy teacher, I think. But it seems you found your way... Concerning support: Engineers are not known as the best documenters. Without some formal processes, documentation is always coming last... And sometimes never.
@Spacedog49
@Spacedog49 4 жыл бұрын
@@AndreasSpiess I did choose the class knowing the professor was lazy. In four weeks all in the class had completed the class requirements. That gave me ten weeks of access to the IBM 360 to run my aerospace and rocket propulsion programs. Yes, I developed bad programming habits that were not corrected until I worked with a great consultant, Carl Todd; he showed me a better method of subroutine programming. I also had to document everything for Carl's approval. Now, I fly the equivalent of an IBM 360 in my model rockets. Keep the videos coming. I do enjoy them. I'm currently working on projects utilizing the ESP8266.
@Ed19601
@Ed19601 4 жыл бұрын
I may give them a try. Thanks for the explanation
@robinrobinstrand
@robinrobinstrand 4 жыл бұрын
Check out the mbedOS.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
You are welcome. A "test ride" is not very expensive...
@Ed19601
@Ed19601 3 жыл бұрын
@@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
@maglevize
@maglevize 4 жыл бұрын
Teensy 4.1 for driving px rgb panel matrix. Large matrix panel
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
So it is not only large, it must be huge ;-)
@ForOurGood
@ForOurGood 2 жыл бұрын
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 2 жыл бұрын
So we had different experiences with the Blackpill. It worked ok here…
@ForOurGood
@ForOurGood 2 жыл бұрын
@@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.
@mattsaxey529
@mattsaxey529 4 жыл бұрын
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 4 жыл бұрын
This was hard work back then. Bytes per kg were small back then
@herik63
@herik63 3 жыл бұрын
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 3 жыл бұрын
Our industry is not easy if we approach a certain age. Good luck!
@joachimbaumann731
@joachimbaumann731 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
So you can use "Arduino" libraries in a Cube project?
@joachimbaumann731
@joachimbaumann731 4 жыл бұрын
Andreas Spiess You can take the source and use it in your own project... -
@JanJeronimus
@JanJeronimus 4 жыл бұрын
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 4 жыл бұрын
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.
@henrydokie
@henrydokie 3 жыл бұрын
Great content! Informative and clear, I was able to learn a lot.
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
Glad you enjoyed it!
@dreamcat4
@dreamcat4 4 жыл бұрын
A lovely video, thank you so much. Learned some useful info!
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Glad you enjoyed it!
@a1nelson
@a1nelson 4 жыл бұрын
It's probably worth mentioning that the SWD half of the Nucleo boards can be easily snapped off and used with any other STM board - not just the ones made by ST Microelectronics. So, if you have just one nucleo board, there's no need to buy another debugger for use with any other project. It can also be software upgraded to act just like a Segger J-link. (The upgrade is provided free of charge from Segger, interestingly.) The Segger J-link can be used with a vast array of Arm based boards - not just STM32 chips.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Thanks for the info. That is what I will try with one of my boards.
@a1nelson
@a1nelson 4 жыл бұрын
@@AndreasSpiess No problem. Here's the Segger upgrade info: www.segger.com/products/debug-probes/j-link/models/other-j-links/st-link-on-board/ I've forgotten the exact steps required to allow the Nucleo debugger to work independently. It's been a little while since I did it. I have also changed companies in the meantime, so I can't go and look at the board. A quick search turned up this GitHub page. But, the thing is, I don't think the instructions are quite right. Or, at least they don't match those from the ST app note. You do have to close a few solder jumpers - which makes sense - but I definitely did not have to add a header. Maybe the GitHub instructions simply refer to a older version of the Nucleo boards - I'm not sure. I'll do a little more digging, and if I find the app note, I'll update the comment. gist.github.com/jj1bdx/b78b3747196fd303f49d829a7e36ed8d It the video, I think you showed the ST-Link V2. The ST-Link V3 Set is a really nice upgrade, with a lot of helpful features beyond just SWD - and not only for STM debugging. Among other things, it also operates as a USB virtual/TTL serial port, with CTS/RTS pins available, and has "Multi-path bridge USB to SPI/UART/I2C/CAN/GPIOs". It could be called the Swiss Army Knife of microcontroller debuggers. At 35 USD, it's a no-brainer. It's one of the better tools I've ever purchased. www.st.com/en/development-tools/stlink-v3set.html
@DrTune
@DrTune 4 жыл бұрын
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 4 жыл бұрын
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.
@RickB3n
@RickB3n 4 жыл бұрын
TIP for ST Nucleo users on W10:I made the mistake of connecting the "Nucleo 32 L432KC" board without having first installed the drivers of the "STlink-2". Now the Microsoft default drivers have been installed and even though the card is seen as a disk, I can't program it. I can't even delete the Microsoft drivers, since they reinstall themselves automatically. It's important to install first the driver and after you can connect the boards to avoid this. Andreas thank you for great contents.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Thank you for your tip!
@RickB3n
@RickB3n 4 жыл бұрын
@@AndreasSpiess I managed to solve by installing the drivers through the installation of STM32CubeIDE, after which I updated the firmware of the ST-LINK from: STM32CubeIDE> HELP> ST-LINK Upgrade.
@jackhoffman6120
@jackhoffman6120 4 жыл бұрын
Excellent video! . The information re. ST-LINK was/is priceless. I had already bought two cheap ST-LINKs and blue pills on Aliexpress, so you saved me a lot of frustration when I would get around to them. . Re. IBM 360. I know the architecture very well. If "Interdata" or "Perkin Elmer" or "Concurrent Computer Corporation" (which were subsequent name changes) mean anything to you then you would know they were real time systems based on IBM 360 architecture. . It was called IBM 360 because there are 360 degrees in a circle, therefore "all round". In other words "All Round Solution" Clever hey! . I miss the old days!
@a1nelson
@a1nelson 4 жыл бұрын
I have never heard that explanation for the 360. That's a cool little detail. Was that actually used in there marketing literature?
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Re ST-Links: It seems that some of the small programmers can be upgraded, too (1 out of three in my case). Re IBM360: I did not know that. These mainframes were our main enemy when I worked for DEC ;-) . And I remember "Perkin Elmer", for sure.
@jackhoffman6120
@jackhoffman6120 4 жыл бұрын
@@a1nelson I honestly have to tell you that this was classroom "hearsay". Several years ago (30?) I attended an IBM 360 architecture training course and this is what the instructor said. I would need to do more research to confirm if this is true. . . After further "Google research" I can confirm that the "IBM 360" had this name because 360 degrees means "all round", therefore "All Round Solution".
@a1nelson
@a1nelson 4 жыл бұрын
@@jackhoffman6120 Cool. I haven't been in the game quite long enough to have used a 360, but we did purchase a beefy AS/400 when they were the new hotness. Thanks for the history lesson and your research. I did develop a bit of software for DEC equipment way back in the day, but that's now so far back that I'm not even sure I could still do it. Haha
@jackhoffman6120
@jackhoffman6120 4 жыл бұрын
@@a1nelson As a student in the early 80s I wrote an entire unprotected (memory management was not used and reserved instructions enabled) operating system for a PDP-11 which conceptually was the same as MS-DOS (not Unix). The course tittle was "computer hardware" which required students to develop device drivers for various hardware elements of the PDP-11. By the time we got to the final project we had a "terminal driver" a "floppy disk driver" a "printer driver" and a very basic file system. The teachers were very clever because they didn't state in the curriculum that we would be developing an operating system, but only on completion of the course did I realise that I developed something as crappy (less refined) as MS-DOS. Did you know that Motorola 68K architecture was identical to DECs PDP-11? The instruction set is identical. Many systems were "clones" of others. Wang's VS was a copy of IBM's 370. Many of the leading design engineers would develop technology for one OEM and then move on to another OEM and develop technology based on the same ideas, so sometimes you could see trends occurring in the industry.
@shreyaskul
@shreyaskul 4 жыл бұрын
Instead of buying those cheap ST-Link clones, you can convert a cheap Blue pill as a st-link by flashing the ST-Link firmware to it or better flashing black magic probe firmware on bluepill. The built in ST-Link on Nucleo boards use the same STM32-F103C8T6 chip as the bluepill :) The black magic probe is much more versatile as it can program any JTAG programmable microcontroller, and it is supported by OpenOCD. I have used my Bluepill to dump and reprogram few NRF51 based boards.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Good information. One question: I thought, PlatformIO uses OpenOCD for debugging. And this worked, even with the cheap ST-link. I will have a look on how to create a black magic probe with one of my Bluepills. Do you have any useful link?
@shreyaskul
@shreyaskul 4 жыл бұрын
@@AndreasSpiess As far as I know, platform IO uses GDB (GDB server runs on the STLink or Black Magic Probe), you can use either ST-Link or Black Magic Probe for debugging, they both work identical ways but the ST-Link is limited to only ST products (atleast officially) but Black magic probe supports many different targets. If you want I can provide you my prebuilt Black Magic Probe binary image for F103 and instructions how to flash it using DFU mode (No ST-Link needed!) docs.platformio.org/en/latest/plus/debug-tools/blackmagic.html medium.com/@paramaggarwal/converting-an-stm32f103-board-to-a-black-magic-probe-c013cf2cc38c satoshinm.github.io/blog/171223_jtagswdpillblink_jtagswd_debugging_via_black_magic_probe_on_an_stm32_blue_pill_and_blinking_a_led_using_stm32cubemx_libopencm3_and_bare_metal_c.html
@shreyaskul
@shreyaskul 4 жыл бұрын
@@cambouiscom For ST Microcontrollers obviously ST-Link is far better with up to date target support from ST itself, it totally depends on the target MCU.
@PauloSilva-ll4vs
@PauloSilva-ll4vs 4 жыл бұрын
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 4 жыл бұрын
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.
@pranavsrinivas4299
@pranavsrinivas4299 4 жыл бұрын
Exactly what I needed right now. Thanks.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Glad I could help!
@amintayebi
@amintayebi 2 жыл бұрын
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 2 жыл бұрын
So far I never had a sensor with this interface :-(
@MoraFermi
@MoraFermi 4 жыл бұрын
Perfect application for such powerful boards? How about building a fully functioning s/390 front panel!
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
You might have heard: I was a DECie. We would never touch an S/390 nor a Token Ring ;-) We had our biggest fights against the IBM salesmen back then.
@TMS5100
@TMS5100 4 жыл бұрын
You should do comparison of I/O as well. For example Nucleo 144 boards are really crazy.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
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 4 жыл бұрын
@@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.
@BenjaminEggerstedt
@BenjaminEggerstedt 4 жыл бұрын
Great, a new video! Thanks, Andreas!
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Glad you liked it!
@jedandecko5585
@jedandecko5585 4 жыл бұрын
Teensy 4.1 soon :) Another great video, thank you.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
As said: I have no plans for the Teensy for the moment...
@MrCareyer
@MrCareyer 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@MrCareyer I'll check these, looks interesting. If I see something cool, I'll tip Andreas about it on Patreon. :)
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
@MrCareyer: It is on my list...
@shams350z
@shams350z 2 жыл бұрын
You can find more stm32 boards from the variant folder which is inside the arduino core packages
@AndreasSpiess
@AndreasSpiess 2 жыл бұрын
You are right. The add more boards with every release
@philipeledenier5135
@philipeledenier5135 4 жыл бұрын
Hi Andrea, Thanks for this complementary video. One thing is not right: I program these boards with a cheap STLink v2. I don't remember if I had to upgrade the firmware. Also one bad point regarding the STM32 is what you experimented: things stop working, board not correctly enumerated under windows even though you finger dance with the buttons and also the Arduino core STM32 is a work in progress. I also focus on STM32F401 chip now because it is much more performing then the STM32F103. But you can find blue pills with 128 kb flash (STM32F103CBT6). Apparently most actual blue pills have this chip. And since the bluepill is well known it is still interesting even though much less performing.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
I tried now another one and it was updateable. Two were not and the third worked... So I would still be cautious because I did not know which one I get when I ordered.
@philipeledenier5135
@philipeledenier5135 4 жыл бұрын
@@AndreasSpiess Isn't it related to the firmware version? www.st.com/resource/en/release_note/dm00107009-firmware-upgrade-for-stlink-stlinkv2-stlinkv21-and-stlinkv3-boards-stmicroelectronics.pdf
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
In the meantime I was able to program all of them. I had to unplug and re-plug the sticks till they were upgradeable. I created a comment and pinned it so everybody sees it.
@pauldusa
@pauldusa 4 жыл бұрын
I'm a retired 65 guy in usa,, lol, vic 20 in the 70"s, FORTRAN, cabal, ASS lang in 75 collage, UV Eproms, a maker since the 70's, I guess i'm a life long Nerd,, never had kids, but, in a way same as you,, projects since making since a kid.. no drama in being a Maker,, great brain smarts...
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Or keeps the brain smart also if we get older...
@ES-qe1nh
@ES-qe1nh 2 жыл бұрын
Super video!
@AndreasSpiess
@AndreasSpiess 2 жыл бұрын
Danke!
@pjaj43
@pjaj43 4 жыл бұрын
It sounds as if our careers have some parallels. In the mid 1960s I taught myself Fortran from the programmer's manual and was running it on a 360/30. With a different company, we were using VAX 11/780 in around 1980
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
I was probably a little later. In the 1960 I was still too young for programming... I started in hte 1970 and around 1979 I had my first home computer (TRS-80).
@doggo7567
@doggo7567 4 жыл бұрын
The hastag in the video title is just '#no' without the 'midrollads', I think you may have forgotten it :D
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Thank you for the info. I did not forget it, but added a dash between the words. Obviously, KZbin does not like that ;-)
@EliSpizzichino
@EliSpizzichino 4 жыл бұрын
great video! this overview saves tons of time!
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Glad it helped!
@christopherstimek5154
@christopherstimek5154 3 жыл бұрын
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.
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
Glad it was helpful!
@nektarioskourakis8331
@nektarioskourakis8331 2 жыл бұрын
Great video ! A request: show us an easy tutorial: a nanosecond timer with maybe powerful MCU .A trigger that switch on a device and a pin maybe analog with a threshold (512) that stops the timer . The time period last less than 50 nanoseconds.
@AndreasSpiess
@AndreasSpiess 2 жыл бұрын
What would be the use of such a timer?
@nektarioskourakis8331
@nektarioskourakis8331 2 жыл бұрын
@@AndreasSpiess An ambitious goal for a physics teacher like me, to measure the speed of light with a microcontroller
@AndreasSpiess
@AndreasSpiess 2 жыл бұрын
I would never use a microcontroller for that. But I am an engineer ;-) I get TOF sensors which do exactly that for a few dollars.
@nektarioskourakis8331
@nektarioskourakis8331 2 жыл бұрын
@@AndreasSpiess ok i will search your info, but TOF use mcu and laser-infrared to measure ? or other way?IF so can i build to reverse way ,to measure the speed of light with distance and time?
@AndreasSpiess
@AndreasSpiess 2 жыл бұрын
They measure the time the light needs to a reflector and back and provide this value to the MCU (through I2C)
@waynet8953
@waynet8953 4 жыл бұрын
That's why I switched from Arduino to STM development environment a couple of years ago. STM also has a code generator environment; don't need much coding.
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
I probably would miss all the libraries...
@YigalBZ
@YigalBZ 4 жыл бұрын
Fortran and VAX bring old memories, like the punched cards and paper stripes. Each byte was counted and was optimized. Actually, count of bytes was more important than human time, while now programmers' time costs more. Same thing is with chip design today - use of high level languages and compiler, rather looking at every gate and flipflop. This allows us to use amazingly fast small controllers.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
This is exactly how I feel. But when I made my "Is it time to say goodby to Arduino" video I got a lot of resistance in the comments...
@YigalBZ
@YigalBZ 4 жыл бұрын
@@AndreasSpiess Agree! Perhaps we are all open minded about changing things our parents used to do, but very conservative about what we are used to. I did many projects with Arduino (Nano mostly), and gladly moved to ESP32, and now to Wemos mini - a whole new world. A whole new world. Yet I still keep many Nano's boards. Just in case......
@rpavlik1
@rpavlik1 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@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.
@KC-yk5xe
@KC-yk5xe 4 жыл бұрын
haven't got any problems on my bluepill, I even trusted it to be the brains of my drone... but ill buy those black ones
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Which Arduino core and which bootloader do you use?
@rpavlik1
@rpavlik1 4 жыл бұрын
Another problem with the blue pills: the f103 is a very old (over 20 years, one of the first cortex m3) and buggy core. The i2c peripheral is shared with the stm8 and almost fatally buggy, etc. The f4 chips are much newer. The various L chips, even the L0, are also much newer and often better in most use cases, I've heard. Stm also makes "discovery" boards which have a bunch of onboard peripherals in addition to the stlink. Never had one but they look neat if the peripheral collection is useful to you
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
You tell that they were not able to correct the errors in the core for more than 10 years?
@rpavlik1
@rpavlik1 4 жыл бұрын
@@AndreasSpiess it's part of the interface once it's documented as errata... I don't know why they didn't release a fixed revision, but they didn't... Now they definitely won't, their exclusive mask rights have expired so exact copies are legal now even.
@avejst
@avejst 4 жыл бұрын
Impressive test Great job Thanks for sharing your great video👍😀
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Thank you. It took some time to create this video... But it was a lot of fun!
@uwezimmermann5427
@uwezimmermann5427 4 жыл бұрын
Nice overview - as usual I wonder who would need an embedded board with hundreds of millions of floating point operations per second - and then program the whole thing in Arduino... just give me some reasonable examples... but it is impressive that we can get this performance at no cost. At least for the Atmel ATmega and ATtiny the implementation of gcc used in Arduino does not make a difference between float and double - all double operations are just implemented as single-precision floats.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
I asked the same question at the end of the video... But it was interesting for me to see what is possible... And viewers asked for the comparison. Concerning double precision: I suspect that this is similar in the case here...
@jankomuzykant1844
@jankomuzykant1844 4 жыл бұрын
Already sent the sample link to Andreas but this one is for you github.com/DD4WH/Teensy-ConvolutionSDR
@Daniel_D.
@Daniel_D. 4 жыл бұрын
It looks like the arm gcc compiler used in the Arduino IDE does some shady "optimizations" because I have problems calculating accumulative sums (+=) with float or double variables (global or local variables). Even when I set these variables to volatile the compiler still manages to break the computation (result = NaN). Ironically adding similarly small floating-point numbers as constants can be done without any problems. So I guess it's not the precision that limits the calculation but rather the "optimization" of the compiler. I hope somebody has a solution to the problem.
@uwezimmermann5427
@uwezimmermann5427 4 жыл бұрын
@@jankomuzykant1844 that is impressive...
@mouradmkhakh8903
@mouradmkhakh8903 Жыл бұрын
Great comparison; I think also that ESP32 is more interesting than STM32f4 series for the main reason of Wifi. but, by far, Stm32F7 and H7 series are more powerful compared to ESP32 ; some of them include two cores, and they have a lot of capabilities and powerful functionalities.
@AndreasSpiess
@AndreasSpiess Жыл бұрын
I agree. But most of the time I do not need a lot of power.
4 жыл бұрын
I write FORTRAN almost every day. The 90 and later variants of the language are quite nice to write in.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Interesting that it still exist... I assume for particular applications.
4 жыл бұрын
@@AndreasSpiess FORTRAN is widely used on HPCs, for numerical weather prediction and climate simulations. I use it at work for air quality forecasting.
@daskasspatzle2396
@daskasspatzle2396 4 жыл бұрын
My experiences differ from yours. I have several blue pills, but none with fake chips. The only noticable difference is that some have yellow jumpers and others have black ones. And i really like the HID Bootloader. No need to select a COM Port, and just works. And if i find the time this winter, i plan to create a board with probably a F4 MCU and Ethernet on board and at least 81 IOs... I am not a big fan of WiFi Cheers from BG
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Thanks for sharing your experience. I ordered the CK versions, so I was not cheated. But I thought they work. Which core do you use? The new one or Roger‘s? There is a difference in the bootloader between the two.
@daskasspatzle2396
@daskasspatzle2396 4 жыл бұрын
I switched to the new Core with switching to the HID Bootloader.
Programming Raspberry Pi Pico with Arduino IDE
17:28
Rajababu.N
Рет қаралды 176
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 11 МЛН
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,4 МЛН
#370 Raspberry Pi Pico vs ESP32 (-S2) and STM32 Blackpill
15:53
Andreas Spiess
Рет қаралды 389 М.
PlatformIO - A True Alternative to the Arduino, MBED, and STM32 IDEs
16:10
$8 MilkV Duo: Arduino on one core and Linux on the other
13:49
Andreas Spiess
Рет қаралды 82 М.
Microcontroller Showdown: Which One Wins for Your Project?
17:21
Predictable Designs
Рет қаралды 16 М.
Speedrunning 30yrs of lithography technology
46:07
Breaking Taps
Рет қаралды 735 М.
451 Which Processor can kill the ESP32?
11:24
Andreas Spiess
Рет қаралды 349 М.
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН