No on-chip peripherals (SCI/SPI/timer/ADC) #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The shipped platform (
platforms/cpus/m68hc12.repl) contains only the CPU, a16 KiB RAM, a 16 KiB ROM and a 64-byte vector table:
No on-chip peripheral (SCI serial, SPI, ECT/TPM timers, ATD/ADC, PWM, CAN,
etc.) is modeled. This is expected for a CPU-core port, but it means real
firmware that initializes and uses the chip's register block cannot run.
Impact
0x0000-0x03FF) touches unmapped memory instead of a peripheral.reads, etc., so firmware with any peripheral use fails at boot.
devices with different register maps and pinouts).
Current behavior
ReadByte/WriteByteto any other address hitswhatever the bus maps there (or reports a bus error).
Affected files
platforms/cpus/m68hc12.repl(platform description)src/Infrastructure/src/Emulator/Peripherals/Peripherals/(e.g. aM68HC12_SCI,M68HC12_ECT), following existing Renode peripheralconventions.
Desired behavior
At minimum, a specific, real HC12/HCS12 part is chosen and its on-chip
register block is mapped:
address in a new
.replplatform (keep the bare CPU platform as theminimal reference).
the outside world — typically the SCI (serial console, backed by a
UARTBackendso Renode'suart/emulation CreateUartPtyplumbing works),and enough of the timer/ECT module to make delay loops and interrupt
timing functional.
lines (
OnGPIO,M68HC12.cs:85-95) so the vector table is actually used.Acceptance criteria
platforms/cpus/<device>.repl) loads and maps theregister block at the correct addresses.
printf-style output works through aRenode UART backend (visible in the monitor / a PTY).
path.
m68hc12.replplatform keeps working unchanged.Suggested approach / scope note
well-documented part (e.g. an S12 or S12X with public register manual), model
only the modules firmware actually needs first, then grow.
infrastructure.