OCD unable to launch cfg (SOLVED) Topic is solved

Discussions and support about ChibiStudio, the free development environment for ARM.
duracell
Posts: 24
Joined: Tue Jul 05, 2016 8:55 am
Has thanked: 4 times
Been thanked: 1 time

OCD unable to launch cfg (SOLVED)

Postby duracell » Thu Sep 15, 2016 10:26 am

Hi to all,

I would like to share a solution to a problem.

What happened?
I had launched the .cfg in the OCD and I had the following message:

► Show Spoiler



I did not know the reason, I tried to modify the .cfg, I tried to reinstall usb drivers, I tried to lauch with different .cfg....but nothing changed and at the end I was very sad as I tought I had broken three discovery boards.


But the microcontrollers were still working, leds were blinking as they were supposed to do, anyway I was unable re-flash them.


The problem was that I used PA13 and PA14 as output pin and those pin were reserved for the JTAG! For this reason the code was working but the microcontrollers were unable to communicate with OCD.

SOLUTION (PROBABLY NOT THE BEST ONE)
Keep the reset button pressed, then lauch the .cfg (the operation will be successful), then try to flash the microcontroller, this operation obviously
will not succed, but the old firmware will be erased and the JTAG pins will be free again.
And then it will be possible to lauch again the .cfg

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: OCD unable to launch cfg (SOLVED)  Topic is solved

Postby Giovanni » Thu Sep 15, 2016 12:49 pm

Hi,

Another solution is to use the ST-Link Tool, it has an option to freeze the MCU after reset, then you can erase the chip.

Giovanni


Return to “ChibiStudio”

Who is online

Users browsing this forum: No registered users and 3 guests