diff options
author | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-06-21 13:56:00 -0700 |
---|---|---|
committer | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-06-21 14:00:24 -0700 |
commit | 9b807f144969bed818e1f14d0cfdcfc277f492c5 (patch) | |
tree | 36ded917b89e0dcf3727a62acd68b758d2e756cb /bsp/freedom-e310-arty | |
parent | 3624375a5d3beaa0ae95b71dff739cdab9cb9ccd (diff) |
Update targets
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'bsp/freedom-e310-arty')
-rw-r--r-- | bsp/freedom-e310-arty/metal-inline.h | 6 | ||||
-rw-r--r-- | bsp/freedom-e310-arty/metal-platform.h | 6 | ||||
-rw-r--r-- | bsp/freedom-e310-arty/metal.default.lds | 6 | ||||
-rw-r--r-- | bsp/freedom-e310-arty/metal.h | 12 | ||||
-rw-r--r-- | bsp/freedom-e310-arty/metal.ramrodata.lds | 6 | ||||
-rw-r--r-- | bsp/freedom-e310-arty/metal.scratchpad.lds | 6 | ||||
-rw-r--r-- | bsp/freedom-e310-arty/openocd.cfg | 22 |
7 files changed, 32 insertions, 32 deletions
diff --git a/bsp/freedom-e310-arty/metal-inline.h b/bsp/freedom-e310-arty/metal-inline.h index 5dbb494..9210e60 100644 --- a/bsp/freedom-e310-arty/metal-inline.h +++ b/bsp/freedom-e310-arty/metal-inline.h @@ -5,8 +5,8 @@ #ifndef ASSEMBLY -#ifndef FREEDOM_E310_ARTY__METAL_INLINE_H -#define FREEDOM_E310_ARTY__METAL_INLINE_H +#ifndef FREEDOM_E310_ARTY____METAL_INLINE_H +#define FREEDOM_E310_ARTY____METAL_INLINE_H #include <metal/machine.h> @@ -192,5 +192,5 @@ struct __metal_driver_sifive_uart0 __metal_dt_serial_10013000 = { }; -#endif /* FREEDOM_E310_ARTY__METAL_INLINE_H*/ +#endif /* FREEDOM_E310_ARTY____METAL_INLINE_H*/ #endif /* ! ASSEMBLY */ diff --git a/bsp/freedom-e310-arty/metal-platform.h b/bsp/freedom-e310-arty/metal-platform.h index 74de271..c7b3539 100644 --- a/bsp/freedom-e310-arty/metal-platform.h +++ b/bsp/freedom-e310-arty/metal-platform.h @@ -3,8 +3,8 @@ /* ----------------------------------- */ /* ----------------------------------- */ -#ifndef FREEDOM_E310_ARTY__METAL_PLATFORM_H -#define FREEDOM_E310_ARTY__METAL_PLATFORM_H +#ifndef FREEDOM_E310_ARTY____METAL_PLATFORM_H +#define FREEDOM_E310_ARTY____METAL_PLATFORM_H /* From clock@0 */ #define METAL_FIXED_CLOCK_0_CLOCK_FREQUENCY 65000000UL @@ -122,4 +122,4 @@ #define METAL_SIFIVE_UART0_IP 20UL #define METAL_SIFIVE_UART0_DIV 24UL -#endif /* FREEDOM_E310_ARTY__METAL_PLATFORM_H*/ +#endif /* FREEDOM_E310_ARTY____METAL_PLATFORM_H*/ diff --git a/bsp/freedom-e310-arty/metal.default.lds b/bsp/freedom-e310-arty/metal.default.lds index 453fd8f..e7e2bb3 100644 --- a/bsp/freedom-e310-arty/metal.default.lds +++ b/bsp/freedom-e310-arty/metal.default.lds @@ -94,12 +94,12 @@ SECTIONS } >flash AT>flash :flash - .finit_array : + .fini_array : { - PROVIDE_HIDDEN (__finit_array_start = .); + PROVIDE_HIDDEN (__fini_array_start = .); KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*))) KEEP (*(.fini_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .dtors)) - PROVIDE_HIDDEN (__finit_array_end = .); + PROVIDE_HIDDEN (__fini_array_end = .); } >flash AT>flash :flash diff --git a/bsp/freedom-e310-arty/metal.h b/bsp/freedom-e310-arty/metal.h index 1c54535..dbf2faf 100644 --- a/bsp/freedom-e310-arty/metal.h +++ b/bsp/freedom-e310-arty/metal.h @@ -9,8 +9,8 @@ #ifdef __METAL_MACHINE_MACROS -#ifndef MACROS_IF_FREEDOM_E310_ARTY__METAL_H -#define MACROS_IF_FREEDOM_E310_ARTY__METAL_H +#ifndef MACROS_IF_FREEDOM_E310_ARTY____METAL_H +#define MACROS_IF_FREEDOM_E310_ARTY____METAL_H #define __METAL_CLINT_NUM_PARENTS 2 @@ -31,12 +31,12 @@ #define __METAL_CLIC_SUBINTERRUPTS 0 #endif -#endif /* MACROS_IF_FREEDOM_E310_ARTY__METAL_H*/ +#endif /* MACROS_IF_FREEDOM_E310_ARTY____METAL_H*/ #else /* ! __METAL_MACHINE_MACROS */ -#ifndef MACROS_ELSE_FREEDOM_E310_ARTY__METAL_H -#define MACROS_ELSE_FREEDOM_E310_ARTY__METAL_H +#ifndef MACROS_ELSE_FREEDOM_E310_ARTY____METAL_H +#define MACROS_ELSE_FREEDOM_E310_ARTY____METAL_H #define __METAL_CLINT_2000000_INTERRUPTS 2 @@ -685,7 +685,7 @@ asm (".weak __metal_spi_table"); struct __metal_driver_sifive_spi0 *__metal_spi_table[] = { &__metal_dt_spi_10014000}; -#endif /* MACROS_ELSE_FREEDOM_E310_ARTY__METAL_H*/ +#endif /* MACROS_ELSE_FREEDOM_E310_ARTY____METAL_H*/ #endif /* ! __METAL_MACHINE_MACROS */ diff --git a/bsp/freedom-e310-arty/metal.ramrodata.lds b/bsp/freedom-e310-arty/metal.ramrodata.lds index b9d006b..dc1a78d 100644 --- a/bsp/freedom-e310-arty/metal.ramrodata.lds +++ b/bsp/freedom-e310-arty/metal.ramrodata.lds @@ -75,12 +75,12 @@ SECTIONS } >flash AT>flash :flash - .finit_array : + .fini_array : { - PROVIDE_HIDDEN (__finit_array_start = .); + PROVIDE_HIDDEN (__fini_array_start = .); KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*))) KEEP (*(.fini_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .dtors)) - PROVIDE_HIDDEN (__finit_array_end = .); + PROVIDE_HIDDEN (__fini_array_end = .); } >flash AT>flash :flash diff --git a/bsp/freedom-e310-arty/metal.scratchpad.lds b/bsp/freedom-e310-arty/metal.scratchpad.lds index 3907de9..00e577c 100644 --- a/bsp/freedom-e310-arty/metal.scratchpad.lds +++ b/bsp/freedom-e310-arty/metal.scratchpad.lds @@ -94,12 +94,12 @@ SECTIONS } >ram AT>ram :ram - .finit_array : + .fini_array : { - PROVIDE_HIDDEN (__finit_array_start = .); + PROVIDE_HIDDEN (__fini_array_start = .); KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*))) KEEP (*(.fini_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .dtors)) - PROVIDE_HIDDEN (__finit_array_end = .); + PROVIDE_HIDDEN (__fini_array_end = .); } >ram AT>ram :ram diff --git a/bsp/freedom-e310-arty/openocd.cfg b/bsp/freedom-e310-arty/openocd.cfg index ba13207..0a20b89 100644 --- a/bsp/freedom-e310-arty/openocd.cfg +++ b/bsp/freedom-e310-arty/openocd.cfg @@ -1,30 +1,30 @@ +#write_config_file +# JTAG adapter setup adapter_khz 10000 -#source [find interface/ftdi/olimex-arm-usb-tiny-h.cfg] - interface ftdi ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" ftdi_vid_pid 0x15ba 0x002a ftdi_layout_init 0x0808 0x0a1b ftdi_layout_signal nSRST -oe 0x0200 -ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 ftdi_layout_signal LED -data 0x0800 -# set _CHIPNAME riscv 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 +target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME +$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 -flash bank my_first_flash fespi 0x20000000 0 0 0 $_TARGETNAME 0x10014000 +flash bank spi0 fespi 0x20000000 0 0 0 $_TARGETNAME.0 0x10014000 init -#reset if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z + ftdi_set_signal nSRST 0 + ftdi_set_signal nSRST z +sleep 1500 } halt -#flash protect 0 64 last off + +flash protect 0 64 last off +echo "Ready for Remote Connections" |