mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-05-06 00:04:22 +00:00
By default openocd tries to "guess" the file type and interpret it accordingly. For example it will detect an ELF file based on the presence of an ELF header and will try to load the relevant segments into the flash. This may not be what we want. For example, I want to load the raw ELF file into the flash. Additionally the ELF parser in most distro's OpenOCD version only supports ELF32 and will error out. This adds a "-t" argument to flash-arty to allow us to specify the file format. For example "-t bin" will treat the file as raw binary. Unfortunately I had to copy and modify jtagspi.cfg from OpenOCD to achieve this. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
15 lines
264 B
INI
15 lines
264 B
INI
interface ftdi
|
|
ftdi_vid_pid 0x0403 0x6010
|
|
ftdi_channel 0
|
|
ftdi_layout_init 0x00e8 0x60eb
|
|
reset_config none
|
|
|
|
source [find cpld/xilinx-xc7.cfg]
|
|
source openocd/jtagspi.cfg
|
|
adapter_khz 25000
|
|
|
|
proc fpga_program {} {
|
|
global _CHIPNAME
|
|
xc7_program $_CHIPNAME.tap
|
|
}
|