Skip to main content
kanno
Visitor II
October 15, 2012
Question

STM32F0 flash programming

  • October 15, 2012
  • 2 replies
  • 821 views
Posted on October 15, 2012 at 12:50

Dear friends.

I'm making a program for STM32F051R8 (STM320518-EVAL).

And I was using ST-Link.

But, When I was write program that use USART2 (PA14/15),

I can not connect to the target by ST-Link.

I have tried FlashLoaderDemo V2.5, but it did not work for F0.

I want to write a new program to the target.

Please tell me another way.

Thank you.

T.Kanno

#stm32f0-st-link-flash-program
This topic has been closed for replies.

2 replies

sgrunza
Visitor II
October 15, 2012
Posted on October 15, 2012 at 14:39

If you could distill your program down to something small that has the same failure symptoms and then post the program, I (and probably others) could try to reproduce the problem and perhaps come up with a solution.  I have the STM32F0Discovery board so my results may not be helpful for you.  I'm using OpenOCD 0.6 and the CodeSourcery Lite tools (on both WinXP and Fedora16).

Tesla DeLorean
Guru
October 15, 2012
Posted on October 15, 2012 at 15:21

If you could distill your program down to something small that has the same failure symptoms and then post the program, I (and probably others) could try to reproduce the problem and perhaps come up with a solution.

The problem as expressed by the OP is that PA15 USART2_TX conflicts with the SWD's SWCLK pin, and thus kills the debug options.

PA2, PA3 may be a better pin choice for USART2 operation.

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