flashing another stm32 device via stm32f0-discovery with keil uvision?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-01-09 6:00 AM
I have a custom board I have designed and want to develop on, and want to use the my 'stm32f0-discovery' board to program this custom board.
using the SWD pins on CN4 of my stm32f0-discovery board, i can use 'STM32 Link Utility' to flash this custom board i am working on. All seems well. its just its not convenient having to use
'STM32 Link Utility' every time i want to flash the board when developing.
how do i setup Keil uVision so that i can flash/debug using this setup?
many thanks
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-01-09 8:12 AM
Hi chendy,
Please make sure to have the following settings on keil uVision:
- Project -> Options for Target -> Debug -> Use : ST-Link Debugger
- Project -> Options for Target -> Debug -> Use : ST-Link Debugger -> Settings -> Debug -> Port : SW
- Project -> Options for Target -> Utilities -> Use Debud Driver : checked.
On window:
- Project -> Options for Target -> Debug -> Use : ST-Link Debugger -> Settings -> Debug -> SW Device -> SWDIO
You should find an ID similar to:
Caution
: Be sure that the ST-Link utility tool is disconnected from your device.Khouloud.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-01-09 8:12 AM
Hi chendy,
Please make sure to have the following settings on keil uVision:
- Project -> Options for Target -> Debug -> Use : ST-Link Debugger
- Project -> Options for Target -> Debug -> Use : ST-Link Debugger -> Settings -> Debug -> Port : SW
- Project -> Options for Target -> Utilities -> Use Debud Driver : checked.
On window:
- Project -> Options for Target -> Debug -> Use : ST-Link Debugger -> Settings -> Debug -> SW Device -> SWDIO
You should find an ID similar to:
Caution
: Be sure that the ST-Link utility tool is disconnected from your device.Khouloud.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-01-09 8:38 AM
The same way you'd program it if it were just the DISCO board, go into the options for your project and select the ''ST-Link'' in SWD mode for the Debugger/Utilities Pane, and in the Settings for the debugger picking the STM32F0 Flash Algorithm
I'm sure Keil also has documentation and app notes if you care to review
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
‎2017-01-17 6:29 AM
Caution
: Be sure that the ST-Link utility tool is disconnected from your device.Yep was just this, sorry everybody. Works fine when St-Link utility is not running ofc!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-17 10:10 PM
@
Seveelavanan.Ravicha
: How did you connect your target STM32 to F0 Discovery ? I have also made my custom board for STM32F030R8T6 and connected to STM32 F0 Discovery board on CN3. I have removed jumpers on CN2, but still i cannot program my target device. It says ST Link USB Error.