Topic : using the STM32 firmware libraries

Forum : Ride IDE

Original Post
Post Information Post
August 19, 2008 - 2:54am
Guest

Hi,

I am trying to use RIDE7 (version 7.10.0000 and Ride Kit ARM version 1.10.000) for STM32 and would like to use the STM32 firmware library. I've read the firmware library documentation and searched through the forums but for some reason I can not quite get it. Could someone kindly tell me how to do this step-by-step with a fresh install of RIDE?

I have tried #including "stm32f10x_lib.h" but I get an error that "stm32f10x_conf.h" is not found. I've seen somewhere that I need to modify the "stm32f10x_conf.h" for my project, but I'd really prefer to not have to do that. In the case that I do have to modify it, what do I need to modify (for example for using the GPIO periperal) and where do I do that? Do I need to copy it from the firmware library directory and put it in with my own project headers? What is normally done?

Thanks.

Replies
Post Information Post
+1
0
-1
August 19, 2008 - 2:58pm
Guest

Hi

When you have installed the software you should find in "C:\program files\Raisonance\Ride\Lib\ARM\STM32F10x_LIB\project"
everything about this library.
There you can open "C:\test\Ride\Lib\ARM\STM32F10x_LIB\project\RIDE\project.rprj" to see how it works.
After a build of this project you can even see the dependency file under each source file ....

The "stm32f10x_conf.h" that is used by this project can be found also at
"C:\program files\Raisonance\Ride\Lib\ARM\STM32F10x_LIB\project"
If you check the application option of this project you will see that the Include directories are defined so all .h can be found

If you want to use this stm32f10x_conf.h you need either to copy it in to your working directory or to add its path in your application option.

In every case you will need to open this file to see which peripherals are enabled.
If their defined are commented and you want to use them you need to uncomment and so on ......

PS make sure you save your project before you build when you change such project properties.

I hope this will help you.

Best regards,
Matloub