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?
Micropython v1.6 REPL not working on STM32F429DISC?
Re: Micropython v1.6 REPL not working on STM32F429DISC?
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.
Re: Micropython v1.6 REPL not working on STM32F429DISC?
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
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
Re: Micropython v1.6 REPL not working on STM32F429DISC?
yes - well hoihu is marfis.. but it is not obvious I agree.