stm32/boards: Add STM32H750VBT6 board.
Now I have a board based on STM32H750 MCUs.
It has a 64 Mbit external flash.
So now I confused how I can build a firmware for it,it only have 128 kb ROM.
I can't write a bootloader to jump to app because I have poor programming skills.(And I have experienced several compile failure).
So why not provide a new port for STM32H750VBT6?It's so fast.
I did my best,then I post an issue here to ask for help.
(And there is something wrong with my msys2...why my Python cannot work???)
(Poor English ORZ...)
STM32L496RE firmware for custom board
Hello,
I have a custom board that contains the STM32L496RE microcontroller I wanted to upload the micropython firmware into my board, first
-
I created a folder named NEWBOARD for my board under micropython/ports/stm32/boards
-
Copied into it the files used in the NUCLEO_L476RG (in folder NUCLEO_L476RG under micropython/ports/stm32/boards) since I have the Nucleo and it shares the same core with my custom board , and I changed the pins according to my custom board in the mpconfigboard.h under micropython/ports/stm32/boards/NEWBOARD
-
Copied the ld file used for the Nucleo board stm32l476xg.ld found under micropython/ports/stm32/boards and then I changed the memory addresses according to my board
-
Changed the reference of the ld file (line 4) in the mpconfigboard.mk file located under micropython/ports/stm32/boards/NEWBOARD
-
Changed line 52 in the Makefile located in micropython/ports/stm32 as follows:
OPENOCD_CONFIG ?= boards/openocd_stm32l4.cfg
Then, I ran make BOARD=NEWBOARD in micropython/ports/stm32
The firmware was built and I tried to flash it into my board using make BOARD=NEWBOARD deploy-openocd ,(I made sure the board was connected to the computer and it showed in the terminal)
It didn't work so I tried it with make BOARD=NEWBOARD deploy-stlink , it said that the memory was successfully flashed but when I opened the serial connection using picocom , none of the micropython commands worked (Ex : pyb.LED(2).on() ) knowing that they worked fine when I flashed the NUCLEO_L476RG
I assumed the firmware didn't flash at all, so I moved the binary file (firmware.bin that was created in micropython/ports/smt32/build-NEWBOARD after I built the board files) to Windows (knowing that I was using Ubuntu) and I flashed the board using st-link Utility, it worked apparently but it still didn't respond to any of the micropython commands, instead the LEDs mentioned in mpconfigboard.h kept blinking without any command from me, they start blinking whenever I power on the board, knowing that when I only put one pin in the mpconfigboard.h , only the LED mentioned will blink, when I put two, they both blink.
I couldn't know the reason behind the blinking, and I couldn't figure out why the firmware that I configured didn't work properly on my board.
I would appreciate it if someone could give me further explanation about how this firmware works or why am I having this issue.
- Also, are there any more configurations or files that I should modify to have a working firmware for my custom board ?
Thank you very much