STM32 F4 Discovery ...

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: STM32 F4 Discovery ...

Post by dhylands » Sun Jun 26, 2016 11:02 pm

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).

joehunt588
Posts: 26
Joined: Wed Jul 27, 2016 5:06 am

Re: RE: Re: STM32 F4 Discovery ...

Post by joehunt588 » Mon Aug 15, 2016 12:18 am

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.
Hi rando how the progress?Image

Sent from my ASUS_T00J using Tapatalk

Rando
Posts: 20
Joined: Thu Apr 28, 2016 1:00 pm

Re: STM32 F4 Discovery ...

Post by Rando » Mon Jan 02, 2017 8:52 pm

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...
DOC000923403.jpg
DOC000923403.jpg (76.97 KiB) Viewed 4147 times
Last edited by Rando on Wed Jan 25, 2017 11:01 pm, edited 1 time in total.

Rando
Posts: 20
Joined: Thu Apr 28, 2016 1:00 pm

Re: STM32 F4 Discovery ...

Post by Rando » Wed Jan 25, 2017 11:01 pm

Here's another excellent candidate. A little pricey but convenient...

https://shop.mikroe.com/development-boa ... -2/stm32f4
stm32f4-thickbox_default-12x_opt.jpg
stm32f4-thickbox_default-12x_opt.jpg (30.51 KiB) Viewed 4083 times

Post Reply