cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] stm32f0 discovery board as debugger

zlajoan
Associate II
Posted on February 23, 2015 at 23:15

Hi everyone!

I am using st-link on stm32f0 discovery board and ST-LINK utility to program some other boards and that is working like it should. I am working with stm32f030 processor. I am wondering if it is possible to use that st-link on stm32f0 disco as debugger from IAR IDE? This is the error I get:

Mon Feb 23, 2015 23:12:47: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\config\debugger\ST\STM32F05xxx_06xxx.dmac 
Mon Feb 23, 2015 23:12:47: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\config\flashloader\ST\FlashSTM32F05xx8.mac 
Mon Feb 23, 2015 23:12:47: ST-Link firmware too old 
Mon Feb 23, 2015 23:12:47: Selecting SWD as current target interface. 
Mon Feb 23, 2015 23:12:47: Hardware reset with strategy 0 was performed 
Mon Feb 23, 2015 23:12:47: Initial reset was performed 
Mon Feb 23, 2015 23:12:47: -I- execUserFlashInit! 
Mon Feb 23, 2015 23:12:48: 276 bytes downloaded (1.73 Kbytes/sec) 
Mon Feb 23, 2015 23:12:48: Loaded debugee: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\config\flashloader\ST\FlashSTM32F05xxxRAM8K.out 
Mon Feb 23, 2015 23:12:48: Target reset 
Mon Feb 23, 2015 23:12:48: Failed to set breakpoint at 0x20001F84 (out of breakpoints?) 
Mon Feb 23, 2015 23:12:53: Debug session aborted. 

Cheers, Zlatko
2 REPLIES 2
Posted on February 24, 2015 at 01:09

Should be possible, you're going to want to update the firmware, as the log suggests it's old.

Get the most current ST-LINK utilities, and update with that.

Then make sure to fully disconnect the target processor on the DISCO board, so it doesn't interfere. Consider the SWO and NRST pins. Review the manual, schematic, and solder bridges, etc.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
zlajoan
Associate II
Posted on February 24, 2015 at 16:48

I've managed to solve the problem. I've had ''Use flash loader(s)'' box checked and it should be unchecked. It is under Project->Options->Debugger->Download.

Thank you clive for suggestions anyways 😉