cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 & STM32F1 code compatibility

thibaut2
Associate II
Posted on August 10, 2012 at 12:09

Hi.

I m just complete with a project using a STM8S. I went through development with a STM8S-discovery, which is by the way a great evaluation tool : cheap, and no useless peripherals such as LCD. Just had to solder a daughterboard to plug on the racks of pins to get the things working.

I have to start now a project using an STM32F100. However, there is only 1 available evalboard priced ca 240€, with dozens of peripherals i don't need. I just want a board with the mcu, quartz, pins and something to program it.

Now to the point 😉

I m considering buying a STM32F0-discovery. It won't have everything i need, but i could be able to developp and test most of what i need. I'm wondering if the libraries of F0 and F1 series are compatible. I mean, if i developp on F0, using the FWlibs, will I have to change something when i change to F1 later ? are the 2 libs using exactly the same functions ?
6 REPLIES 6
Posted on August 10, 2012 at 13:55

Why not get a VL-Discovery board?

http://www.st.com/internet/evalboard/product/250863.jsp

Or one of the dozens of STM32F10x board on eBay?

The problem with F0/F1 would be the clock and bus differences, and perhaps how the pins and AF muxing is handled. I wouldn't try cross developing in the fashion you suggest.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
thibaut2
Associate II
Posted on August 10, 2012 at 14:31

Hum, i had not seen this one. I guess i have missed it searching ''STM32F1 evalboard''.

and all the STM3210x boards are expensive compared to discovery boards 😉

Thanks for the info, gonna order 1 at once ! ^^

Can i use STVD to developp on this board or do i need a different IDE ?

Which compiler shall i take? (i d rather choose an evaluation license.)

Something else (but i guess i shall create a new topic for it ? ) :

Is there an IP/stack for stm32F1 line ?

Posted on August 10, 2012 at 15:14

My general order of preference for IDE is Keil, Rowley, IAR. I also use Yagarto GNU/GCC depending on the task.

For Ethernet, the F100 doesn't support that, you'd be better getting a board that has all the PHY, magnetics, and connections built in. I believe there are some LwIP implementations a search away.

Like I said, eBay is a great place to find assorted STM32 boards, generally pretty cheap, and ship to North America within a couple of weeks.

http://www.ebay.com/itm/New-STM32F103R8T6-Mini-Development-Board-/320953118024?pt=LH_DefaultDomain_0&hash=item4aba4bed48

http://www.ebay.com/itm/Port107V-STM32F107VCT6-STM32F107-STM32-ARM-Cortex-M3-Development-Board-Full-IOs-/260903980637?pt=LH_DefaultDomain_0&hash=item3cbf16ce5d

http://www.ebay.com/itm/UET-STM32F103ZET6-144-pin-core-board-/180933097727?pt=LH_DefaultDomain_0&hash=item2a2073f8ff

http://www.ebay.com/itm/Spruce-STM32-Arduino-Maple-Compatible-Board-Without-LCD-/200804146216?pt=LH_DefaultDomain_0&hash=item2ec0dc1c28

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
thibaut2
Associate II
Posted on August 10, 2012 at 15:38

I got an IC which has MAC and PHY layer, with SPI input.

together with an F100, it's twice cheaper than a F103 (i don't speak of evalboard tools, rather IC price for production.)

I already found an opensource tiny IPstack but was curious if a stack already existed for F100 serie so i didn't have to adapt it.

Or maybe the stack for F103 can be ran on F100 ?

Posted on August 10, 2012 at 16:31

I've found the F100 and F103 are fairly interchangeable, just consider one with a max speed of 24 MHz, the other at 72 MHz, although the latter can be clocked at 24 MHz with the same PLL/FLASH settings etc. Other than that just keep track of what peripherals are supported by Value Line, Medium Density, High Density, Connectivity, variants of the STM32F1xx series.

There is certainly a common foot print migration path, and you can buy the part that fits the need.

SPI attached Ethernet, whole heap of fun there.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
thibaut2
Associate II
Posted on August 13, 2012 at 16:00

Thanks for all infos.

About SPI, it's a peripheral i got to use in various applications such as with a ST7540, i shall get it working 😉