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

Simple execution trace demo program. More...

#include <neorv32.h>

Macros

#define BAUD_RATE   19200
 

Functions

void tracer_irq_handler (void)
 
void ecall_exc_handler (void)
 
void test_code (void)
 
int main (void)
 

Detailed Description

Simple execution trace demo program.

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

User configuration

Function Documentation

◆ ecall_exc_handler()

void ecall_exc_handler ( void )

Environment Call Exception Handler. We want to trace how we got here.

Note
No inlining so we have actual branches that we can trace.

◆ main()

int main ( void )

Main function for core 0 (primary core).

Attention
This program requires the dual-core configuration, the CLINT, UART0 and the A/Zalrsc ISA extension.
Returns
Irrelevant (but can be inspected by the debugger).

◆ test_code()

void test_code ( void )

This is the function we want to trace.

Note
No inlining so we have actual branches that we can trace.

◆ tracer_irq_handler()

void tracer_irq_handler ( void )

TRACER interrupt handler.