diff options
-rw-r--r-- | src/svf/svf.c | 4 | ||||
-rw-r--r-- | tcl/board/balloon3-cpu.cfg | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/svf/svf.c b/src/svf/svf.c index dec4b19f..276a374e 100644 --- a/src/svf/svf.c +++ b/src/svf/svf.c @@ -680,6 +680,10 @@ static int svf_copy_hexstring_to_binary(char *str, uint8_t **bin, int orig_bit_l } } + // consume optional leading '0' characters + while (str_len > 0 && str[str_len - 1] == '0') + str_len--; + // check valid if (str_len > 0 || (ch & ~((1 << (4 - (bit_len % 4))) - 1)) != 0) { diff --git a/tcl/board/balloon3-cpu.cfg b/tcl/board/balloon3-cpu.cfg new file mode 100644 index 00000000..8a646b76 --- /dev/null +++ b/tcl/board/balloon3-cpu.cfg @@ -0,0 +1,13 @@ +# Config for balloon3 board, cpu JTAG port. http://balloonboard.org/ +# The board has separate JTAG ports for cpu and CPLD/FPGA devices +# Chaining is done on IO interfaces if desired. + +source [find target/pxa270.cfg] + +# The board supports separate reset lines +# Override this in the interface config for parallel dongles +reset_config trst_and_srst separate + +# flash bank <driver> <base> <size> <chip_width> <bus_width> +# 29LV650 64Mbit Flash +flash bank cfi 0x00000000 0x800000 2 2 0 |