MicroPython minimal port on NUCLEO F446ZE

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
ferran.campos
Posts: 5
Joined: Tue Jul 23, 2019 4:45 pm

MicroPython minimal port on NUCLEO F446ZE

Post by ferran.campos » Tue Jul 23, 2019 4:54 pm

Hi,

I'm trying to execute the minimal port of micropython on the NUCLEO - F446ZE. As the README file says, it should work on STM32 F4 series. However, that's not the case. The code is actually writen succesfully on the board through ST-LINK and the Micropython initializes as expected showing the following: 'MicroPython v1.11 on 2019-07-23; minimal with unknown-cpu'.

The problem occurs when trying to write any line of code. It doesn't matter if it's a variable definition or a print, micropython crashes showing nothing on the console.

Has anyone been through the same or any ideas on how to solve this?

Thanks.

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

Re: MicroPython minimal port on NUCLEO F446ZE

Post by dhylands » Tue Jul 23, 2019 9:04 pm

Do you have an up-to-date micropython tree?

There was an issue which was fixed about 3 weeks ago. I get the following on my NUCLEO_F446RE:

Code: Select all

MicroPython v1.11-167-g331c224e0-dirty on 2019-07-23; minimal with unknown-cpu
>>> print('Hey there')
Hey there
>>> x = 3
>>> print(x)
3
>>> 

ferran.campos
Posts: 5
Joined: Tue Jul 23, 2019 4:45 pm

Re: MicroPython minimal port on NUCLEO F446ZE

Post by ferran.campos » Wed Jul 24, 2019 8:09 am

That was it, I had a version from a month ago. With the updated one works perfectly. Thank you!

safetyfactorman
Posts: 28
Joined: Sat Jan 24, 2015 10:34 pm
Location: vancouver/kelowna/lethbridge

Re: MicroPython minimal port on NUCLEO F446ZE

Post by safetyfactorman » Tue Aug 06, 2019 11:01 pm

I was wondering how to configure or setup (jumper pins?) the board so that it can be flashed. I have looked on the stm site for information on how to to do that, but it is unclear to me.

Maybe a general note on how to set stm32 boards, if such is possible, would be greatly appreciated by many, I am sure.

thanks,

Mark

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: MicroPython minimal port on NUCLEO F446ZE

Post by jimmo » Tue Aug 06, 2019 11:37 pm

You'll need to short the BOOT0 pin to VCC then reset. That will put the board into the ST DFU bootloader so you can use "make BOARD= deploy" via the device usb port.

Otherwise you can use the stlink usb port any time with "make BOArD= deploy-stlink"

safetyfactorman
Posts: 28
Joined: Sat Jan 24, 2015 10:34 pm
Location: vancouver/kelowna/lethbridge

Re: MicroPython minimal port on NUCLEO F446ZE

Post by safetyfactorman » Wed Aug 07, 2019 3:16 pm

Thanks!

ketkipatil
Posts: 1
Joined: Thu Aug 08, 2019 7:10 am
Contact:

Re: MicroPython minimal port on NUCLEO F446ZE

Post by ketkipatil » Thu Aug 08, 2019 7:14 am

Well explained...

Post Reply