Skip to content

Main file -> Interrupt handler (which will jump to 0x20000) -> jump back to Main file #737

Answered by stnolting
SteveZ-Cal asked this question in Q&A
Discussion options

You must be logged in to vote

[Q1]

Thats right - as long as your compile for a rv32i architecture (which is the default one). If you use the "embedded" rv32e architecture then only registers x0 to x15 exist.

Some "special" registers like gp won't be touched by GCC (as far as I know). However, I would recommend to backup all registers just be safe (except for x0, which is hardwired to zero).

[Q2]

First of all, I would recommend to upgrade your NEORV32 setup to the latest version. We had some minor bug fixes since version 1.8.6 (-> CHANGELOG).

I want to test if interrupt handler installed in one file (task file) can be used in another file (main file) --> this is what I want to achieve currently

This should be no …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@stnolting
Comment options

@stnolting
Comment options

@SteveZ-Cal
Comment options

@stnolting
Comment options

Answer selected by SteveZ-Cal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
SW Software-related troubleshooting Something is not working as expected
2 participants