Thanks for the answer Tommy, but read those registers is it possible without use hart to deal with? I mean, the commands send through openOCD makes the debug unit hardware read the bus or the processor needs to stop everything to read it....?
--
You received this message because you are subscribed to the Google Groups "RISC-V Debug Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debug+un...@groups.riscv.org.
To post to this group, send email to de...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/debug/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/debug/a3232da6-4ad1-4365-b427-ad349558202d%40groups.riscv.org.
On Fri, Oct 5, 2018 at 2:12 PM Ânderson Ignacio da Silva anders...@gmail.com wrote:
Hello Tim, thanks for the quick answer, so as #1 program buffer option it's not implemented yet, do you think that the best approach #2, will be halt the hart and then use mdw, mdh, mdb...to read a peripheral memory right? I'm asking those things because I want to make a cheaper trace hardware unit for the core...
System Bus Block is a good option for providing memory access without halting the hart. I’m not sure what you mean by mdw
, mdh
, mdb
etc.
Tim
--
Em sexta-feira, 5 de outubro de 2018 17:11:57 UTC-3, Tim Newsome escreveu:The debug spec contains 3 mechanisms to read memory:1. Using the Program Buffer. This requires halting the hart.2. Using the System Bus block. This can happen any time.3. Using the abstract memory access commands. It's implementation-specific whether this can happen when running or not.OpenOCD implements #1 and #2, but I don't think it will ever try to access memory while the hart is running, due to target-independent code inside OpenOCD.In addition, #1 could be sped up using the Quick Access mechanism that's in the debug spec but AFAIK not implemented anywhere.TimOn Fri, Oct 5, 2018 at 6:06 AM Tommy Murphy <tommy_...@hotmail.com> wrote:On Friday, 5 October 2018 13:18:36 UTC+1, Ânderson Ignacio da Silva wrote:--Thanks for the answer Tommy, but read those registers is it possible without use hart to deal with? I mean, the commands send through openOCD makes the debug unit hardware read the bus or the processor needs to stop everything to read it....?I *think* that the core/hart needs to be in debug halt for openocd and the debug module to be able to read/write memory (including memory mapped peripheral registers/memory regions).
You received this message because you are subscribed to the Google Groups "RISC-V Debug Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debug+un...@groups.riscv.org.
To post to this group, send email to de...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/debug/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/debug/a3232da6-4ad1-4365-b427-ad349558202d%40groups.riscv.org.
You received this message because you are subscribed to the Google Groups "RISC-V Debug Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debug+un...@groups.riscv.org.
To post to this group, send email to de...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/debug/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/debug/992970e5-07cd-4f96-9167-f678ac3f615f%40groups.riscv.org.