-
Notifications
You must be signed in to change notification settings - Fork 4
Openocd file structure
Here is the file tree that results from building OpenOCD on a linux system. Flash drivers are in openocd/src/flash/nor and will be very instructive to you once you understand their basic structure. That understanding comes from looking at the code and documentation in this project, of course. The source code for the "write" assembly code is in openocd/contrib/loaders/flash. If you create code for a flash driver, the source should go in here.
Doing "make" (not "make install") in the openocd directory creates an executable named "openocd" in the src directory. Run it from that directory with "sudo ./openocd [options]". It will look in the usual place for configuration files. Scripts are typically located (by default) in /usr/local/share/openocd/scripts. So an example run of openocd using an STM32-Discovery with Versaloon software aimed at an STM32 target would be started by: sudo ./openocd -f interface/vsllink-swd.cfg -f target/stm32.cfg
- openocd
- |-- autom4te.cache
- |-- contrib
- |...|-- libdcc
- |...`-- loaders
- |.......|-- checksum
- |.......`-- flash
- |-- doc
- |...`-- manual
- |.......|-- primer
- |.......`-- target
- |-- ecosflash
- |-- jimtcl
- |...|-- examples
- |...|-- examples.api
- |...|-- freebsd
- |...|-- tcltests
- |...|-- tests
- |...`-- tools
- |-- src
- |...|-- flash
- |...|...|-- nand
- |...|...|-- nor
- |...|...`-- ocl
- |...|.......`-- at91sam7x
- |...|-- helper
- |...|-- jtag
- |...|...|-- drivers
- |...|...|...`-- versaloon
- |...|...|.......`-- usbtoxxx
- |...|...|-- minidriver
- |...|...|-- minidummy
- |...|...`-- zy1000
- |...|-- pld
- |...|-- server
- |...|-- svf
- |...|-- target
- |...|...|-- ecos
- |...|...`-- xscale
- |...`-- xsvf
- |-- tcl
- |...|-- board
- |...|-- chip
- |...|...|-- atmel
- |...|...| `-- at91
- |...|...`-- st
- |...|.......|-- spear
- |...|.......`-- stm32
- |...|-- cpld
- |...|-- cpu
- |...|...`-- arm
- |...|-- interface
- |...|-- target
- |...`-- test
- |-- testing
- |...|-- build.test1
- |...|...`-- mingw32_help
- |...|.......`-- include
- |...|...........`-- sys
- |...|-- build.test2
- |...|-- examples
- |...|...|-- AT91R40008Test
- |...|...|...|-- inc
- |...|...|...|-- prj
- |...|...|...`-- src
- |...|...|-- cortex
- |...|...|-- ledtest-imx27ads
- |...|...|-- ledtest-imx31pdk
- |...|...|-- LPC2148Test
- |...|...|...|-- inc
- |...|...|...|-- prj
- |...|...|...`-- src
- |...|...|-- LPC2294Test
- |...|...|...|-- inc
- |...|...|...|-- prj
- |...|...|...`-- src
- |...|...|-- PIC32
- |...|...|-- SAM7S256Test
- |...|...|...|-- inc
- |...|...|...|-- prj
- |...|...|...|-- results
- |...|...|...`-- src
- |...|...|-- SAM7X256Test
- |...|...|...|-- inc
- |...|...|...|-- prj
- |...|...|...`-- src
- |...|...|-- STM32-103
- |...|...|-- STR710JtagSpeed
- |...|...|...|-- inc
- |...|...|...|-- prj
- |...|...|...`-- src
- |...|...|-- STR710Test
- |...|...|...|-- inc
- |...|...|...|-- prj
- |...|...|...`-- src
- |...|...`-- STR912Test
- |...|.......|-- inc
- |...|.......|-- prj
- |...|.......`-- src
- |...`-- results
- |.......`-- v0.4.0-rc1
- `-- tools
- ....|-- git2cl
- ....|-- release
- ....|-- rlink_make_speed_table
- ....|-- st7_dtc_as
- ....`-- xsvf_tools
106 directories