-
Notifications
You must be signed in to change notification settings - Fork 6
Cortex on windows
Cortex-M (STM32) on Windows These are only windows-specific instructions, see STM32 tools for full guidelines.
Windows doesn't come with gnu make, obtain from gnuwin32
Since gnu make likes to call other basic utilities (such as rm
), install coreutils
Obtain v0.8.0 from http://www.freddiechopin.info/en/download (its currently under "OpenOCD dev")
Details are explained at http://hertaville.com/2012/09/16/part-3-debugging-openocd-0-6-0/, although use 0.8.0 for latest bugfixes. Alternately, its also described at https://www.ida.ing.tu-bs.de/twiki/bin/view/Main/SpecificSetupOpenOCD
No need to repeat all that here, to summarize:
For ST-LINK/v2 driver download, obtain STSW-LINK003 from www.st.com
Additionally, zadig is useful for selecting driver to be used.
- to use zadig:
- click Options -> List All Devices
- STM32 STLink will show up if plugged in
- driver in use will then show, or you can choose to install one
The first time you run OpenOCD, windows firewall will likely ask you for permission.
You can run OpenOCD in a command prompt
C:\tmp\openocd-0.8.0-dev-130717143429>bin\openocd-0.8.0-dev-130717143429.exe -f scripts\interface\stlink-v2.cfg -f scripts\target\stm32lx_stlink.cfg
You may want to enable telnet client in windows http://elinux.org/Configuring_Windows_7_for_OpenOCD, for to reset target reset init
or reset halt