Skip to main content
ecatala
Associate II
May 30, 2014
Question

I canot program micro STM32F051k4U6 with STM32 ST-LINK utuility

  • May 30, 2014
  • 4 replies
  • 751 views
Posted on May 30, 2014 at 11:09

I compiled the micro STM32F05k4U6 using the IAR Embedded Workbench for ARM 6.40.2 and I get a binary

When I tried to program the binary using the STM32 ST-Link Utility the binary gets download but when I power up the board the binary is not really loaded.

I think must be some property in the IAR Embedded Workbench that must not be well configured.

Best regards,

Estanis
    This topic has been closed for replies.

    4 replies

    chen
    Associate II
    May 30, 2014
    Posted on May 30, 2014 at 11:17

    Hi

    Yes, this one use to catch me out all the time.

    In IAR, they provide a simulator, it is the default target!

    Make sure under targets, you select the ST-link as the target debugger (not the simulator).

    ecatala
    ecatalaAuthor
    Associate II
    May 30, 2014
    Posted on May 30, 2014 at 11:21

    Thanks for the response.

    Do you have some example of IAR embededd project properties I can see?

    Best regards,

    chen
    Associate II
    May 30, 2014
    Posted on May 30, 2014 at 11:49

    Hi

    ''Do you have some example of IAR embededd project properties I can see?''

    Unfortunately not at the moment, the company I work at now uses Atollic (I do not recommend it!).

    I believe there are many IAR projects in the standard peripheral Library

    http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/PF257884

    chen
    Associate II
    May 31, 2014
    Posted on May 31, 2014 at 16:04

    Hi

    OK, so I have my laptopn now and have grabbed this screen shot for you.

    Select the debuger option in left pane.

    In the debugger tab (right pane) - in the 'Driver' drop down list - select the ST-Link (instead of simulator)

    ________________

    Attachments :

    IAR_Settings.PNG : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I18m&d=%2Fa%2F0X0000000biw%2F0hK90AK3HasFgHo0lgxMJzd5zALDqcl_N65uKWekR7U&asPdf=false