Flashing and debugging STM32F103C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-07 06:55 AM
Hello Everyone,
I got a new board for then STM32F103C and I want to debug as well as dump code.
I connect the BOOT0 to GND, and connect the respective pins of STLink (Nrst Pin- NC).
However I am not able to do anything.
It gives hardFault error
- Labels:
-
DEBUG
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-07 06:58 AM
Images for reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-07 06:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-07 06:20 PM
Don't see any code that you are building or downloading.
Can you download the code you have built with the ST-LINK Utilities or STM32 Cube Programmer application?
Not a lot to work with here.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-09 11:49 PM
Dear Clive,
Thanks for responding.
This is what I get from cube programmer: it remains same if I connect boot0 high or low
12:16:04 : Time elapsed during download operation: 00:00:00.426
12:16:04 : Verifying ...
12:16:04 : Read progress:
12:16:05 : Download verified successfully
12:16:05 : RUNNING Program ...
12:16:05 : Address: : 0x08000000
12:16:05 : Application is running
12:16:05 : Start operation achieved successfully
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-09 11:51 PM
if I connect boot0 to high,
and debug thru eclipse it works but after reset their is no code.
if I connect boot0 to low,
it gives error- unable to erase flash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-09 11:52 PM
it doesn't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-10 05:33 AM
Suggests the code you are loading is interfering with pins or sleeping the device. Your code is likely running, just not doing what you want. No visibility on what's been programmed.
Sorry, not going to work through Eclipse and OpenOCD/GDB issues.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-10 07:33 AM
So does that mean that problem is in eclipse.. or ...
what should I do to make it work, Please suggest some work around
![](/skins/images/3B802B20E5B9FCB8AFED4D71677E66F5/responsive_peak/images/icon_anonymous_message.png)