summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
Diffstat (limited to 'bsp')
-rw-r--r--bsp/drivers/clic/clic_driver.c2
-rw-r--r--bsp/env/freedom-e300-arty/openocd.cfg4
2 files changed, 3 insertions, 3 deletions
diff --git a/bsp/drivers/clic/clic_driver.c b/bsp/drivers/clic/clic_driver.c
index 0612e58..136ccee 100644
--- a/bsp/drivers/clic/clic_driver.c
+++ b/bsp/drivers/clic/clic_driver.c
@@ -30,7 +30,7 @@ void clic_init (
this_clic->num_config_bits= num_config_bits;
//initialize vector table
- for(int i=0;i++;i<num_irq) {
+ for(int i=0;i<num_irq;i++) {
this_clic->vect_table[i] = default_handler;
}
diff --git a/bsp/env/freedom-e300-arty/openocd.cfg b/bsp/env/freedom-e300-arty/openocd.cfg
index f4b28ed..ba13207 100644
--- a/bsp/env/freedom-e300-arty/openocd.cfg
+++ b/bsp/env/freedom-e300-arty/openocd.cfg
@@ -13,13 +13,13 @@ ftdi_layout_signal LED -data 0x0800
#
set _CHIPNAME riscv
-jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913
+jtag newtap $_CHIPNAME cpu -irlen 5
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME riscv -chain-position $_TARGETNAME
$_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1
-flash bank my_first_flash fespi 0x20000000 0 0 0 $_TARGETNAME
+flash bank my_first_flash fespi 0x20000000 0 0 0 $_TARGETNAME 0x10014000
init
#reset
if {[ info exists pulse_srst]} {