cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F1/F4 incompatible I/O

picguy2
Associate II
Posted on December 08, 2011 at 19:34

From their respective RMs:

STM32F1... 0x4002 2000 - 0x4002 23FF Flash memory interface

STM32F4... 0x4002 2000 - 0x4002 23FF GPIOI

Thus a project predicated on STM32x compatibility must have at least different I/O base addresses based on processor type.  Damn!

I guess I have to say it again, “substantial compatibilityâ€� or in ST’s case, “compatibleâ€�, means incompatible.  Now I have to go through, identify all the differences and come up with a way to select the proper include files.

Does anyone know if the (possibly subset of) I/O offset address are always the same?
4 REPLIES 4
sbmeirow
Associate II
Posted on December 13, 2011 at 06:27

If you compile a list, please post.

hpipon957
Associate III
Posted on December 13, 2011 at 21:02

Hi

The memory mapping changes of some peripheral blocks are quite a small difference. It is to be noted that there are various larger differences in the peripheral blocks themselves.

- the clock module and internal bus clock configuration is quite different

- the peripheral pin configuration is quite different

- the Flash modules are very different (rather than a 1k, 2k or 4k Flash granularity that the F1 has the F4 has different Flash sector sizes from 16k to 128k which makes it totally incompatibe with file system implementations).

I am working on a document showing the differences (and how to make a project compatible will all types) here:

http://www.utasker.com/docs/STM32/uTaskerV1.4_STM32_Developers_Document.pdf

Regards

Mark

http://www.uTasker.com

sbmeirow
Associate II
Posted on December 14, 2011 at 02:08

Thanks!

I created this article a couple weeks ago.  I still need to add a big overview section, expand STM32 F1, add STM32 W, add some photos.

http://en.wikipedia.org/wiki/STM32

I started overhauling this article last weekend.  It still needs a lot of work.

http://en.wikipedia.org/wiki/ARM_Cortex-M

I need to spend some time to examine uTasker.  I looked at it briefly when expanding these articles.

Steve

http://en.wikipedia.org/wiki/User:Sbmeirow

rmteo
Associate II
Posted on December 14, 2011 at 16:41

Here is another free RTOS

http://www.coocox.org/CoOS.htm