Hello,
I tried to port MicroPython on the STM32F429i Board, but I have some problems with the Micro USB.
One difference between the STM32F4 Discovery and the STM32F429i is the pins which are used for the Micro USB connection.
The STM32F4 Discovery uses the pins PA9,PA11,PA12 and PA10, however the STM32F429i uses the PB15, PB14, PB13 and PB12 pins.
Now my question: How can I change the Micro USB pins in the MicroPython code?
Thanks for your help
Porting MicroPython to the STM32F429i
Re: Porting MicroPython to the STM32F429i
IIRC the openmv project uses a 429 (and runs micropythong so I suspect the work may be already done.
The stmhal/usbd_conf.c file does the pin configuration for USB.
The stmhal/usbd_conf.c file does the pin configuration for USB.
Re: Porting MicroPython to the STM32F429i
Okay... So i have to say that Iam using the STM32F429i Discovery Board.
I already tried to change the usbd_conf.c, but i got no usb connection to the PC.
This Board has his own Programmer called ST-Link, with this its possible to get a .hex file on the board.
Therefor i think micropython is already running, but i cannot test it.
Is it possible to put code in the main.py file before porting it to the controller?
I already tried to change the usbd_conf.c, but i got no usb connection to the PC.
This Board has his own Programmer called ST-Link, with this its possible to get a .hex file on the board.
Therefor i think micropython is already running, but i cannot test it.
Is it possible to put code in the main.py file before porting it to the controller?
Re: Porting MicroPython to the STM32F429i
The contents of the initial boot.py and main.py can be found here:Pikachu wrote:Okay... So i have to say that Iam using the STM32F429i Discovery Board.
I already tried to change the usbd_conf.c, but i got no usb connection to the PC.
This Board has his own Programmer called ST-Link, with this its possible to get a .hex file on the board.
Therefor i think micropython is already running, but i cannot test it.
Is it possible to put code in the main.py file before porting it to the controller?
https://github.com/micropython/micropyt ... #L139-L151
You can use the command:
Code: Select all
pyb.repl_uart(pyb.UART(6,115200))