Keil Logo Arm Logo

STM32F10x_StdPeriph_Lib from stm.com

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Søren Panduro
Posted
30-Apr-2010 21:07 GMT
Toolset
ARM
New! STM32F10x_StdPeriph_Lib from stm.com

Hi

I'm trying to use the STM32F10x_StdPeriph_Lib that I have downloaded from stm.com, my problem is how do I tell uVision that it shall not use the default file located a C:\Keil\ARM\INC\ST\. Or to put it in another words, how do I remove the compiler string “-I "C:\Keil\ARM\INC" ”

now I gets thees kinds of errors: C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h(23): error: #256: invalid redeclaration of type name "s32"

Best regards
SPA

Read-Only
Author
Andy Neil
Posted
30-Apr-2010 22:37 GMT
Toolset
None
New! RE: STM32F10x_StdPeriph_Lib from stm.com

Look-up "Include paths" and "Library paths" in the manuals...

Read-Only
Author
Benjamin Sasseen
Posted
13-May-2010 22:51 GMT
Toolset
ARM
New! RE: STM32F10x_StdPeriph_Lib from stm.com

I'm having the same problem. I already searched the manual, and I wasn't able to find the solution. Any help?

Read-Only
Author
Marco Accame
Posted
14-May-2010 13:32 GMT
Toolset
ARM
New! RE: STM32F10x_StdPeriph_Lib from stm.com

I am using a recompiled STM32 library and I also had your problem.

One workaround is the following:
1. place your library into <path>/lib/STM32.lib,
2. place all the .h files into <path>/inc,
3. link the STM32.lib,
4. add <path>/inc via menu in Options-C/C++/-Include Paths.

That will solve your problem because the new include path will override the default one.

Another way to solve it is by operating on the device database (menu: File-Device Database) and changing the include path in REGFILE.

The default line is:
REGFILE=stm32f10x_lib.h("ST\STM32F10x")

If can change it into:
REGFILE=stm32f10x_lib.h("ST\STM32F10x-v3.2.0")

However, you must do it for every device you wnat to change and recreate a new project. Also ... the new include path can be only below C:\Keil\ARM\INC ...

Hi, Marco.

Read-Only
Author
Søren Panduro
Posted
18-May-2010 19:04 GMT
Toolset
ARM
New! RE: STM32F10x_StdPeriph_Lib from stm.com

Hi

Thansk, I think I will try i out, for now i have just deleted the default inc. and src. folders.

Best regards
S. panduro

Read-Only
Author
Robocolor Robocolor
Posted
3-Jun-2010 17:34 GMT
Toolset
ARM
New! RE: STM32F10x_StdPeriph_Lib from stm.com

find one the following line

#include "stm32f10x_type.h"

in the file of stm32f10x_conf.h.

use "//"before this line and then rebuild the project.

Good luck!

Read-Only
Author
Andy Neil
Posted
3-Jun-2010 18:11 GMT
Toolset
ARM
New! RE: use "//"before this line and then rebuild the project.

You mean, comment-out the line?

That will almost certainly prevent the project from building!

stm32f10x_type.h contains the "portable" type definitions like u8, s32, etc, which are used throughout the library - if you comment-out this header, they will all be undefined!

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings