Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for STM32H503 on Nucleo board #419

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

wjklimek1
Copy link

@wjklimek1 wjklimek1 commented Nov 9, 2024

Hi everyone,

I am working on support for STM32H503RB on STM32H503 Nucleo board. I used F4 code as a template. I have a working code that can update application on the microcontroller.

I noticed that despite VTOR being set to BOARD_FLASH_APP_START in board_app_jump(), it is restored to default value by SystemInit() in startup code delivered by ST. I have to manually set VTOR to BOARD_FLASH_APP_START on the beginning of my main() in the app. I did not find any workaround for it without modifying code delivered by ST. It may be worth to mention it somewhere in the documentation to save future developers some debugging.

Another thing to keep in mind it that STM32H5 only supports flash quad-word programming due to embedded ECC. That means that data has to be written to flash in chunks of 128 bits (see AN5342). I don't see any potential problems with that but decieded to mention it in case you are aware of any dangers.

As a family id for STM32H5 i used value 0x4e8f1c5d (already merged to uf2 format repository).

For now only basic app update is supported. Self update and bootloader protection probably can be implemented on this MCU but basic functionality meets my need for now.

Tested functions:

  • flash_erase()
  • flash_write()

Untested functions:

  • board_flash_protect_bootloader()
  • board_self_update()

Questions:
1) Should I remove original implementations of self update and bootloader protection moved from F4 as they are not likely to work on H5?
2) What VID/PID pair should be used for STM32H5?

Thanks for your amazing work and effort that you put into maintaining this repo!

@wjklimek1 wjklimek1 changed the title Stm32h503 nucleo Support for STM32H503 on Nucleo board Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant