cancel
Showing results for 
Search instead for 
Did you mean: 

Crossworks + Standard Peripheral Library

lipin
Associate II
Posted on May 19, 2010 at 20:52

Crossworks + Standard Peripheral Library

6 REPLIES 6
lipin
Associate II
Posted on May 17, 2011 at 13:51

Hi,

I just figured out how to make it work.

I copied:

core_cm3.h

stm32f10x.h

system_stm32g10x.h

to

CMSIS/Core/CM3 directory.

The question remains if its the right way of doing this.

Greetings

Thomas

darcy23
Associate II
Posted on May 17, 2011 at 13:51

Hi, the guys at Rowley are extremely helpful and usually reply within 24 hours.  You'd be more likely to get an answer if you post in their forums

You shouldn't need to move any of the header files

http://rowley.zendesk.com/forums/51116-user-forum

Andrew Neil
Evangelist III
Posted on May 17, 2011 at 13:51

Forum broken?

Andrew Neil
Evangelist III
Posted on May 17, 2011 at 13:51

''You shouldn't need to move any of the header files''

Indeed you shouldn't!

If the tools are not finding the files, that must be because they are looking in the wrong place!

So the answer is to reconfigure the tools to look in the right place!

The setting to control where the tools search for include files is usually called something like the ''Include Path'' - check your particular tool documentation.

trevor23
Associate III
Posted on May 17, 2011 at 13:51

project properties -> preprocessor options -> user include directories

lipin
Associate II
Posted on May 17, 2011 at 13:51

Thank you. It seems there was directory structure change bettween different CMSIS versions to make CrossWorks work with new library change user include directories.

Project explorer->Project proporties->User Incude directories and change it to:

.

$(STM32F10X_STDPERIPH_LIB)/Libraries/CMSIS/CM3/CoreSupport

$(STM32F10X_STDPERIPH_LIB)/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x

$(STM32F10X_STDPERIPH_LIB)/Libraries/STM32F10x_StdPeriph_Driver/inc

Regards

Thomas