-
Notifications
You must be signed in to change notification settings - Fork 328
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
Debug Module did not become active #1041
Comments
Does the stuff from Espressif not help?
Edit: ah - sorry - you ARE Espressif! I didn't realise... :-D |
We have initial support for the chip, but I haven't been able to configure the SMP properly yet. Before diving in, I'd like to ensure that the |
@erhankur, I'm a bit confused by the log.Seems like in the version you use logging from For now It seems this is the same issue as #1024 (TLDR):
While examination of the second hart failed:
It is hard to verify the issue is indeed the same without knowing on which exact scan Also, to verify the issue is with the write to |
Edit: There is an error. Please see #1041 (comment) Thanks! This is not the same as #1024. Seems like an OpenOCD bug:
We have successfully read I have refactored the relevant code recently. Can you try back-porting the commits from #1023 and checking if the issue is still present? |
Cherry-picked 3 commits
Result is different now.
|
@erhankur, sorry. I've made an error in the previous analysis. I'm almost certain this is the same HW issue as #1024. What was wrong in the first analysis: Going step by step through the log snippet:
|
HW issue being at fault is also confirmed by the second log after cherry-pick. Here, examination of the DM is skipped the second time, since OpenOCD already learned
|
@en-sc thanks a lot for the analyze. I will confirm the bug with the hw team. |
Just curious - do the two (or more?) RISC-V implementations that seem to have this issue have any sort of common heritage such as using the same upstream HDL implementation by any chance? |
The bug was confirmed with the HW team. I am closing the issue. Thanks for helping. |
Thanks for the update @erhankur. Are you at liberty to address the question below or to outline the origin of your RISC-V hardware implementation - e.g. if it's based on some public/open source HDL implementation? It might be useful to know if this problem, which has been reported separately several times, arises from some specific RISC-V implementation.
|
@TommyMurphyTM1234 I am sorry, I am not authorized to disclose this information. |
Ok, thanks. |
We have a new RISCV chip with a dual-core CPU. (ESP32-P4)
The first core(LP) is in sleep mode by default so it's out of topic for now. 2nd core(HP) has 2 harts.
2 cores are connected through a daisy chain scheme where one DTM controls the LP core and the other DTM controls the HP core.
What is the expected way of configuring 2 harts in the same DM as SMP targets? I tried the below config but it it gives an error.
In our fork, we have FreeRTOS SMP support and are mostly aligned with this repo.
log.txt
The text was updated successfully, but these errors were encountered: