Page 1 of 1

MicroPython minimal port on NUCLEO F446ZE

Posted: Tue Jul 23, 2019 4:54 pm
by ferran.campos
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.

Re: MicroPython minimal port on NUCLEO F446ZE

Posted: Tue Jul 23, 2019 9:04 pm
by dhylands
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
>>> 

Re: MicroPython minimal port on NUCLEO F446ZE

Posted: Wed Jul 24, 2019 8:09 am
by ferran.campos
That was it, I had a version from a month ago. With the updated one works perfectly. Thank you!

Re: MicroPython minimal port on NUCLEO F446ZE

Posted: Tue Aug 06, 2019 11:01 pm
by safetyfactorman
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

Re: MicroPython minimal port on NUCLEO F446ZE

Posted: Tue Aug 06, 2019 11:37 pm
by jimmo
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"

Re: MicroPython minimal port on NUCLEO F446ZE

Posted: Wed Aug 07, 2019 3:16 pm
by safetyfactorman
Thanks!

Re: MicroPython minimal port on NUCLEO F446ZE

Posted: Thu Aug 08, 2019 7:14 am
by ketkipatil
Well explained...