Giter VIP home page Giter VIP logo

Comments (9)

achuykov-sc avatar achuykov-sc commented on September 25, 2024

Hi @jyothishdevan,

Could you please add more details?

  1. What kind of BP do you set: hardware or software?
  2. And how do handle the breakpoint? (in application or via debugger)
  3. Do you run on board or RTL-sim?

If you could have testcase to share, please let share it.

Best regards,
Alexander

from scr1.

jyothishdevan avatar jyothishdevan commented on September 25, 2024

hi @achuykov-sc
Please see the details below

  1. software breakpoint
  2. I am debugging using J link. I am using segger ide
  3. Run on board.

from scr1.

achuykov-sc avatar achuykov-sc commented on September 25, 2024

Hi @jyothishdevan,

I did quick checks but with another adapter and GDG from SC-DT 2024.02. And there are no issues:

  1. During interrupt handling the mstatus=0x1880 (MIE = 0) as expected
  2. But after complete interrupt handler exit (in main function) the mstatus=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.

jyothishdevan avatar jyothishdevan commented on September 25, 2024

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.

achuykov-sc avatar achuykov-sc commented on September 25, 2024

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.

jyothishdevan avatar jyothishdevan commented on September 25, 2024

Hi @achuykov-sc
SCR1 configuration is RV32IC base
Segger embedded studio version 7.22

Thanks for the support
Regards,
Jyothish

from scr1.

achuykov-sc avatar achuykov-sc commented on September 25, 2024

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.

jyothishdevan avatar jyothishdevan commented on September 25, 2024

Hi @achuykov-sc
I didn't understand what is meant by embedded studio reproducer?

from scr1.

achuykov-sc avatar achuykov-sc commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.