• Welcome to Andy's Workshop Forums. Please login or sign up.
 
March 28, 2024, 05:06:53 pm

News:

SMF - Just Installed!


STM32F072 port

Started by randy.glenn, October 26, 2016, 11:06:32 am

Previous topic - Next topic

randy.glenn

Hi,

I'd like to port the library to the STM32F072 - it should be similar enough to the STM32F051 to make it easy. Any pointers on where to start?

Thanks,

-Randy

Andy Brown

Hi Randy,

Creating an 072-specific build should be quite straightforward because it is supported by the standard peripheral library and is quite similar to the other supported F0 builds. I actually considered doing an F072 build for the nanocounter project but in the end didn't bother because the F051 build was close enough to work.

To get started, search the source code for all occurrences of something like 'STM32PLUS_F0_51'. You'll be creating a similar macro 'STM32PLUS_F0_72' and using it wherever it's appropriate.
It's worse than that, it's physics Jim!