NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
Loading...
Searching...
No Matches
main.c File Reference

Interactive memory inspector. More...

#include <neorv32.h>
#include <string.h>

Macros

User configuration
#define BAUD_RATE   19200
 

Functions

void read_memory (uint32_t address)
 
void setup_access (void)
 
void write_memory (uint32_t address, uint32_t data)
 
void dump_memory (uint32_t address)
 
void hexdump (uint32_t address)
 
void aux_print_hex_byte (uint8_t byte)
 
int main ()
 

Variables

char access_size
 

Detailed Description

Interactive memory inspector.

Author
Stephan Nolting

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

Function Documentation

◆ aux_print_hex_byte()

void aux_print_hex_byte ( uint8_t byte)

Print HEX byte.

Parameters
[in]byteByte to be printed as 2-cahr hex value.

◆ dump_memory()

void dump_memory ( uint32_t address)

Read several bytes/halfs/word from memory base address

◆ hexdump()

void hexdump ( uint32_t address)

Make pretty hexadecimal + ASCII dump (byte-wise)

◆ main()

int main ( void )

This program provides an interactive console to read/write memory.

Note
This program requires the UART to be synthesized.
Returns
0 if execution was successful

◆ read_memory()

void read_memory ( uint32_t address)

Read from memory address

◆ setup_access()

void setup_access ( void )

Configure memory access size

◆ write_memory()

void write_memory ( uint32_t address,
uint32_t data )

Write to memory address