Skip to main content
LOKESH VASHISHTH
Associate III
May 19, 2018
Question

How to create a project in keil u5 using cmsis and stdperiph.lib for stm32f429zit micro

Posted on May 19, 2018 at 07:55

I downloaded the en.stm32f4_dsp_stdperiph_lib.

    This topic has been closed for replies.

    10 replies

    Tesla DeLorean
    Guru
    May 19, 2018
    Posted on May 19, 2018 at 17:29

    There should be some template projects you can clone and review. Seem to recall current releases support uV5, but even earlier uV4 projects should load and give options to save in uV5 format.

    STM32F4xx_DSP_StdPeriph_Lib_V1.8.0\Project\STM32F4xx_StdPeriph_Templates\MDK-ARM\Project.uvprojx

    Key things with building projects from scratch

    Bring in all .C files required, including library sources. Don't drop .H files, Keil will find these.

    Provide compiler with correct command line defines indicating library, chip and board as appropriate, ie USE_STDPERIPH_DRIVER, STM32F429_439xx, USE_STM324x9I_EVAL

    Make sure the Include Paths describes all the directories you want to pull include files from, and the ordering of that.

    Select the correct debugger, and flash algorithm for the part.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    LOKESH VASHISHTH
    Associate III
    May 19, 2018
    Posted on May 19, 2018 at 18:56

    But when i used the template for gpio toggle project, the flash file didn't

    work on stm32f429zit discovery board.

    On Sat 19 May, 2018, 9:00 PM Clive One, <st-microelectronics@jiveon.com>

    Tesla DeLorean
    Guru
    May 19, 2018
    Posted on May 19, 2018 at 19:04

    Suggests that board specific details are different for the DISCO. With the DSP/SPL most examples target the EVAL series boards, not the DISCO/NUCLEO ones.

    For board examples for all the boards you're going to have to migrate to the CUBE/HAL, and use the BSP (Board Support Packages) for the individual models.

    You'll need to review and debug the code. Check clocks, pins, peripherals, etc.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    henry.dick
    Associate II
    May 19, 2018
    Posted on May 20, 2018 at 00:46

    quite simple:

    1) follow keil to create a project;

    2) copy in spl;

    3) set up the include path and macros;

    4) compile.

    essentially here: 

    https://dannyelectronics.wordpress.com/2016/04/22/getting-started-on-stm32f103-keil/