litex: nsh working

This commit is contained in:
David Jablonski 2021-02-06 17:11:37 +01:00 committed by Brennan Ashton
parent af42079cc7
commit 11167857c3
4 changed files with 8 additions and 7 deletions

View File

@ -27,6 +27,6 @@
#define LITEX_CLINT_LATCH (LITEX_CPUTIMER_BASE)
#define LITEX_CLINT_MTIME (LITEX_CPUTIMER_BASE + 0x04)
#define LITEX_CLINT_MTIMECMP (LITEX_CPUTIMER_BASE + 0x24)
#define LITEX_CLINT_MTIMECMP (LITEX_CPUTIMER_BASE + 0x0C)
#endif /* __ARCH_RISCV_SRC_LITEX_HARDWARE_LITEX_CLINT_H */

View File

@ -32,7 +32,7 @@
*/
#define LITEX_CPUTIMER_BASE 0xf0000800 /* riscv clint timer */
#define LITEX_TIMER0_BASE 0xf0001800
#define LITEX_UART0_BASE 0xf0001000 /* 0xf0001000 - : UART0 */
#define LITEX_TIMER0_BASE 0xf0002800
#define LITEX_UART0_BASE 0xf0002000 /* 0xf0001000 - : UART0 */
#endif /* __ARCH_RISCV_SRC_LITEX_HARDWARE_LITEX_MEMORYMAP_H */

View File

@ -25,6 +25,7 @@ CONFIG_DEBUG_SYMBOLS=y
CONFIG_DEFAULT_SMALL=y
CONFIG_DEV_ZERO=y
CONFIG_DISABLE_MQUEUE=y
CONFIG_ELF=y
CONFIG_EXAMPLES_HELLO=y
CONFIG_EXAMPLES_HELLO_STACKSIZE=8192
CONFIG_FS_PROCFS=y
@ -47,8 +48,8 @@ CONFIG_NSH_FILEIOSIZE=64
CONFIG_NSH_STRERROR=y
CONFIG_PREALLOC_TIMERS=0
CONFIG_PTHREAD_STACK_DEFAULT=8192
CONFIG_RAM_SIZE=134217728
CONFIG_RAM_START=0xc0800000
CONFIG_RAM_SIZE=268435456
CONFIG_RAM_START=0x40000000
CONFIG_RAW_BINARY=y
CONFIG_RR_INTERVAL=200
CONFIG_RV32IM_CUSTOM_IRQ_SUPPORT=y

View File

@ -20,8 +20,8 @@
MEMORY
{
progmem (rx) : ORIGIN = 0xc0000000, LENGTH = 8M
sram (rwx) : ORIGIN = 0xc0800000, LENGTH = 256M - 8M
progmem (rx) : ORIGIN = 0x40000000, LENGTH = 8M
sram (rwx) : ORIGIN = 0x40800000, LENGTH = 256M - 8M
}
OUTPUT_ARCH("riscv")