cancel
Showing results for 
Search instead for 
Did you mean: 

How to build up firstly the project with SPL in Keil?

Carter Lee
Associate III
Posted on September 04, 2017 at 11:05

Hi.

Currently I'm struggling with building up the project with SPL library in Keil.

0690X000006044aQAA.jpg

For example, I'd like to use USART's Interrupt example.

C:\work\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\USART\Interrupt

and I add codes and set up the include directory.

But I got still error messages what there is missing define.

Could you please how to resolve this problem?

and I've attached project file. ex14.7z 

#getting-start
2 REPLIES 2
Posted on September 04, 2017 at 13:04

Look at how template project is constucted.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on September 05, 2017 at 04:01

Thanks Clive, But I'm still struggling with build up the project even I refer the template project.

the error message is the below

can you help me what am I supposed to do?

0690X00000603sHQAQ.jpg

*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'

Rebuild target 'Target 1'

compiling stm32f10x_it.c...

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(343): error: #67: expected a ''}''

ADC1_IRQn = 18, /*!< ADC1 global Interrupt */

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error

} IRQn_Type;

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\USART\Interrupt\stm32f10x_it.c: 1 warning, 1 error

compiling main.c...

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(343): error: #67: expected a ''}''

ADC1_IRQn = 18, /*!< ADC1 global Interrupt */

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error

} IRQn_Type;

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\USART\Interrupt\main.c: 1 warning, 1 error

compiling system_stm32f10x.c...

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(343): error: #67: expected a ''}''

ADC1_IRQn = 18, /*!< ADC1 global Interrupt */

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error

} IRQn_Type;

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\USART\Interrupt\system_stm32f10x.c: 1 warning, 1 error

compiling core_cm3.c...

assembling startup_stm32f10x_hd_vl.s...

compiling stm32_eval.c...

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(343): error: #67: expected a ''}''

ADC1_IRQn = 18, /*!< ADC1 global Interrupt */

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error

} IRQn_Type;

///// ... ............////

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error

} IRQn_Type;

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_usart.c: 1 warning, 1 error

compiling stm32f10x_wwdg.c...

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(343): error: #67: expected a ''}''

ADC1_IRQn = 18, /*!< ADC1 global Interrupt */

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error

} IRQn_Type;

..\en.stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_wwdg.c: 1 warning, 1 error

''.\Objects\exaxf'' - 27 Error(s), 27 Warning(s).

Target not created.

Build Time Elapsed: 00:00:29

________________

Attachments :

ex14_9_5.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HySL&d=%2Fa%2F0X0000000b7z%2F2QBIdBoPPt69nnp_rkxw1bWyUu.F0JyNuxeDKvD9nDE&asPdf=false