-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vexriscv SMP interrupts not working with Zephyr #2061
Comments
I've attached here the zephyr.bin Here is my Zephyr fork: And here is a repo containing my LiteX configuration and build output: |
Hi, Can you send the elf file of the compiled zephyr aswell ? About debugging with openocd the simulated VexRiscv, you can use : But be aware, this is kinda slow. |
Here: Thanks, I'll look into it |
Got a "riscv64-unknown-elf-objdump: zephyr.elf: file format not recognized" when tried to make a deassembly from the elf XD Overall i just wanted to check there was no PMP related code, as vexriscv has no PMP support by default. And i know that zephyr my assume there is a pmp depending how it is configured |
Yes I get the same thing
Not sure but I think it's meant to be "elf32-littleriscv" from the generated LiteX addr2line still works for me though. As for PMP, just checked and it's definitely disabled in my Kconfig |
Hey @Dolu1990, I have the debugger on the sim up and running (turns out the sim had different csr values duh), can confirm I get the same issue with ISR1 stack maxed out. I'm looking through the execution now, I can see the Zephyr kernel throwing stack-related errors but I need help actually identifying the issue. Can you please lend a hand? I've made it the hello_world sample since the problem still occurs and there's less stuff going on. Here's the elf and binary: And here are the zephyr files for the sim in case you want to build for yourself. Just unzip to your zephyr directory. |
Hi all,
Here is the issue described here: zephyrproject-rtos/zephyr#78053 (comment)
I'm not entirely sure this is a LiteX issue since the LiteX BIOS works perfectly on my board, it's when I run my Zephyr program that interrupts start to malfunction and freeze the program (see issue).
I managed to run a sim of a similar configuration:
Where the
zephyr.bin
is thesamples/subsys/console/echo
sample from ZephyrThe program in the sim doesn't get as far but I would still like to see if the issue is present there, this is the output:
I just have no idea how to 'step through' the execution or analyse the output. Can anyone help me with this? Greatly appreciate any help.
The text was updated successfully, but these errors were encountered: