Skip to main content
Lisa Ha
Visitor II
August 14, 2018
Question

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

  • August 14, 2018
  • 1 reply
  • 745 views

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.

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    August 14, 2018

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..