diff options
author | Daniel Anselmi <danselmi@gmx.ch> | 2023-09-25 00:05:38 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2023-11-11 18:47:36 +0000 |
commit | d378c3a1d637b61afd4c4f9c2c075cc05be2cb9d (patch) | |
tree | 0075688b0515b815555a57454cd2d6b9b50073c0 /src | |
parent | 5b878b6e8b23d4c4b7aa3bf157c262e4f8620882 (diff) | |
download | riscv-openocd-d378c3a1d637b61afd4c4f9c2c075cc05be2cb9d.zip riscv-openocd-d378c3a1d637b61afd4c4f9c2c075cc05be2cb9d.tar.gz riscv-openocd-d378c3a1d637b61afd4c4f9c2c075cc05be2cb9d.tar.bz2 |
pld/certus: fix crash when loading bitstream
Loading a bitstream to cetrus device crashed due to
missing initialization.
Change-Id: Ibd9a04b84e514f9635af01a2b73bae478e534eb7
Signed-off-by: Daniel Anselmi <danselmi@gmx.ch>
Reviewed-on: https://review.openocd.org/c/openocd/+/7908
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/pld/certus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pld/certus.c b/src/pld/certus.c index a49501f..ccb3feb 100644 --- a/src/pld/certus.c +++ b/src/pld/certus.c @@ -121,6 +121,7 @@ static int lattice_certus_enable_programming(struct jtag_tap *tap) uint8_t buffer = 0; field.num_bits = 8; field.out_value = &buffer; + field.in_value = NULL; jtag_add_dr_scan(tap, 1, &field, TAP_IDLE); jtag_add_runtest(2, TAP_IDLE); return jtag_execute_queue(); |