EEVblog Electronics Community Forum

Electronics => Microcontrollers => Topic started by: MT on August 19, 2015, 12:32:08 am

Title: Latest stm32f10x.h
Post by: MT on August 19, 2015, 12:32:08 am
Do anyone know if there is a newer stm32f10x.h file then March 2012 and if so where could i find it?
Title: Re: Latest stm32f10x.h
Post by: westfw on August 20, 2015, 07:57:13 am
Yes, sort of.   If you download the STM "Cube" package for the F1, you'll find that stm32f10x.h has been replaced by stm32f1xx.h and/or individual (per-chip) stm32f102xb.h (and etc) files.  The latest is from 2015 (STM Cube v1.2), although comparing it to the initial F1 Cube release (1.0, in 2014) it seems to show that nothing has changed other than version numbers and copyright notices.

I'm glad; I really disliked the the older version's "tell us whether you're a low-end, midrange, or enhanced-midrange chip" rather than just being able to give it a chip number.   OTOH, the new way makes the source more bloated.

http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/LN1897/PF260820# (http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/LN1897/PF260820#)
(and: the cube download is easier to find on the website than the "Standard peripheral library" used to be.  Yeah for progress!)
Title: Re: Latest stm32f10x.h
Post by: MT on August 20, 2015, 05:31:40 pm
Thank you very much for the info westfw!
I dont like the old way nor the new way, i do direct register programming so....i have an argument with ST every day!
Title: Re: Latest stm32f10x.h
Post by: westfw on August 21, 2015, 01:47:06 am
Quote
i do direct register programming
I didn't mean that I thought CUBE was better than SPL; just that I prefer having separate per-device CMSIS .h files instead of a common file with a bunch of conditionals...
Title: Re: Latest stm32f10x.h
Post by: Bassman59 on August 21, 2015, 10:12:18 pm
Quote
i do direct register programming
I didn't mean that I thought CUBE was better than SPL; just that I prefer having separate per-device CMSIS .h files instead of a common file with a bunch of conditionals...
You mean you don't love the Atmel Software Framework??  :-BROKE
Title: Re: Latest stm32f10x.h
Post by: ataradov on August 21, 2015, 10:47:38 pm
What's up with all the chip vendors making us extract the headers from heaps of garbage code? And you are in luck if it does not come as an *.exe installer.