#353 How to use STM32 boards with Arduino IDE and how fast are they? (incl. surprise)

in video list 345 i asked the question whether the esp3 2 or the stm3 2 blue-blooded pill is the better choice the video organized quite some conflict principally because i compared the weakest stm3 2 f-1 03 chip with a quite powerful esp3 2 some viewers concluded i was unfair and suggested to do a test with most powerful chips this is what we will do and we will learn quite a few things about the opportunities and weaknesses of the stm3 2 duino job for example its capability to do inline debugging at the end of the video you will have a good overview and know some manoeuvres to save you a lot of time and hassle and of course you will know which timber you need for speed gritty youtubers here is the guy with the swiss accent with a brand-new episode and fresh ideas around sensors and microcontrollers remember if you subscribe you will ever be engaged in the first row stm3 2 processors are used in many more commercially available products than the esp8 266 or the esp3 2 this must have a reason perhaps we producers can profit if we know it this is why this video will cover the following topics we will get an overview of the stm3 2 chips and a general overview of the available blooming timbers we will speed test the conventional representatives here we will see messages like fortran and wax mips the older guys amongst us know what i’m talking about we will program different stm3 2 ports with the arduino ide here we will learn some deceptions we will see how easy it is to do in-line debugging with platform io and surprise us with the board also mentioned by sees let’s begins with the synopsi st microelectronics is headquartered in switzerland they create a lot of trash today we are only interesting in their 32 -bit microprocessor units starting with the five words stm3 2 all of them are faster and more ability than the arduino uno or the mega by the way they segment their range in ultra low-toned strength mainstream high performance and wireless here you already participate a difference to expressive while they only have four mcus st microsystems has 1090 of them all based on arm cores and this might be the first reason why they are so successful in business applications we will later see if this also sends to us makes because i did not see any councils with wireless chips readily available for creators except in cases of a lora module from rack wireless i will concentrate on the rest of the give a closer look at the listing shows that all low strength microchips have an l after the stm3 2 most others have an f it seems that the next numeral has to do with a core but here you have to pay attention f4 microchips genuinely use m4 cores but f1 chippings use m3 cores so check before you decide a rule of thumb tells us that the higher the core crowd the more speed and other functions this is good to know for us makers when we have to decide which council to use another interesting fact if we for example start our development with a cheap f-1 03 c8t6 chip with 64 kilobyte flashing and later discover that we need more we can select the microchip with a same pin out with more remember of hurrying or we start with a powerful mcu for occurrence and when finished search for the cheapest possible chipping which has enough remembrance for our product a few cases pennies saved is this important for producers not too much since we are often buy boards and not chippings and do not need to shave off every cent one thing nonetheless is significant we can program quite a few of those chips with our arduino ide you find a list on the stm3 2duino projection github and the quantity crew from release to exhaust stm itself is compatible with the stmduino project the initial campaign of roger clark is nothing more maintained the next question for us is what kind of timbers are available on the market now we have to distinguish between two very different sources the chinese and stm let’s begins with the chinese most of the recent discussions on this channel are around blue lozenges and black pills because they are relatively cheap if you sought for other cards you likewise get them but check first if the arduino ide supports the chip before you degree the blue lozenges use the c8t6 chip have just mentioned they keep going 72 megahertz have 64 kilobyte of show and 20 kilobyte ram which is ridiculously small compared with a four megabyte flash of the esps the pitch-black pills come in two explanations both help f4 chippings and a drift stage coprocessor to speed up figurings the f401 ccu races on 84 megahertz has 256 kb flash and 64 kb ram the one with an f 411 ceu chip runs at 100 megahertz has 512 kilobyte light and 128 kilobyte ram is this flash sufficient here i compiled one of the benchmarks for an stm3 2f432 it employs 27 kilobyte or 10 twinkling and 1 of ram the esp3 2 needs much more 17 and four percent maybe this has to do with the underlying rtos and wi-fi code of the esp3 2 we makers be understood that the stm3 2 storages are smaller but we likewise can build big-hearted sketches like with the esp3 2 at least with the f4 chips if we liken rates we see that we get a blue-blooded capsule for around three dollars including ship in single lengths the pitch-black lozenges are 3.83 respectively 4.96 a ordinary esp3 2 development committee expenses around five dollars similar to the most expensive pill as said before st microelectronics likewise sells proliferation boards they are called nucleo and coming 3 editions with 32 64 and 144 bolts the 32 bolt explanations are slightly bigger than an arduino nano the 64 pin forms are slightly bigger than the uno and the 144 bolt explanations are similar to the mega also here you get a lot of different versions pay attention the arduino ide backings not all of them this f722 board would have been nice for a test ride but it is not corroborated i told an f-7 46 and my supplier returned the money because it was his fault he was pointed out that the f-7 46 is not possible to exported to switzerland because it is dual abuse this means that it can be used for civil as well as for armed applications i’m sure it would have improved the capabilities of our swiss horde together with its far-famed swiss army pierces it “wouldve been” unbeatable i think now this board with a big chip waits till it is supported in the future version or maybe i will learn how to nip the boards.txt record i would not mention those councils if they only expensive “theyre not” sourced in switzerland the big ones are below 30 dollars including send the small ones are around 20 dollars maybe tolls vary in your country the main difference between the chinese and the boards from st microelectronics is this part all timbers come with a built-in so-called st link and now we are already in the next topic how do we curriculum our councils now things are straightforward with the arduinos and esps all are programmed via serial acquaintance most boards have a usb to serial adapter on board some of them not then you need a usb to serial adapter sometimes likewise called ftdi adapter the stm3 2s are different some of them is likely to be programmed by a usb right of the box others need a bootloader which you have to install when you get them and if you prick them “if youre using” an st-link adapter you are offered additional programming alternatives the original adapter is not extremely expensive but we also get inexpensive clones and now comes a subterfuge st-link is available in version 2 and 2-1 my arduino ide did not accept these small-minded st-link b2 adapters “the worlds biggest” ones inspect very similar to the original and they can be upgraded to the newest release utilize this stm3 2 cube programmer a software which has to be installed before you can use stm3 2 chippings with the arduino you time press this button then this one and lastly upgrade now it’s on the newest version and can be used with the arduino ide that is why i would waste a little more and not buy one of those as usual we have to install the stm3 2 programming environment for the arduino ide i leave a link in the specific characteristics on how to do it it is similar to the esp3 2 the first lane of program offered by these adapters is swd serial cable debug its connector only has four bolts and all pills volunteer this connection swd always wields even though they are you bricked your microchip somehow and it can be used for inline debugging the next nature of program is the disguised boot loader this is the way for blue pills caleb martick made a video on how to flash the bootloader and how to upload your representation you find a tie in the specific characteristics the hid bootloader is simply needed for the blue pills but i did not like this process i only would program them with an st-link this bootloader thing was not very stable in my lawsuit and given attention for the test i too bought clones with cks 103 chips instead of stm3 2 i was able to program them with swd but my pc never recognized usb you can avoid this hassle by not buying blue pills maybe you have a different suffer with them please comment next we go to the black capsules they already have a bootloader on the chip and i did not hear of clones with various chippings very good you get two versions according to your needs both react the same firstly you plug the human rights committee into usb and adopt these parameters according to the chip on board now you have to do a similar procedures as on some esp timbers press the boot 0 and nrst buttons together wait for the usb disconnected tone tell the reset button go and wait for the usb connected tone now you should see stm bootloader in the device director and can hit upload after uploading you should see the virtual com port your blackpill made this is the chinese way to platform the boards now we go to the swiss way as said all nucleo councils have an st link on board as before you connect the human rights committee via usb and select the parameters like that currently i use a small nucleo3 2 f432 for the upload you can choose whatever method you demand even the mass storage exertions because the microchips create a disk drive on your pc hit upload and make sure you connect to the right com port if you want to use serial by the way if you do not choose these two constants serial will not work simple and efficient no button pressing no bootloader twinkling but i should not show off with these swiss pieces why after a few cases eras of excellent operating all my boards refused to show anything on serial anymore i tried nearly everything i even installed the environment on a different computer maybe you have an idea of how to correct this flaw anyway i found out that the serial 2 bolts internally are connected to the st-link when i used serial 2 i got serial output via usb by the way the serial 2 bolts are also is attached to the bolts labeled rxtx on the arduino connector of the nucleo6 4 cards the serial one rods are on d6 and d8 another manoeuvre if you use serial on pins not via usb you have to use different parameters in the board menu now i was able to go on with my velocity assessments in my last video these measures also devoted cause for complaint so this time i use the official stm benchmark it consists of three responsibilities a cool stone and two redstone cartoons one with single and the other with double precision the tristone is an integer benchmark and the whetstone uses floating point counts looking at the representations you realise copyright 1988 more than 30 years old then a little better down you find the word fortran fortran was the de facto standard for scientific figurings in the 60 s and 70 s and was also use subsequently for that intent it was the first programming language i learned in the 1970 s when we were allowed to use the extremely expensive ibm 360 mainframe of our authority during the daytime it calculated taxes but it was common back then to switch the computers off when people went home our professor knew the right people and got the key to the computer room like that we had a computer just for us the gallants were short-lived but we had a lot of amusing and we learned fast the other interesting thing here is the production wax mips what does this mean wax was the most successful departmental computer in the 1980 s built by digital equipment corporation ken olsen was something like elon musk today back then he beat the incredibly big and powerful ibm in many ways and was appointed america’s most successful entrepreneur by luck store and i was one of his proud hires anyway i differ the wax 11 780 was the first model of a long row it was a big machine cost a million dollars rapidly and produced accurately one wax mips and now we are in the middle of the performance test “well these boasts for stm3 2f4 ports with three different processors two different stm3 2f1 timbers with different processors and one stm3 2 low-grade supremacy port of course i likened them with the esp8 266 and the esp3 2 i also tried to compare it with an arduino uno unfortunately the representation was too big so we do not get an arduino mips for comparison the double precision redstone did not run on my l031 board if we compare the integer performance we see that even the low-grade power microchip for a few dollars strikes the wax of 1978 by such factors of 17 but the priorities in the sequence still is the esp3 2 with nearly 200 wax mips the three of the four f4 chippings are very similar the f446 is much faster this proves that the chinese capsules have comparable carry-on as the nucleo committees with same processors astonishingly the low ability f4 is also fairly fast the esp8 266 is slower than the f-1 03 chippings and comparable with a low-power l0 31 but how do they equate if they can use their co-processors to crunch swimming point quantities the king in single precision obviously is the f4 46 it is more than two times faster than the esp3 2 again the other f4 chippings are similar in performance and the f-1 03 and the esp8 266 are much much slower because they have no co-processor but what about double accuracy now the esp3 2 has a same performance as the f446 the low supremacy l432 loses a little but interestingly the sluggish f103 microchips are not slow in this benchmark but if we have a closer look we see that the single and the double precision mips are the same for these two processors too for the esp8 266 the gap between the two standards is insignificant maybe the compiler cheaters and uses the same precision for both benchmarks please comment if you know more the last point i wanted to show you is cool if you use platform io instead of the arduino ide you can debug all stm3 2 committees as shown in video number 274. You can do that with esp3 2 more but the arduinos and the esp8 266 is not have this boast or at least not in a usable style now this is the only way connect the st-link to the swd port and add these lines in platformio.ini because the nucleo cards once have the st-link built in we only have to plug them into a usb port unusually helpful and by the way now the smaller and cheap st-link v2 adapters wield strange i have to say i like inline debugging with break pitches and variable inspection a good deal it streamlines my job and i’m very productive summarized the stm3 2 genealogy is vast and has around 1 000 members compared with this choice the express genealogy with four members is small but the espressif microchips got a lot of peculiarities specially wi-fi this is why we adore them the stm3 2 microchips are available with several appendage cores with very different properties and rapidities the chip numbering is somehow intuitive generally bigger lists are more powerful microchips unfortunately not always they also have a low-spirited power line which is interesting enough to look at in the future we can either buy chinese or nuclear timbers from st microelectronics the most famous chinese stm3 2 boards are the blue and the pitch-black capsule i do not recommend to buy off-color pills they have no native food loader their clones do not work correctly and they are hard to handle the black lozenges are the better choice they have a built-in bootloader are much faster have more reminiscence and the f401 is not much more expensive than a bluepill the nucleo timbers specially the bigger ones are not very expensive and a good alternative chiefly because of the built-in st-link which likewise are working with only a usb cable the arduino ide directs virtually flawlessly with the patronized timbers however pay attention that you do not buy unsupported ports the parameters in the boards menu have to be adjusted specially if you want to use serial photograph you have to use the right combination otherwise serial print will not work in my environment zero magazine abruptly stopped labouring so far i did not find a solution not good buy the right st-link otherwise you will not be able to program the chinese port with the arduino ide nor with the stm3 2 core programmer by the way the speed similarity was discovered that my viewers were right the f4 chips are much faster than the f-1 03 microchips used in video number 345. The fastest f446 used in my comparing is as fast as an esp3 2 but do not forget the esp3 2 has a second core if it is necessary all stm3 2 chippings is likely to be debugged working stage i o and an st tie-up one last thing some viewers might have missed the tnc 4.1 council was reported in my last mailbag it is tiny overheads around 30 dollars and has an m7 core its clock fast of 600 megahertz predicts fairly some influence i should not want to include it in the comparison because it has no sem3 2 core and it is extremely fast the curves would have been useless to compare the rest of the microchips but we can assume that the fastest stm3 2 microchips are comparable in accelerate for integers it has nearly 10 times bigger wax mips than the fastest f446 and for doubled precision it is unbelievable 60 terms faster than the f446 or the esp3 2 what a surprise ken olsen would be pleased to see such a small bugger if he would still be alive and now you probably understand why i do not want to sell hardware anymore the most expensive wax 9000 i sold expenditure 10 million swiss francs and was much slower than this tnc for 30 dollars the only remaining question is what is the application for such a monster as always you find the relevant joins in the specific characteristics i want to thank all my followers on patreon and sees abusing my associates for their purchases for supporting the channel without you it would be difficult for me to make such quite expensive likeness bye

103 chips

As found on YouTube

Book Now For Environmental Consultingl In Newcastle

Leave a Reply

Your email address will not be published.