)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1002275,"name":"Dhruva Gole","email":"d-gole@ti.com","username":"DhruvaG2000"},"change_message_id":"4f88a322ef1871abb06931460447933a02823965","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"5e326f13_5c9854f7","updated":"2024-05-27 08:17:44.000000000","message":"Hi Tomas,\n\nThanks for the fix, I was able to test it locally by flashing a zephyr sample onto a cc3220sf launchXL.\nLogs: https://gist.github.com/DhruvaG2000/a8df6d52b2925bfb9f40c37f49253d32","commit_id":"f2c30d128044a76fc44631eb45aaa83a4d723907"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"90b41e71dda2757b1ba291f71e5e68871070424d","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"ac0cc73f_00601d51","updated":"2024-07-15 10:15:44.000000000","message":"Please check https://review.openocd.org/c/openocd/+/8399","commit_id":"4892e32294c6ea4cf53251adb81dee4e85aee0b0"},{"author":{"_account_id":1000859,"name":"Karl Palsson","email":"karlp@tweak.au","username":"karlp"},"change_message_id":"e222486882ee45193b58b1393ce3b3f8b335c379","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"6e6ceabf_bca936bc","updated":"2024-06-26 13:42:01.000000000","message":"This causes regressions in \"run\" behaviour via gdb on my nxp K32L2A board (at least)\n\nwith this commit in tree, issuing \"ctrl-c\" in GDB will pause, but \"run\" to restart (after load or not, not relevant) will fail to start the CPU.  It will be back at the reset handler, but not running.  I need a second ctrl-c; \"C\"ontinue to actually start the processor running again.\n\nThis corresponds with the \"not halted, context restore failed, aborting resume\" messages.\n\nSee eg:\n```\n(gdb) run\nThe program being debugged has been started already.\nStart it from the beginning? (y or n) y\nStarting program: /home/karlp/XXXXX.elf \nwarning: Remote gdbserver does not support determining executable automatically.\nRHEL \u003c\u003d6.8 and \u003c\u003d7.2 versions of gdbserver do not support such automatic executable detection.\nThe following versions of gdbserver support it:\n- Upstream version of gdbserver (unsupported) 7.10 or later\n- Red Hat Developer Toolset (DTS) version of gdbserver from DTS 4.0 or later (only on x86_64)\n- RHEL-7.3 versions of gdbserver (on any architecture)\n[klx.cpu] not halted\n[klx.cpu] context restore failed, aborting resume\ntarget klx.cpu was not halted when resume was requested\n[klx.cpu] halted due to undefined, current mode: Thread \nxPSR: 0x61000000 pc: 0x00000134 msp: 0x20018000\n^CThe target is not running when halt was requested, stopping GDB.\n[New Thread 536857388]\n[New Thread 536856908]\n\nThread 1 \"monitor\" received signal SIGINT, Interrupt.\nResetISR () at /home/karlp/XXXX/mcuxpresso_sdk/startup/startup_k32l2a41a.c:339\n339\t    __asm volatile(\"cpsid i\");\n(gdb)\n```","commit_id":"4892e32294c6ea4cf53251adb81dee4e85aee0b0"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"de6cb572bf01b4c181f5833eadbdd73f0f3e4500","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":2,"id":"228ab49b_e315b0a2","updated":"2024-07-15 09:34:29.000000000","message":"another regression on my side.\nI have a SoC with multiple CPUs, including a Cortex-M4.\nThe Cortex-M4 is kept in reset, waiting for another CPU to load the FW and release the reset through a system register.\nThis patch causes OpenOCD to log continuously:\n```\nInfo : [stm32mp15x.cm4] external reset detected\nInfo : [stm32mp15x.cm4] external reset detected\nInfo : [stm32mp15x.cm4] external reset detected\n...\n```","commit_id":"4892e32294c6ea4cf53251adb81dee4e85aee0b0"},{"author":{"_account_id":1000859,"name":"Karl Palsson","email":"karlp@tweak.au","username":"karlp"},"change_message_id":"b468e065f7988954ff3945fec82c97185ca42403","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"76c43697_3932bbb6","updated":"2024-06-26 16:44:53.000000000","message":"linked in comment","commit_id":"4892e32294c6ea4cf53251adb81dee4e85aee0b0"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"4c1063ebe8e4594fae99d84d13f518de1ee0b306","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":2,"id":"f42809d4_7f439f4b","in_reply_to":"2f59cc07_12f0a5cb","updated":"2024-06-26 19:08:51.000000000","message":"Strange things start here:\n`503 Info : 4827 29736 cortex_m.c:933 cortex_m_poll_one(): [klx.cpu] external reset detected`\n\nCouldn\u0027t WDOG32 trigger the second reset? See bit DBG in WDOG32_CS. But this bit should be cleared on reset according to RM. No idea what causes the reset.\n\nAll happens in 11 ms between two polls, so without this patch OpenOCD simply misses the state change.","commit_id":"4892e32294c6ea4cf53251adb81dee4e85aee0b0"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"4905e5ab6f45b781ed892446b66116b4a16d4874","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":2,"id":"e1752bea_564c9aac","in_reply_to":"6e6ceabf_bca936bc","updated":"2024-06-26 16:03:15.000000000","message":"Thanks for testing, Karl!\n\nUnfortunately I\u0027m not able to reproduce your problem. I tried KL17 on a custom board and K82 FRDM devkit. `run` works as expected on both.\n\nIt looks like K32L2A gets first polled as running (internal reset code?)\nand halts after a delay approx 1-3 ms. The one poll delay without this patch is sufficient to hide this behaviour.\n\nDoes `reset halt` from telnet interface work (it would be nice to isolate the problem from gdb)?\n\nPlease upload a full openocd -d3 log to some public server.","commit_id":"4892e32294c6ea4cf53251adb81dee4e85aee0b0"},{"author":{"_account_id":1000859,"name":"Karl Palsson","email":"karlp@tweak.au","username":"karlp"},"change_message_id":"b468e065f7988954ff3945fec82c97185ca42403","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":2,"id":"2f59cc07_12f0a5cb","in_reply_to":"e1752bea_564c9aac","updated":"2024-06-26 16:44:53.000000000","message":"`reset` via telnet will \"correctly\" restart things (ie, they run straight away)  and `reset halt` via telnet will \"correctly\" reset and halt.  A subsequent `resume` will continue.\n\nopenocd -d3 logs here: https://paste.jvnv.net/view/Syylv","commit_id":"4892e32294c6ea4cf53251adb81dee4e85aee0b0"}]}
