Porting micropython to STM32Nucleo-F4

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
Posts: 3385
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada

Re: Porting micropython to STM32Nucleo-F4

Post by dhylands » Thu Aug 27, 2015 12:13 am

I happen to have a 401NUCLEO board sitting on my shelf, so I cloned your repository and flashed using stlink.

I was able to reproduce your results. I tried A0 thru A10 (skipping A2/A3 since those are are REPL UART) and on all of them except A9, the pullup seemed to work fine.

Since A9 is used for VBUS sensing, I theorized that some USB circuitry was being connected.
I modified your mpconfigbord.h file and commented out the

Code: Select all

line, but that didn't seem to make any difference.

You may need to completely disable the USB device completely (which IIRC is non-trivial with the current codebase) in order to get the internal A9 pullup to behave properly.

Posts: 3
Joined: Tue Aug 25, 2015 4:09 pm

Re: Porting micropython to STM32Nucleo-F4

Post by mike38 » Thu Aug 27, 2015 8:04 am

thanks a lot for your tests. Now I know it is not a mistake or a hardware failure.

I will add an external pull up or modify my circuit to not use A9.

Post Reply