updates memory map and prebuilt fw

This commit is contained in:
2025-07-30 06:39:17 +02:00
parent 9db8c39925
commit 7327ca4fb0
7 changed files with 14 additions and 14 deletions

8
.vscode/launch.json vendored
View File

@@ -8,9 +8,9 @@
"type": "gdbtarget",
"request": "attach",
"name": "Attach-to-gdbserver",
"program": "./fw/hello-world/hello",
"program": "./fw/hello-world/hello.elf",
"imageAndSymbols": {
"symbolFileName": "./fw/hello-world/hello"
"symbolFileName": "./fw/hello-world/hello.elf"
},
"target": {
"port": "10000"
@@ -29,7 +29,7 @@
"name": "Launch VP with gdbserver",
"cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
"arguments": "-f fw/hello-world/hello -g 10000",
"arguments": "-f fw/hello-world/hello.elf -g 10000",
"presentation": {
"hidden": true,
"group": "FW Debug",
@@ -42,7 +42,7 @@
"name": "Launch VP",
"cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
"arguments": "-v TRACEALL --isa tgc5c -f fw/hello-world/hello",
"arguments": "-v DEBUG --isa tgc5c -f fw/hello-world/hello.elf",
"openGdbConsole": true
},
],

View File

@@ -1,3 +1,3 @@
/hello
/hello.dis
/firmware.map
/*.elf
/*.dis
/*.map

View File

@@ -4,13 +4,13 @@ C_SRCS = $(wildcard *.c)
HEADERS = $(wildcard *.h)
CFLAGS += -O0 -g
BOARD=tgc_vp
LINK_TARGET=link
BOARD=riscv_vp
LINK_TARGET=flash
RISCV_ARCH:=rv32imc
RISCV_ABI:=ilp32
LDFLAGS := -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI)
compiler := $(shell which riscv32-unknown-elf-gcc)
compiler := $(shell which riscv64-unknown-elf-gcc)
TOOL_DIR=$(dir $(compiler))
BSP_BASE = ../bsp

BIN
fw/hello-world/hello.elf Executable file

Binary file not shown.

Binary file not shown.

2
scc

Submodule scc updated: a6cdc7aead...13d2138e7e

View File

@@ -23,11 +23,11 @@ system::system(sc_core::sc_module_name nm)
core_complex.dbus(ahb_router.target[1]);
ahb_router.initiator.at(0)(qspi.xip_sck);
ahb_router.set_target_range(0, 0xE0000000, 16_MB);
ahb_router.set_target_range(0, 0x20000000, 16_MB);
ahb_router.initiator.at(1)(mem_ram.target);
ahb_router.set_target_range(1, 0xC0000000, 128_kB);
ahb_router.set_target_range(1, 0x00000000, 128_kB);
ahb_router.initiator.at(2)(apbBridge.target[0]);
ahb_router.set_target_range(2, 0xF0000000, 256_MB);
ahb_router.set_target_range(2, 0x10000000, 256_MB);
size_t i = 0;
for(const auto& e : PipelinedMemoryBusToApbBridge_map) {