cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f10x_vector.c

massimo239955_st
Associate II
Posted on March 25, 2009 at 10:27

stm32f10x_vector.c

2 REPLIES 2
massimo239955_st
Associate II
Posted on May 17, 2011 at 13:07

In the file stm32f10x_vector.c

there is this initialization:

/* Enable GPIOD, GPIOE, GPIOF and GPIOG clocks */

*(vu32 *)0x40021018 = 0x000001E0;

Considerations:

- it isn't clear why the library initializes only some GPIO ports, not all or none.

- I am using a cpu without GPIOD..GPIOG.

Is it a piece of code forgotten by ST engineers ?

Please take a look and let me know.

jilisegiar
Associate II
Posted on May 17, 2011 at 13:07

As described in this file, this code is needed only to Configure external SRAM mounted on STM3210E-EVAL board to be used as data memory (optional, to be enabled by user)