cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use the Standard Peripheral Library for STM32F407G-DISC1 in Eclipse?

Lisa Ha
Associate

I want to do a C Project in Eclipse using the STDPeriph. But when selecting the STM32F407G-DISC1, there is no firmware defined for this target.

1 REPLY 1

Don't things like Atollic or SW4 use "Eclipse" ? Can you not port or replicate the "Workspaces" to create your own project?

The SPL has relatively simple requirements, you'd want to set up the Include Paths so the library .H files can be found, and then pull all the used library .C files into your project, and set the command line compiler defines with USE_STDPERIPH_DRIVER

See

STM32F4xx_DSP_StdPeriph_Lib_V1.8.0\Project\STM32F4xx_StdPeriph_Templates\SW4STM32\STM32F40_41xxx\.cproject

STM32F4-Discovery_FW_V1.1.0\Project\Peripheral_Examples\ADC3_DMA\TrueSTUDIO\ADC3_DMA\.cproject

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..