usb-ser-mon is just a terminal emulator written in python. rshell gives you a terminal emulator (using the repl command) and the ability to copy files into/out-of the file system. Neither is capable of "flashing" the board. Flashing usually refers to programming the micropython firmware, which can be done using dfu-util (make deploy) or by using the onboard stlink programmer (make deploy-stlink).
Porting to different processors for already existing chip famliies (i.e. the STM32F4xx) basically requires creating a new board definition. The single most important thing to get right is the crystal frequency and the 3 or 4 paramters needed to setup the registers for that frequency.
You can either consult the datasheet or copy the values from another board which use the same family and frequency. The remaining configuration is mostly about setting up pin mappings and enabling/disabling peripherals that your board needs.
To support a new family (i.e. the STM32F0xx) requires bringing in the hal, and find out what's different about that hal and the hals that we already support.
If there is only 256K or flash, you probably won't have room for a fileystem, which may mean that some of the code will need to be modified to support building with the filesystem stuff turned off (I don't think that anybody has done that yet with the stmhal codebase).
STM32 F4 Discovery ...
-
- Posts: 26
- Joined: Wed Jul 27, 2016 5:06 am
Re: RE: Re: STM32 F4 Discovery ...
Hi rando how the progress?Rando wrote:I did find this resource online here...
https://github.com/micropython/micropyt ... -Discovery
That should get me going, I will post progress when I get the correct hardware to test.
R.
Sent from my ASUS_T00J using Tapatalk
Re: STM32 F4 Discovery ...
With the new year, comes a little bump in my hobby budget. I thought I would use this to investigate the various "click boards" and uPython...
Last edited by Rando on Wed Jan 25, 2017 11:01 pm, edited 1 time in total.
Re: STM32 F4 Discovery ...
Here's another excellent candidate. A little pricey but convenient...
https://shop.mikroe.com/development-boa ... -2/stm32f4
https://shop.mikroe.com/development-boa ... -2/stm32f4