STM32F411E Discovery - How to power and access the REPL

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.
Post Reply
cakestone
Posts: 2
Joined: Sun Apr 17, 2016 6:23 am

STM32F411E Discovery - How to power and access the REPL

Post by cakestone » Sun Apr 17, 2016 7:35 am

Hi everyone,

after using the pyboard I want to use the F411E Discovery now.

What I have done sofar:
- downloaded the STM32F4 Discovery board .dfu firmware from micropython.org
- flashed the firmware with DfuSe Demo, seems OK, at least the built-in program stopped working :)

Now I would like to access the REPL but can't get to a serial port, neither through USB-OTG nor ST-LINK-USB.

How am I supposed to
- power the board -- through one of the USBs or external power supply?
- connect to REPL -- via one of the USBs or one of the UARTs (via a USB-UART converter)?

Thanks.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: STM32F411E Discovery - How to power and access the REPL

Post by dhylands » Sun Apr 17, 2016 6:20 pm

You mean Discovery (the green board) and not Nucleo (the white board).

The discovery looks like this:
http://www.st.com/web/catalog/tools/FM1 ... 8/PF260946

You can power it using the mini-USB jack or by providing 5V (as described in the User Manual in Section 4.2 (there is a link to the User Manual on the page mentioned above).

You can also power it using the Micro-USB connector on the bottom of the board. In this case you need to provide a jumper from PA9 to 5V (similar to the technique used with the 407 discovery:
https://github.com/micropython/micropyt ... -Discovery

Otherwise you should get the REPL on the Micro-USB jack. I don't have a 411 Discovery myself, so I can't offer much else.

cakestone
Posts: 2
Joined: Sun Apr 17, 2016 6:23 am

Re: STM32F411E Discovery - How to power and access the REPL

Post by cakestone » Sun Apr 17, 2016 7:57 pm

Yes, I mean the green Discovery, besides STM32F411E labeled also MB1115B.

Is that the board the firmware at http://micropython.org/resources/firmwa ... 1480fb.dfu is meant for? Or is it for F407?

Otherwise powering via USB-OTG works with PA9 wired to 5V, as you suggested, but the USB doesn't appear as a serial port.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: STM32F411E Discovery - How to power and access the REPL

Post by dhylands » Mon Apr 18, 2016 12:03 am

cakestone wrote:Yes, I mean the green Discovery, besides STM32F411E labeled also MB1115B.

Is that the board the firmware at http://micropython.org/resources/firmwa ... 1480fb.dfu is meant for? Or is it for F407?
The original discovery is called STM32F4DISC and its for a 407. Later on when STM released more discovery boards it included the chip number in the board name. So the 411 discovery is called the STM32F411DISC. You need to build the firmware yourself. There isn't any prebuilt firmware available.
Otherwise powering via USB-OTG works with PA9 wired to 5V, as you suggested, but the USB doesn't appear as a serial port.
If you're running the SM32F4DISC firmware, then I'm not surprised (since its for the wrong processor).

Post Reply