Skip to main content
Visitor II
February 5, 2013
Question

ST-Link problems on STM32F103

  • February 5, 2013
  • 3 replies
  • 936 views
Posted on February 05, 2013 at 13:50

Hi all,

I am having difficulty using an ST-Link V2 to program the FLASH of my STM32F103 on the STM3210E-EVAL board. It programs up until the last block and then states a message that programming to that location failed. If I connect my J-Link to program all works fine.

I have seen suggestions with regard to firmware upgrades and software upgrades, but none of the upgrades made any difference on my system.

Can anyone tell me what might be wrong?

Thanks,

H

#stlink
    This topic has been closed for replies.

    3 replies

    Graduate II
    February 5, 2013
    Posted on February 05, 2013 at 16:44

    Perhaps the flash programming applet associated with the project thinks the flash is larger than the one on the die.

    Does it fail with the ST Link utility, or the most current release of your tool chain?
    hermanvAuthor
    Visitor II
    February 8, 2013
    Posted on February 08, 2013 at 09:50

    Hi Clive,

    It actually fails with the ST-Link standalone utility.

    H

    Graduate II
    February 8, 2013
    Posted on February 08, 2013 at 15:25

    It actually fails with the ST-Link standalone utility.

    Well that's a bit of a bugger. Might suggest you check on different PC, and with different chips/boards, older/newer version of the utility. This would give some idea if the problem follows. Check also that some blocks aren't write protected, or option byte settings.

    I'd probably try to drive ST-Link through Keil, and see if mass erase, or applets used there perform any better.

    The ST-Link is a pretty low rent solution, it doesn't have the commercial polish of the J-Link, et al