cancel
Showing results for 
Search instead for 
Did you mean: 

Need Working Code for STM32F107

senthil
Associate II
Posted on August 30, 2016 at 19:15

Here i enclosed the Working Code For STM32F103.i Want to Convert this code to STM32F107 for Project Needs. This Code Not work in STM32F107 25Mhz Board .How can i init SPI According to the Board. This code Interface Between Serial Flash WINBOND and STM32.

Need Ur Suggestions

#winbond-serial-flash
2 REPLIES 2
christoph2399
Associate II
Posted on August 31, 2016 at 09:31

did you use the

http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html

tool to set up your project?

its an easy way to configure all the peripherals of ur MCU and get an ready to compile project which you easiely can modify.

you can also load the configurations of the eval boards and modify them.
slimen
Senior
Posted on August 31, 2016 at 11:38

Hi,

As proposed by 'd-chris' , you can start your own application from CubeMX to initialize peripherals needed with the configuration that you want.

You may also, re-use sections available in the examples or get inspired from them.

You can refer to the manual

http://http://www.st.com/content/ccc/resource/technical/document/reference_manual/59/b9/ba/7f/11/af/43/d5/CD00171190.pdf/files/CD00171190.pdf/jcr:content/translations/en.CD00171190.pdf

, exactly in section (25 Serial peripheral interface (SPI)) to have more idea about SPI configuration and refer to the STM32F107 datasheet for more details/clarification.

Regards