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", "type": "gdbtarget",
"request": "attach", "request": "attach",
"name": "Attach-to-gdbserver", "name": "Attach-to-gdbserver",
"program": "./fw/hello-world/hello", "program": "./fw/hello-world/hello.elf",
"imageAndSymbols": { "imageAndSymbols": {
"symbolFileName": "./fw/hello-world/hello" "symbolFileName": "./fw/hello-world/hello.elf"
}, },
"target": { "target": {
"port": "10000" "port": "10000"
@@ -29,7 +29,7 @@
"name": "Launch VP with gdbserver", "name": "Launch VP with gdbserver",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/build/Debug/src/riscv-vp", "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": { "presentation": {
"hidden": true, "hidden": true,
"group": "FW Debug", "group": "FW Debug",
@@ -42,7 +42,7 @@
"name": "Launch VP", "name": "Launch VP",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/build/Debug/src/riscv-vp", "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 "openGdbConsole": true
}, },
], ],

View File

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

View File

@@ -4,13 +4,13 @@ C_SRCS = $(wildcard *.c)
HEADERS = $(wildcard *.h) HEADERS = $(wildcard *.h)
CFLAGS += -O0 -g CFLAGS += -O0 -g
BOARD=tgc_vp BOARD=riscv_vp
LINK_TARGET=link LINK_TARGET=flash
RISCV_ARCH:=rv32imc RISCV_ARCH:=rv32imc
RISCV_ABI:=ilp32 RISCV_ABI:=ilp32
LDFLAGS := -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) 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)) TOOL_DIR=$(dir $(compiler))
BSP_BASE = ../bsp 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]); core_complex.dbus(ahb_router.target[1]);
ahb_router.initiator.at(0)(qspi.xip_sck); 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.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.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; size_t i = 0;
for(const auto& e : PipelinedMemoryBusToApbBridge_map) { for(const auto& e : PipelinedMemoryBusToApbBridge_map) {