You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we use the current stm32f767 platform to compile for other stm32f microcontrollers? If not, what is stopping us?
This would be awesome to have since Dashboard uses a different but similar chip, so reusing the mcal means we wouldn't have to rewrite it.
Since we use the stm HAL, most of our code should be portable. Is there anything non portable? A good first check would be searching "767" in the firmware/mcal folder.
Further, is it possible to generate CubeMX code for two different boards and have them fit into the same PROJECT-PLATFORM?
Prior to #333, the answer was NO since we hard-coded the mcpu compiler flag into our build system. That PR improved it to use the generated flags, opening up this possibility.
The text was updated successfully, but these errors were encountered:
BlakeFreer
changed the title
Is the stm32 platform generic?
Is the stm32f767 platform compatible with other stm chips?
Jan 14, 2025
Almost but not exactly as written. Tried to use the stm32f767 mcal with the f4 chip on the Dashboard but they use different stm32f7xx_hal.h and stm32f4xx_hal.h files. Also f4 only has CAN1, CAN2 not CAN3 so the can driver needs to be changed.
Instead of making a duplicate mcal folder, I think we should use the preprocessor to enable certain sections of code depending on which processor is being used
Can we use the current
stm32f767
platform to compile for otherstm32f
microcontrollers? If not, what is stopping us?This would be awesome to have since Dashboard uses a different but similar chip, so reusing the mcal means we wouldn't have to rewrite it.
Since we use the stm HAL, most of our code should be portable. Is there anything non portable? A good first check would be searching "767" in the
firmware/mcal
folder.Further, is it possible to generate CubeMX code for two different boards and have them fit into the same PROJECT-PLATFORM?
The text was updated successfully, but these errors were encountered: