Comments (6)
Thanks, i'll try to reproduce. Do you have a minimal firmware to load with flterm that trigger the issue? (On others project we are running software from DDR with VexRiscv, so that would help understand what is going on).
from litex.
Yes, I know this looks suspicious.
I've prepared a minimal test for that:
https://github.com/pgielda/litex-baremetal-test
This is a very minimal standalone baremetal program. The only trick there is that I "steal" flush_cpu_dcache
so you will need to update the address in linker.ld with a correct one.
Just tested this and it only works if the flush_cpu_dcache
is called 3 times at the beginning. Otherwise the firmware reboots the board (which means that mcause was != 0).
If you do not want to update linker.ld you can also remove flush_cpu_dcache
calls from my code, test and prove that the code reboots itself, then add those to boot.c in the BIOS and see that the code stops rebooting.
At least this happens on my setup with ARTY.
from litex.
It seems flushing dcache and l2_cache make it work, can you test with upstream LiteX?
from litex.
Thanks, this change looks promising. I will test this over the weekend.
from litex.
OK thanks.
from litex.
I can confirm that his fixes the problem.
from litex.
Related Issues (20)
- Simulink-like design environment HOT 4
- AXI4 -> Litedram write mask issue HOT 3
- ERROR: Project file:///home/riscv/python-litex/migen has a 'pyproject.toml' and its build backend is missing the 'build_editable' hook. Since it does not have a 'setup.py' nor a 'setup.cfg', it cannot be installed in editable mode. Consider using a build backend that supports PEP 660. HOT 4
- NameError: name 'Signal' is not defined
- issue when boot on tang-primer-20k
- Pynq Z1 Terminal HOT 4
- Combinatorial signal with single slice assignment loses default ("reset") value
- .
- Feature request: ADAT I/O
- litex_json2renode.py --bios-binary doesn't load bios to rom - wiki example doesn't work
- Xilinx zcu102 build failure HOT 1
- Zephyr: DTS generation fail on vexriscv (target: xilinx_zcu102) HOT 2
- Issues in Tang_mega_138k HOT 1
- litex_bare_metal_demo on litex_sim (cva6) hanging after liftoff HOT 1
- coremark test of VexRiscv SMP on Sipeed Tang Primer 20K HOT 1
- IOStandard missing for Efinix PLL clock reference HOT 2
- OSError: Unable to find valid Meson build system, please install it with: - pip3 install meson. HOT 2
- NEORV32 Memory initialization failed on Arty A7-100T HOT 2
- How to add a driver controller interrupt in Zephyr RTOS for LiteX SoC with 64-bit CVA6 cpu ? HOT 1
- How to drive `soc_rst` from an external pin? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from litex.