cancel
Showing results for 
Search instead for 
Did you mean: 

Software compatibility between STM32L1 and STM32F2

mmensch
Associate II
Posted on October 06, 2015 at 16:20

Hi,

I have software written for a STM32L151 and now want to port it to a STM32F20x.

Does anybody know if these are software compatible concerning the registers, the register bits and their function and other stuff.

Thanks a lot

Martin

2 REPLIES 2
Posted on October 06, 2015 at 16:33

Porting a reasonably sized app from an F1 to F2 under the SPL took under a day for the core functionality, most of the effort was dealing with the different pin configuration methods. The L1 should be more similar to the F2/F4 than the F1 was.

If you're doing stuff at the register level, expect to take a lot longer dealing the bits and registers. The compiler might catch a lot of this, but you'll have to battle through the errors and warnings, and double check the manuals.

It's going to depend a lot on how well partitioned/abstracted your code is, and if you put in any thought to portability from the outset.

Sit down with the manuals, and compare-n-contrast the peripheral that are most critical to your design, and gauge how different they are.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Nesrine M_O
Lead II
Posted on October 06, 2015 at 16:48

Hi Martin,

I'd highly recommend you to have a look to the

http://www.st.com/web/en/resource/technical/document/application_note/DM00024853.pdf

 application note it can be very useful.

-Syrine-