STM32 Micropython
HTML-код
- Опубликовано: 12 май 2019
- This video will describe how to upload and run Micro-python on the STM32F4 Discovery board.
STM32 Bootloader video:
• STM32 ARM Microcontrol...
Discovery Board:
www.digikey.com/product-detai... Наука
Great video. I have almost ordered one of these boards several times. I may have to break down.
Thank you for this video. I could not put the STM32F4 Disco board into DFU Mode... The board enumerated as STM BOOTLOADER, thus the board could not be seen by DfuSe. After a few hours of tinkering I discovered STM32CubeProg USB Drivers conflict (supersede) the DfuSe USB Drivers. Upon changing drivers I was able to get the board to enumerate as an "STM Device in DFU Mode" and then flash the Micropython DFU image. Here is the location of the default DfuSe USB Driver:
C:\Program Files (x86)\STMicroelectronics\Software\DfuSe v3.0.6\Bin\Driver\Win10
Good video as always
I have a couple NUCLEO-F411RE and I see they are also supported now, I'll have to flash one! Also interested to see if this can run on a STM32F103 Bluepill board since the are mega cheap and small. I've heard it will work, but never seen a tutorial...
I think using micropython is a good way to learn how to use the micro since it is interactive.
Is there a library for the built in microphone in the discovery board in micropython??
Aftet i flash the mcu, can I still upload my C code ir I hace to reinstall the old bootloader?
Do you have any tips on how to build micropython using ST's Stm32CubeIde? Also, since st-link supports bin files, is it possible to flash using st-link instead of bootloading and using DFU? I've tried the official release, as well as the one from OpenMV, but they don't contain a workspace/project file, so not sure how to set that up.
You can load a .bin file using st-link. This video might help you out. ruclips.net/video/K2NekHIwGWo/видео.html
Have you used Circuit Python from Adafruit? If so, how does it compare with Micropython?
I have not used Circuit Python but it is probably very similar to Micropython. Circuit Python was written to support the Adafruit boards which use Atmel Arm microcontrollers. The Arm microcontroller that I am most familiar with are the STM32F4 series.
Nice review
Could you mention the advantages of using this controller?
I feel it is too complicated to deal with such controller in a world where we have Arduino, ESP and Teenay which are very straight forward micro-controllers to program.
All ARM microcontrollers are generally more complex than non-Arm counterparts. Running Micropython on the Teensy or ESP32 would have the same learning curve as any STM32 Arm microcontroller.
The board he shows here does have one advantage over the ESP with micropython. After flashing the MP firmware you will still need another tool like ampy or the like to get your scripts on the board, but it does have other perks as well. In the sea of choices we have today uC wise, use what you feel is best. :)
Sometimes you need the capabilities of this chip depending on what your doing. I am kind of surprised there isn't a repository of code for this chip. The biggest advantage of arduino is that so many libraries are written for it. I could not imagine having to write code for the nrf24L01 .
How about if I want to use micropython on stm32f401re in my own custom board? Can you point me towards a good resources? Thankyou.
You can download Micropython for the STM32F401re on their website.
micropython.org/download/stm32_nucleo/
I have the Nuccleo-f0723b, can I use micropython on it? It doesn't seem to be on the micropyhton site.
Micropython is not supported on Cortex M0 processors with small memory footprints. Use a Cortex M4 with minimum 256k Flash and 32k RAM..
Hello 0033mer, is this card 100% compatible with the Pyboard micropython?
Is the Servo library recognized?
Thank you
Richard
No .. not 100% compatible. The hardware on board is different and also the Pyboard uses a "405" micro and the Discovery uses a "407". Most libraries would work but I have not used the Servo library.
@@0033mer Thanks for taking my call. So you can't use all the pins on the card? The Pyboard has 56 pins and this one is 100. That would be nice. If not, then I think the
STM32 STM32F405RGT6 . It should be a 100% compatible clone as it has the same processor.
Thanks again.
Richard
tnx
Welcome!
wow,it's a really good tutorial! By the way, I used nucleo L476 board, after I flash the firmware I can not find main.py, only a txt file and htm file. I can only use Putty with serial communication, what's wrong?
Hey i got the same problem. Did you solve it? I could use the help. Thanks
Dude, you sound like a preacher, hahaha
hi friend great video, i wanna know if i can use this bootloader with STM32l082 MCU thx for response
Yes .. the 32L082 series has a DFU bootloader.
why spend 15 bucks on this when you can get an esp32 or 8266 for 3 to 5 dollars and add a couple of leds. geet dual core and multiple touch pins and more speed as well. Good video how to but why is the question?
The Discovery boards also incorporates a 3 axis accelerometer, MEMS digital microphone, audio DAC with class D speaker drivers and onboard audio jack, ST-link programmer/debugger, CRC generator, and USB OTG support with all GPIO ports brought out to header connectors. The board is generally used for someone who is doing product development.