Skip to main content
SGasp.1
Associate III
May 23, 2023
Solved

Unique fw for 2 ST MCU

  • May 23, 2023
  • 1 reply
  • 789 views

Hi... we are deciding if has a sense to develop a electronic board able to host to different mcus (STF4 and STH5) and giving an external hw trigger the unique fw should be able to run the part relevant to F4 series or H5 series.

The question is how much they have in common as memory map, peripherals , clock.. drivers Does it make sense to try to make an unique stm project or it is better to make 2 distint projects sharing for example the logic and the libraries ?

I am open to your consideration..

Thanks

This topic has been closed for replies.
Best answer by Tesla DeLorean

Very dissimilar.

Code early in ResetHandler assembler could determine if a CM4 vs CM33, remap SCB->VTOR to a different section of FLASH.

One could probably bind an image to achieve this, but you'd have two code forks, and no common code unless you're going to spend a lot of time/effort on the exercise.

1 reply

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
May 23, 2023

Very dissimilar.

Code early in ResetHandler assembler could determine if a CM4 vs CM33, remap SCB->VTOR to a different section of FLASH.

One could probably bind an image to achieve this, but you'd have two code forks, and no common code unless you're going to spend a lot of time/effort on the exercise.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
SGasp.1
SGasp.1Author
Associate III
May 24, 2023

Thanks @Community member​ .. as I was wxpectin it is better to have 2 distint projects with 2 different fw and try to share the business logic tryoing to abstract the hw part that are different