Unable to debug/program NUCLEO-F303K8
Hello,
I was planning on having some fun with my NUCLEO-F303K8 board today but before I got that far I stumbled upon some problems. I am using System Workbench 1.13.1 on Windows 10 (x64).
When I try to debug my application I get the following error message (at 93%):
Error in final launch sequence
Failed to execute MI command:
load D:\Daniel\SystemWorkbench\workspace\MLX90614\Debug\MLX90614.elf
Error message from debugger back end:
Error erasing flash with vFlashErase packet
Error erasing flash with vFlashErase packet
When I check the openocd console I see the following:
Error: timed out while waiting for target halted
TARGET: stm32f3x.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’
I get that error three times, then at the end:
Error: Target not halted
Error: failed erasing sectors 0 to 1
Error: flash_erase returned -304
There seems to be a similar problem in this thread but I did not get it to work with the proposed solutions. Anyone have any other suggestions?
Another strange problem I have is that I tried to program my board using ST-LINK utility but it doesn’t detect it, so I cannot connect to it. All it says is “cannot connect to target” and suggests I go to settings and choose “connect under reset”, but I see no such option.
I know I must have managed to program the board a couple of month ago when I bought it because the demo application that was on it is no longer running when I connect the usb cord. I have updated the firmware a couple of times but it has always succeeded.
So I can connect in order to upgrade the ST-LINK firmware but not to do anything else it seems.
BR
Daniel