Crossworks + Standard Peripheral Library
I am totaly new to STM32 familly I am trying to develop power inverter project using CMSIS library but I am confused at very beginning.
I use Crossworks 2.0. I have installed: STMicroelectronics STM32F10x Standard Peripherals Library Updates pointed to the CMSIS 3.3.0 library location.
Now when I try to make my own project or even open and compile supplied examples I have always get this error:
D:/lipin/Documents/falownik/STM32F10x_StdPeriph_Lib_V3.3.0/Project/STM32F10x_StdPeriph_Examples/GPIO/IOToggle/stm32f10x_it.h:26:23: error: stm32f10x.h: No such file or directory
To fix this issue i copied:
core_cm3.h
stm32f10x.h
system_stm32g10x.h
to: CMSIS/Core/CM3 directory.
Is it the right way of doing this? Changing internal structure of CMSIS library seems not.
Thank you for help.
Thomas
-
Hi, have a look at this thread (http://rowley.zendesk.com/entries/103847-which-stm32-processor-include-file-should-be-used) and see if anything in there helps clarify
-
Hmm what I see in post from above is that files from:
CMSIS/CM3/CoreSupport and CMSIS/CM3/DeviceSupport/ST/STM32F10x (CMSIS ver 3.3.0)
used to be in (older CMSIS versions):
CMSIS/Core/CM3
that is what caused all my trouble.
Where I can find STM32F10X_STDPERIPH_LIB macro to modify it ?
Greetings
Thomas
PS. LCD handling in under 19minut coding with CMSIS is soo nice & easy.
-
Thank you. I finnaly found where all inculdes are. To make CrossStudio work with new 3.3.0 library you need to modify user include directories in template.
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.$(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
Please sign in to leave a comment.
Comments
5 comments