-
Notifications
You must be signed in to change notification settings - Fork 327
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
Update espressif chips #886
Update espressif chips #886
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tcl changes are all fine by me.
Is the libjaylink update on purpose?
Consolidate commonly used commands and variables from chip config files into functions in esp_common.cfg. This includes "jtag newtap," "target create,"and "configure -event." Enhances code reusability and simplifies maintenance. Signed-off-by: Erhan Kurubas <[email protected]> Change-Id: I9e8bf07a4a15d4544ceb564607dea66837381d70 Reviewed-on: https://review.openocd.org/c/openocd/+/7744 Tested-by: jenkins Reviewed-by: Antonio Borneo <[email protected]>
…_common.cfg This commit enhances code reusability, simplifies maintenance, and ensures consistency across all chip configurations by consolidating commonly used commands and variables into the common config file. Signed-off-by: Erhan Kurubas <[email protected]> Change-Id: I9181737d83eeba4e983b6a455b8a1523f2576dd2 Reviewed-on: https://review.openocd.org/c/openocd/+/7745 Reviewed-by: Antonio Borneo <[email protected]> Tested-by: jenkins
…sp_common.cfg This commit enhances code reusability, simplifies maintenance, and ensures consistency across all chip configurations by consolidating commonly used commands and variables into the common config file. Signed-off-by: Erhan Kurubas <[email protected]> Change-Id: I36c86fe4ebc99928ce48a5bff8cb9580a0fa3ac0 Reviewed-on: https://review.openocd.org/c/openocd/+/7746 Tested-by: jenkins Reviewed-by: Antonio Borneo <[email protected]>
…sp_common.cfg This commit enhances code reusability, simplifies maintenance, and ensures consistency across all chip configurations by consolidating commonly used commands and variables into the common config file. Signed-off-by: Erhan Kurubas <[email protected]> Change-Id: Ifb0122f3b98a767f27746409499733b70fb7d0e8 Reviewed-on: https://review.openocd.org/c/openocd/+/7747 Tested-by: jenkins Reviewed-by: Antonio Borneo <[email protected]>
This config file enables communication over USB-JTAG with ESP32-C3, ESP32-S3, ESP32-H2 and ESP32-C6 chips Signed-off-by: Erhan Kurubas <[email protected]> Change-Id: Iceea26972588d8c4919d1f3248684ece48ca9121 Reviewed-on: https://review.openocd.org/c/openocd/+/7748 Tested-by: jenkins Reviewed-by: Antonio Borneo <[email protected]>
Board config file for ESP32-S3, to allow communication with the builtin USB-JTAG adapter. Signed-off-by: Erhan Kurubas <[email protected]> Change-Id: I1310f5db30f7df38fe9344f7ba2334611b53863e Reviewed-on: https://review.openocd.org/c/openocd/+/7749 Reviewed-by: Antonio Borneo <[email protected]> Tested-by: jenkins
…sp_common.cfg This commit enhances code reusability, simplifies maintenance, and ensures consistency across all chip configurations by consolidating commonly used commands and variables into the common config file. Signed-off-by: Erhan Kurubas <[email protected]> Change-Id: Ie3413d3149388b17bc0199409ce86d3eb7cf5ee2
…sp_common.cfg This commit enhances code reusability, simplifies maintenance, and ensures consistency across all chip configurations by consolidating commonly used commands and variables into the common config file. Change-Id: I825dd4fddb88e5514429d49ab13869ee6b9a28fc Signed-off-by: Erhan Kurubas <[email protected]>
ESP32-C6 and ESP32-H2 are single core riscv targets. Change-Id: If92429de4fb67a040f303a54177d61b70e1ea281 Signed-off-by: Erhan Kurubas <[email protected]>
Board config files, to allow communication with the builtin USB-JTAG adapter. Change-Id: I80fb0c36b3cc164940ff266f1eaa287d870da94d Signed-off-by: Erhan Kurubas <[email protected]>
7ba3ed3
to
79bcab7
Compare
No, by mistake. Fixed. Thanks for the review. |
@erhankur @timsifive Two questions: First, in procedure riscv_soc_reset() at line 46 of Second, after line 69 shouldn't there either be a very long delay (i.e., Also, the LP_CPU (hart 1) of ESP32-C6 seems to be always |
@psherman42 some of the actions taken there to adapt the silicon behavior. We will have a clear reset function with the upcoming chip revisions. |
Thanks @erhankur
Resolved. Section 3.4.2 of the esp32-c6_technical_reference_manual says
Therefore, must set
Still a problem. Not sure how to get LP CPU (core 1) into halted state. It appears to be always running even after specifying dmcontrol.haltreq = 1. |
LP core debugging is something we didn't adapt to the OpenOCD yet. Normally when We will test it and let you know the instructions to halt LP core. |
@psherman42 I checked how My OpenOCD telnet session:
Log related to
So I'd start with checking:
|
@psherman42 |
@gerekon Bigger question: What is the precise sequence of setting the various necessary control bits? I refer to the ulp_lp_core_halt() function, and its notes in issue 12651 and lp_core_utils.c Nowhere yet documented in the ESP32-C6 Technical Reference Manual (ESP32-C6 TRM v0.3) is register I am also having great difficulty understanding Nothing I do seems to get Please advise, and highlight a bit more of the log, especially necessary setup and initialization conditions for the LP Core. Thanks. I refer to documentation in reg-base.h and lp_aon_ll.h for memory map and peripheral details, to fill in the blanks of the ESP32-C6 Technical Reference Manual. |
Setting various bits for what? As far as I understand Sorry I can not understand what you are doing and what you want to achieve. W/o that info it is hard to help. Meanwhile I can say that there can be problems to debug ESP32-C6 when HP core goes into sleep mode. We are investigating this, maybe it is HW problem. That why I asked you about the program you try to debug. I asked you several questions, but till now have not got any answers. Could you describe what you do step-by-step? - esp_deep_sleep_start();
+ //esp_deep_sleep_start();
+ while(1) {
+ vTaskDelay(pdMS_TO_TICKS(1000));
+ } Could you try it? |
What |
Here is the branch with OpenOCD config files changes gerekon/openocd-esp32@e82f2c9 I used to halt targets via Telnet session. If you need |
Below commits cherry picked from the upstream.
Based on these commits, esp32c3 and esp32c2 are updated.
Additionally, related to new Espressif riscv chip config files are added. ( esp32c6 and esp32h2)