2017-08-29 07:36 AM
Hi
When I copy and paste this program ( the rirst one with 285 lines)
http://embeddedsystemengineering.blogspot.ca/2016/06/arm-cortex-m3-stm32f103-project-dsp.html
I have an error:
fatal error: stm32f10x.h: No such file or directory
/Src/main.c(2): error: #5: cannot open source input file 'stm32f10x_rcc.h': No such file or directory
How to solve the problem ?
RegardsTed2017-08-29 12:10 PM
Hello Ted
Go to Project options ->C/C++ tab->Include paths and add new paths to your include directories
Regards
vf
2017-08-29 12:44 PM
Example uses the original SPL (Standard Peripheral Library), not the HAL/Cube libraries.
http://www.st.com/en/embedded-software/stsw-stm32054.html
Download, bottom of page
2017-08-29 03:20 PM
Posted on August 29, 2017 at 22:20
The original post was too long to process during our migration. Please click on the provided URL to read the original post.
________________________
Attachments :
2017-08-29 04:13 PM
I installed STSW-STM32054
I think I need to change #1 to #2 but how ?
________________ Attachments : change.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyTI&d=%2Fa%2F0X0000000b8C%2FBkJ2PqPQ7W_25thIN3BipFBdzuXD1bjY5BJrnu1gqkM&asPdf=false2017-08-30 09:27 AM
>>I think I need to change ♯ 1 to ♯ 2 but how ?
What do these refer too?
You'd want to replicate one of the project templates for your donor project, and then paste in code from the example into the 'main.c'.
You shouldn't need to pull in the separate peripheral files, usually these come in via stm32f10x.h, and stm32f10x_conf.h and the define USE_STDPERIPH_DRIVER