Micropython v1.6 REPL not working on STM32F429DISC?

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
muln
Posts: 2
Joined: Tue Mar 22, 2016 11:38 am
Location: Switzerland

Micropython v1.6 REPL not working on STM32F429DISC?

Post by muln » Tue Mar 22, 2016 11:54 am

On Micropython 1.5.2 the REPL was working perfectly fine for me on STM32F429DISC. With Micropython 1.6 REPL doesn't work any more.
I can still see the Pyboard USB Comm Port in the device manager under windows but I cannot get the REPL working.
When I compile the latest sources from git I get the same result.

Is anyone else experiencing this problem?

User avatar
marfis
Posts: 186
Joined: Fri Oct 31, 2014 10:29 am
Location: Zurich / Switzerland

Re: Micropython v1.6 REPL not working on STM32F429DISC?

Post by marfis » Thu Mar 24, 2016 12:40 pm

V1.6 has the USB interrupt concept changed, the VCP HAL driver was configured to use the start-of-frame (SOF) irqs for the rx/tx events instead of TIM3. Mabe that has something to do with it.

muln
Posts: 2
Joined: Tue Mar 22, 2016 11:38 am
Location: Switzerland

Re: Micropython v1.6 REPL not working on STM32F429DISC?

Post by muln » Mon Apr 04, 2016 7:17 am

Thank you marfis for pointing me in the right direction. In the micropython github repository user hoihu gives the following advice how this problem can be fixed:

The STM429DISC has the USB configured using HS mode using FS( "USE_USB_HS"). The SOF irqs that were introduced in 1.6 are at the moment only configured in pure FS mode hence the callback that inputs the REPL with the chars received from USB is not called.

So 2 options:
set "Sof_enable=1" on line 432 in usbd_conf.c

User avatar
marfis
Posts: 186
Joined: Fri Oct 31, 2014 10:29 am
Location: Zurich / Switzerland

Re: Micropython v1.6 REPL not working on STM32F429DISC?

Post by marfis » Mon Apr 04, 2016 4:12 pm

yes - well hoihu is marfis.. :) but it is not obvious I agree.

Post Reply