ilg-archived / openocd

The GNU MCU Eclipse OpenOCD
http://gnuarmeclipse.github.io/openocd/
GNU General Public License v2.0
235 stars 62 forks source link

STM32F4 Discovery init mode failed #9

Closed tlamb96 closed 8 years ago

tlamb96 commented 8 years ago

When I try to connect via the command: sudo ./openocd -f board/stm32f4discovery.cfg I get the following output: http://pastebin.com/dcPBQ52Q I have googled and cannot find an answer. I have the 49-stlinkv2.rules, 99-openocd.rules, and stlink.conf in my /etc/udev/rules.d folder. I have the most recent firmware on my board from here: http://www.st.com/content/st_com/en/products/embedded-software/development-tool-software/stsw-link004.html Do you know what's going wrong?

ilg-ul commented 8 years ago

for general support please use the project forum.

tlamb96 commented 8 years ago

My STM32F4 board was shipped with Read Out Protection to level 1 which disables any writing to the memory. As an STM32 novice, this took quite a lot of time to figure out but is now fixed.

ilg-ul commented 8 years ago

ok, thank you for the info.