Comments (9)
Hi @jyothishdevan,
Could you please add more details?
- What kind of BP do you set: hardware or software?
- And how do handle the breakpoint? (in application or via debugger)
- Do you run on board or RTL-sim?
If you could have testcase to share, please let share it.
Best regards,
Alexander
from scr1.
hi @achuykov-sc
Please see the details below
- software breakpoint
- I am debugging using J link. I am using segger ide
- Run on board.
from scr1.
Hi @jyothishdevan,
I did quick checks but with another adapter and GDG from SC-DT 2024.02. And there are no issues:
- During interrupt handling the
mstatus=0x1880
(MIE = 0) as expected - But after complete interrupt handler exit (in
main
function) themstatus=0x1888
(MIE=1)
Could you please check that you are not disabling interrupt in handler? And please double check that your handler's last instruction is mret
.
Best regards,
Alexander
from scr1.
Hi @achuykov-sc
It is working as you have explained for the case of interrupts. But in my case, the mie bit becomes zero when the break point hits. In interrupt handler I am not disabling interrupt and mret is the last instruction in interrupt handler. I am keeps getting interrupts and runs interrupt handler if there is no breakpoint(or no breakpoint hits)
Thanks and regards,
Jyothish
from scr1.
Hi @jyothishdevan,
Thanks for quick update. What is your SCR1 configuration?
And could you please clarify SEGGER Embedded Studio version?
I will try to run sample code on JLink within next days.
Best regards,
Alexander
from scr1.
Hi @achuykov-sc
SCR1 configuration is RV32IC base
Segger embedded studio version 7.22
Thanks for the support
Regards,
Jyothish
from scr1.
Hi @jyothishdevan,
I had tests with J-Link Ultra connected to FPGA, and it work fine. But I did tests with SC-DT GDB. If you could share Embedded Studio reproducer, I will double check.
Best regards,
Alexander
from scr1.
Hi @achuykov-sc
I didn't understand what is meant by embedded studio reproducer?
from scr1.
Hi @jyothishdevan,
Please apologize for unclarity. I mean the SEGGER Embedded Studio project which reproduces the issue. Are you able to share it?
Because I did not reproduce your issue on my setup.
BTW, please make sure that you correctly configure MTVEC
register on boot (if you do this). In the BASE configuration the number of configurable bits in MTVEC
is 16 by default. It means you can configure only high 16-bits of the register, but low 16-bit are fixed in hardware design.
Best regards,
Alexander
from scr1.
Related Issues (20)
- Syntacore custom modification problems HOT 3
- SCR bootloader’s banner does not show up after I RESET the Arty A7-100T board. HOT 5
- The behavior of Stepping through DCSR.step and DMCONTROL.resumereq HOT 2
- Error 'make tests' fails HOT 1
- Verilator timing required? HOT 1
- Error: unrecognized opcode `fence.i' HOT 17
- Error running Coremark benchmark HOT 7
- Coremark testcase still failed after added #9 issue solution HOT 4
- Invalid result of `DIV` operation HOT 3
- How does it work for sc_print to print words in terminal when running HDL simulator? HOT 2
- AXI Interconnect problems HOT 3
- Error when running Dhrystone HOT 2
- Incorrect linker flags' order into make file HOT 1
- Incorrect linker flags' order into make file
- Unaligned data access exceptions are not reported in simulation HOT 2
- [question][help wanted] always_ff multiple procedure assignment at scr1_memory_tb_ahb.sv HOT 1
- Segmentation fault HOT 2
- Got an error while performing coremark test
- store instructions may fail when a CSR is written HOT 6
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 scr1.