)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"89af65febc95a461f33e25dd4f29ed40dd5924ac","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":9,"id":"09ed1ef0_fb5d0f3b","updated":"2025-01-27 05:06:37.000000000","message":"updated code accordingly","commit_id":"d12c61b61e958ac5157f11d86bf10bea21043f75"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"3b2a66f18823a648c2c6edfbb958070912a3fb9b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":20,"id":"50868a2a_69774f05","updated":"2025-09-10 14:51:34.000000000","message":"Please create the folders:\n`tcl/board/hpmicro/`\n`tcl/interface/hpmicro/`\nand put the files inside, as you have already done with the target files.se dor","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"}],"tcl/board/hpm5300evk.cfg":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"1d577843743716bd2b83f549ab3469273d78a6de","unresolved":true,"context_lines":[{"line_number":16,"context_line":"#         0 - SPI / 1 - DPI / 2 - QPI / 3 - OPI"},{"line_number":17,"context_line":"#       [19:16] Quad Enable Sequence (for the device support SFDP 1.0 only)"},{"line_number":18,"context_line":"#         0 - Not needed"},{"line_number":19,"context_line":"#         1 - QE bit is at bit 6 in Status Register 1"},{"line_number":20,"context_line":"#         2 - QE bit is at bit1 in Status Register 2"},{"line_number":21,"context_line":"#         3 - QE bit is at bit7 in Status Register 2"},{"line_number":22,"context_line":"#         4 - QE bit is at bit1 in Status Register 2 and should be programmed by 0x31"},{"line_number":23,"context_line":"#       [15:8] Dummy cycles"}],"source_content_type":"text/x-ttcn-cfg","patch_set":5,"id":"86c7329f_fdd49051","line":20,"range":{"start_line":19,"start_character":0,"end_line":20,"end_character":52},"updated":"2025-01-19 13:21:55.000000000","message":"Please be coherent `bit 6` in first line vs `bit1` in the following.\nSame in the other files","commit_id":"9145b9b7a00fd1bc4969f6bf699449bb84136dc8"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"89af65febc95a461f33e25dd4f29ed40dd5924ac","unresolved":false,"context_lines":[{"line_number":16,"context_line":"#         0 - SPI / 1 - DPI / 2 - QPI / 3 - OPI"},{"line_number":17,"context_line":"#       [19:16] Quad Enable Sequence (for the device support SFDP 1.0 only)"},{"line_number":18,"context_line":"#         0 - Not needed"},{"line_number":19,"context_line":"#         1 - QE bit is at bit 6 in Status Register 1"},{"line_number":20,"context_line":"#         2 - QE bit is at bit1 in Status Register 2"},{"line_number":21,"context_line":"#         3 - QE bit is at bit7 in Status Register 2"},{"line_number":22,"context_line":"#         4 - QE bit is at bit1 in Status Register 2 and should be programmed by 0x31"},{"line_number":23,"context_line":"#       [15:8] Dummy cycles"}],"source_content_type":"text/x-ttcn-cfg","patch_set":5,"id":"7dc84db3_afe72e06","line":20,"range":{"start_line":19,"start_character":0,"end_line":20,"end_character":52},"in_reply_to":"86c7329f_fdd49051","updated":"2025-01-27 05:06:37.000000000","message":"Ack","commit_id":"9145b9b7a00fd1bc4969f6bf699449bb84136dc8"}],"tcl/board/hpmicro/hpm5300evk.cfg":[{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"28972820d013d3a54c3d9c5caa03568b2e1e4123","unresolved":true,"context_lines":[{"line_number":78,"context_line":"    init_clock"},{"line_number":79,"context_line":"}"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"$_TARGET0 configure -event gdb-attach {"},{"line_number":82,"context_line":"    reset halt"},{"line_number":83,"context_line":"}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":41,"id":"249c7e16_ced4ae79","line":82,"range":{"start_line":81,"start_character":0,"end_line":82,"end_character":14},"updated":"2025-11-28 09:00:44.000000000","message":"This is the default for gdb-attach event. No point in redefining.\n\nFix in all board configs.","commit_id":"35fbe448e42f631670dc66ac5df4373f7c18f58d"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"24f62d6812ccaa1401cccc2a02f9529ced4c4d8a","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    init_clock"},{"line_number":79,"context_line":"}"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"$_TARGET0 configure -event gdb-attach {"},{"line_number":82,"context_line":"    reset halt"},{"line_number":83,"context_line":"}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":41,"id":"64149d60_a3db1dc9","line":82,"range":{"start_line":81,"start_character":0,"end_line":82,"end_character":14},"in_reply_to":"249c7e16_ced4ae79","updated":"2025-11-28 13:36:41.000000000","message":"Done","commit_id":"35fbe448e42f631670dc66ac5df4373f7c18f58d"}],"tcl/interface/ftdi/hpmicro_evk.cfg":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"3b2a66f18823a648c2c6edfbb958070912a3fb9b","unresolved":true,"context_lines":[{"line_number":1,"context_line":"# SPDX-License-Identifier: BSD-3-Clause"},{"line_number":2,"context_line":"# Copyright (c) 2021 HPMicro"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"adapter speed 10000"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"adapter driver ftdi"},{"line_number":7,"context_line":"ftdi_vid_pid 0x0403 0x6010"}],"source_content_type":"text/x-ttcn-cfg","patch_set":20,"id":"dc727711_82f5face","line":4,"updated":"2025-09-10 14:51:34.000000000","message":"The adapter speed should be specified in the board file.\nPlease move this line in each board file.","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"c654868e6e5531c658c85702377e45319f377c2b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# SPDX-License-Identifier: BSD-3-Clause"},{"line_number":2,"context_line":"# Copyright (c) 2021 HPMicro"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"adapter speed 10000"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"adapter driver ftdi"},{"line_number":7,"context_line":"ftdi_vid_pid 0x0403 0x6010"}],"source_content_type":"text/x-ttcn-cfg","patch_set":20,"id":"901201fa_ebf4cfd5","line":4,"in_reply_to":"dc727711_82f5face","updated":"2025-09-10 15:07:38.000000000","message":"Done","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"}],"tcl/target/hpmicro/hpm5300.cfg":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"3b2a66f18823a648c2c6edfbb958070912a3fb9b","unresolved":true,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"$_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"targets $_TARGET0"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"source [find target/hpmicro/hpm_common_csr_lite.cfg]"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":20,"id":"6a25fb98_2cebb25c","line":13,"updated":"2025-09-10 14:51:34.000000000","message":"Do you need this line? There is only one target, so it is automatically set as the default","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"c654868e6e5531c658c85702377e45319f377c2b","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"$_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"targets $_TARGET0"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"source [find target/hpmicro/hpm_common_csr_lite.cfg]"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":20,"id":"bd2c5d9d_eeb8248c","line":13,"in_reply_to":"6a25fb98_2cebb25c","updated":"2025-09-10 15:07:38.000000000","message":"Done","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"28972820d013d3a54c3d9c5caa03568b2e1e4123","unresolved":true,"context_lines":[{"line_number":1,"context_line":"# SPDX-License-Identifier: BSD-3-Clause"},{"line_number":2,"context_line":"# Copyright (c) 2021 HPMicro"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"set _CHIP hpm5361"},{"line_number":5,"context_line":"set _CPUTAPID 0x1000563D"},{"line_number":6,"context_line":"jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID"}],"source_content_type":"text/x-ttcn-cfg","patch_set":41,"id":"1f406200_db4f086b","line":3,"updated":"2025-11-28 09:00:44.000000000","message":"Add the ULR pointer to the public datasheet of the device.\n\nFix in all target configs.","commit_id":"35fbe448e42f631670dc66ac5df4373f7c18f58d"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"24f62d6812ccaa1401cccc2a02f9529ced4c4d8a","unresolved":true,"context_lines":[{"line_number":1,"context_line":"# SPDX-License-Identifier: BSD-3-Clause"},{"line_number":2,"context_line":"# Copyright (c) 2021 HPMicro"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"set _CHIP hpm5361"},{"line_number":5,"context_line":"set _CPUTAPID 0x1000563D"},{"line_number":6,"context_line":"jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID"}],"source_content_type":"text/x-ttcn-cfg","patch_set":41,"id":"4aa1c590_50899fcf","line":3,"in_reply_to":"1f406200_db4f086b","updated":"2025-11-28 13:36:41.000000000","message":"English version is not available? Anyway better to machine translation than no datasheet at all.","commit_id":"35fbe448e42f631670dc66ac5df4373f7c18f58d"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"0f591af5b2713951559ed41f4cbcebd01f03dc75","unresolved":true,"context_lines":[{"line_number":1,"context_line":"# SPDX-License-Identifier: BSD-3-Clause"},{"line_number":2,"context_line":"# Copyright (c) 2021 HPMicro"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"set _CHIP hpm5361"},{"line_number":5,"context_line":"set _CPUTAPID 0x1000563D"},{"line_number":6,"context_line":"jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID"}],"source_content_type":"text/x-ttcn-cfg","patch_set":41,"id":"81594a5c_a4310870","line":3,"in_reply_to":"4aa1c590_50899fcf","updated":"2025-11-28 16:24:47.000000000","message":"We\u0027re still working on translation. I\u0027ll update them once these English version is available. Okay?","commit_id":"35fbe448e42f631670dc66ac5df4373f7c18f58d"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"982dc90ab67f2193e2a10d104ac03903a73b41a8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# SPDX-License-Identifier: BSD-3-Clause"},{"line_number":2,"context_line":"# Copyright (c) 2021 HPMicro"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"set _CHIP hpm5361"},{"line_number":5,"context_line":"set _CPUTAPID 0x1000563D"},{"line_number":6,"context_line":"jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID"}],"source_content_type":"text/x-ttcn-cfg","patch_set":41,"id":"fdfbbd4f_35f12890","line":3,"in_reply_to":"81594a5c_a4310870","updated":"2025-11-28 20:16:03.000000000","message":"Sure, thanks!","commit_id":"35fbe448e42f631670dc66ac5df4373f7c18f58d"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"28972820d013d3a54c3d9c5caa03568b2e1e4123","unresolved":true,"context_lines":[{"line_number":14,"context_line":"source [find target/hpmicro/hpm_common_csr_lite.cfg]"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"proc reset_soc {} {"},{"line_number":17,"context_line":"    $::_TARGET0 riscv dmi_write 0x39 0xF410001C"},{"line_number":18,"context_line":"    $::_TARGET0 riscv dmi_write 0x3C 24000000"},{"line_number":19,"context_line":"}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":41,"id":"74cd1b62_3340cc9f","line":17,"range":{"start_line":17,"start_character":32,"end_line":17,"end_character":36},"updated":"2025-11-28 09:00:44.000000000","message":"Don\u0027t use DM registers as magic numbers.\nDefine them in a human readable form, see e.g. tcl/target/gd32vf103.cfg\n\nFix in all configs","commit_id":"35fbe448e42f631670dc66ac5df4373f7c18f58d"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"0f591af5b2713951559ed41f4cbcebd01f03dc75","unresolved":false,"context_lines":[{"line_number":14,"context_line":"source [find target/hpmicro/hpm_common_csr_lite.cfg]"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"proc reset_soc {} {"},{"line_number":17,"context_line":"    $::_TARGET0 riscv dmi_write 0x39 0xF410001C"},{"line_number":18,"context_line":"    $::_TARGET0 riscv dmi_write 0x3C 24000000"},{"line_number":19,"context_line":"}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":41,"id":"e3deac67_5c51d2e5","line":17,"range":{"start_line":17,"start_character":32,"end_line":17,"end_character":36},"in_reply_to":"4a72a22a_88af954a","updated":"2025-11-28 16:24:47.000000000","message":"You\u0027re right, revised.","commit_id":"35fbe448e42f631670dc66ac5df4373f7c18f58d"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"24f62d6812ccaa1401cccc2a02f9529ced4c4d8a","unresolved":true,"context_lines":[{"line_number":14,"context_line":"source [find target/hpmicro/hpm_common_csr_lite.cfg]"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"proc reset_soc {} {"},{"line_number":17,"context_line":"    $::_TARGET0 riscv dmi_write 0x39 0xF410001C"},{"line_number":18,"context_line":"    $::_TARGET0 riscv dmi_write 0x3C 24000000"},{"line_number":19,"context_line":"}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":41,"id":"4a72a22a_88af954a","line":17,"range":{"start_line":17,"start_character":32,"end_line":17,"end_character":36},"in_reply_to":"74cd1b62_3340cc9f","updated":"2025-11-28 13:36:41.000000000","message":"`dmi_write` is somewhat misleading as it resembles `riscv dmi_write`. What about `sb_write` or `sba_mem_write`?\nBTW For reset_soc it is perfectly ok.\nBut there is lot of writes using dmi in `reset_init` event (init_clock, init_sdram). Correct me if I\u0027m wrong, but there is target examined and halted, so `mww` or `write_memory` OpenOCD commands should work faster and look more readable.","commit_id":"35fbe448e42f631670dc66ac5df4373f7c18f58d"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"982dc90ab67f2193e2a10d104ac03903a73b41a8","unresolved":true,"context_lines":[{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# datasheet: https://www.hpmicro.com/Public/Uploads/uploadfile/files/20251126/HPM5300DSV012.pdf"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"set _CHIP hpm5361"},{"line_number":7,"context_line":"set _CPUTAPID 0x1000563D"},{"line_number":8,"context_line":"jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID"},{"line_number":9,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":47,"id":"d84cf580_a31f343e","line":6,"updated":"2025-11-28 20:16:03.000000000","message":"If you want to allow users to configure more than one device in the JTAG chain,\nuse usual\n```\nif { [info exists CHIPNAME] } {\n    set _CHIP $CHIPNAME\n} else {\n    set _CHIP hpmxxxx\n}\n```\nSee `6.2.1 Communication Between Config files` in https://openocd.org/doc/html/Config-File-Guidelines.html\n\nNot a strict requirement, it\u0027s up to you.","commit_id":"5b9bb57355bcd467351bf285b28dd6b3c02bd3dd"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"ca57f4ea6d2d17306ceb4aaebad51c106d11e624","unresolved":false,"context_lines":[{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# datasheet: https://www.hpmicro.com/Public/Uploads/uploadfile/files/20251126/HPM5300DSV012.pdf"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"set _CHIP hpm5361"},{"line_number":7,"context_line":"set _CPUTAPID 0x1000563D"},{"line_number":8,"context_line":"jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID"},{"line_number":9,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":47,"id":"028a67de_ee5ee4a9","line":6,"in_reply_to":"a6df51bc_63800032","updated":"2025-12-03 14:58:29.000000000","message":"Done","commit_id":"5b9bb57355bcd467351bf285b28dd6b3c02bd3dd"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"831947f03a9f8d7d0c42b1696dbac8dcf1bb6103","unresolved":true,"context_lines":[{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# datasheet: https://www.hpmicro.com/Public/Uploads/uploadfile/files/20251126/HPM5300DSV012.pdf"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"set _CHIP hpm5361"},{"line_number":7,"context_line":"set _CPUTAPID 0x1000563D"},{"line_number":8,"context_line":"jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID"},{"line_number":9,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":47,"id":"a6df51bc_63800032","line":6,"in_reply_to":"d84cf580_a31f343e","updated":"2025-12-01 02:22:50.000000000","message":"revised, thanks.","commit_id":"5b9bb57355bcd467351bf285b28dd6b3c02bd3dd"}],"tcl/target/hpmicro/hpm6280-dual-core.cfg":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"3b2a66f18823a648c2c6edfbb958070912a3fb9b","unresolved":true,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"$_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"targets $_TARGET0"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"source [find target/hpmicro/hpm_common_csr.cfg]"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":20,"id":"4e37223f_0f2869dc","line":15,"updated":"2025-09-10 14:51:34.000000000","message":"Ditto","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"c654868e6e5531c658c85702377e45319f377c2b","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"$_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"targets $_TARGET0"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"source [find target/hpmicro/hpm_common_csr.cfg]"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":20,"id":"f7516c6a_8463ef0b","line":15,"in_reply_to":"4e37223f_0f2869dc","updated":"2025-09-10 15:07:38.000000000","message":"Done","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"}],"tcl/target/hpmicro/hpm6280-single-core.cfg":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"3b2a66f18823a648c2c6edfbb958070912a3fb9b","unresolved":true,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"$_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"targets $_TARGET0"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"source [find target/hpmicro/hpm_common_csr.cfg]"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":20,"id":"966801a7_c94a7a2d","line":13,"updated":"2025-09-10 14:51:34.000000000","message":"Ditto","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"c654868e6e5531c658c85702377e45319f377c2b","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"$_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"targets $_TARGET0"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"source [find target/hpmicro/hpm_common_csr.cfg]"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":20,"id":"3f1acdf4_9ff77691","line":13,"in_reply_to":"966801a7_c94a7a2d","updated":"2025-09-10 15:07:38.000000000","message":"Done","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"}],"tcl/target/hpmicro/hpm6360.cfg":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"3b2a66f18823a648c2c6edfbb958070912a3fb9b","unresolved":true,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"$_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"targets $_TARGET0"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"source [find target/hpmicro/hpm_common_csr.cfg]"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":20,"id":"35e1046c_ef06f3a0","line":13,"updated":"2025-09-10 14:51:34.000000000","message":"Ditto, also for the other files","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"c654868e6e5531c658c85702377e45319f377c2b","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"$_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"targets $_TARGET0"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"source [find target/hpmicro/hpm_common_csr.cfg]"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":20,"id":"9faa811b_0d78cd9b","line":13,"in_reply_to":"35e1046c_ef06f3a0","updated":"2025-09-10 15:07:38.000000000","message":"Done","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"}],"tcl/target/hpmicro/hpm_common_csr.cfg":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"1d577843743716bd2b83f549ab3469273d78a6de","unresolved":true,"context_lines":[{"line_number":102,"context_line":"riscv expose_csrs 4034"},{"line_number":103,"context_line":"# mmsc_cfg2"},{"line_number":104,"context_line":"riscv expose_csrs 4035"},{"line_number":105,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":5,"id":"c3c9cca1_1618186b","line":105,"updated":"2025-01-19 13:21:55.000000000","message":"drop empty lines at end of file","commit_id":"9145b9b7a00fd1bc4969f6bf699449bb84136dc8"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"89af65febc95a461f33e25dd4f29ed40dd5924ac","unresolved":false,"context_lines":[{"line_number":102,"context_line":"riscv expose_csrs 4034"},{"line_number":103,"context_line":"# mmsc_cfg2"},{"line_number":104,"context_line":"riscv expose_csrs 4035"},{"line_number":105,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":5,"id":"43799c6b_dd0a4f7f","line":105,"in_reply_to":"c3c9cca1_1618186b","updated":"2025-01-27 05:06:37.000000000","message":"Ack","commit_id":"9145b9b7a00fd1bc4969f6bf699449bb84136dc8"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"3b2a66f18823a648c2c6edfbb958070912a3fb9b","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":20,"id":"ca68c445_a480906a","line":106,"updated":"2025-09-10 14:51:34.000000000","message":"please drop the extra empty line at the end of the file","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"c654868e6e5531c658c85702377e45319f377c2b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":20,"id":"83019918_65da8a73","line":106,"in_reply_to":"ca68c445_a480906a","updated":"2025-09-10 15:07:38.000000000","message":"Done","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"}],"tcl/target/hpmicro/hpm_common_csr_lite.cfg":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"1d577843743716bd2b83f549ab3469273d78a6de","unresolved":true,"context_lines":[{"line_number":68,"context_line":"riscv expose_csrs 4034"},{"line_number":69,"context_line":"# mmsc_cfg2"},{"line_number":70,"context_line":"riscv expose_csrs 4035"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":5,"id":"e426b6e0_1ee8a606","line":71,"updated":"2025-01-19 13:21:55.000000000","message":"ditto","commit_id":"9145b9b7a00fd1bc4969f6bf699449bb84136dc8"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"89af65febc95a461f33e25dd4f29ed40dd5924ac","unresolved":false,"context_lines":[{"line_number":68,"context_line":"riscv expose_csrs 4034"},{"line_number":69,"context_line":"# mmsc_cfg2"},{"line_number":70,"context_line":"riscv expose_csrs 4035"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":5,"id":"f1fae527_95de52fe","line":71,"in_reply_to":"e426b6e0_1ee8a606","updated":"2025-01-27 05:06:37.000000000","message":"Ack","commit_id":"9145b9b7a00fd1bc4969f6bf699449bb84136dc8"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"3b2a66f18823a648c2c6edfbb958070912a3fb9b","unresolved":true,"context_lines":[{"line_number":68,"context_line":"riscv expose_csrs 4034"},{"line_number":69,"context_line":"# mmsc_cfg2"},{"line_number":70,"context_line":"riscv expose_csrs 4035"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":20,"id":"2f302226_dfdd1fcb","line":71,"updated":"2025-09-10 14:51:34.000000000","message":"here too","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"c654868e6e5531c658c85702377e45319f377c2b","unresolved":false,"context_lines":[{"line_number":68,"context_line":"riscv expose_csrs 4034"},{"line_number":69,"context_line":"# mmsc_cfg2"},{"line_number":70,"context_line":"riscv expose_csrs 4035"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":20,"id":"634690f5_15828f75","line":71,"in_reply_to":"2f302226_dfdd1fcb","updated":"2025-09-10 15:07:38.000000000","message":"Done","commit_id":"b9b5769d1a117c5edc8cd4446c253b474d0d2c21"}],"tcl/target/hpmicro/hpm_ocd_reset.cfg":[{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"28972820d013d3a54c3d9c5caa03568b2e1e4123","unresolved":true,"context_lines":[{"line_number":10,"context_line":"\t\tinit {"},{"line_number":11,"context_line":"\t\t\tset halt 1"},{"line_number":12,"context_line":"\t\t}"},{"line_number":13,"context_line":"\t\thalt {"},{"line_number":14,"context_line":"\t\t\tset halt 1"},{"line_number":15,"context_line":"\t\t}"},{"line_number":16,"context_line":"\t\trun {"},{"line_number":17,"context_line":"\t\t\tset halt 0"},{"line_number":18,"context_line":"\t\t}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":41,"id":"586ed666_3d6e3b2e","line":15,"range":{"start_line":13,"start_character":2,"end_line":15,"end_character":3},"updated":"2025-11-28 09:00:44.000000000","message":"Why? `halt` is handled @ line 9","commit_id":"35fbe448e42f631670dc66ac5df4373f7c18f58d"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"24f62d6812ccaa1401cccc2a02f9529ced4c4d8a","unresolved":false,"context_lines":[{"line_number":10,"context_line":"\t\tinit {"},{"line_number":11,"context_line":"\t\t\tset halt 1"},{"line_number":12,"context_line":"\t\t}"},{"line_number":13,"context_line":"\t\thalt {"},{"line_number":14,"context_line":"\t\t\tset halt 1"},{"line_number":15,"context_line":"\t\t}"},{"line_number":16,"context_line":"\t\trun {"},{"line_number":17,"context_line":"\t\t\tset halt 0"},{"line_number":18,"context_line":"\t\t}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":41,"id":"d0391e15_9a39299e","line":15,"range":{"start_line":13,"start_character":2,"end_line":15,"end_character":3},"in_reply_to":"586ed666_3d6e3b2e","updated":"2025-11-28 13:36:41.000000000","message":"Done","commit_id":"35fbe448e42f631670dc66ac5df4373f7c18f58d"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"28972820d013d3a54c3d9c5caa03568b2e1e4123","unresolved":true,"context_lines":[{"line_number":86,"context_line":"\t# first executing any instructions."},{"line_number":87,"context_line":"\tif { $halt } {"},{"line_number":88,"context_line":"\t\tforeach t $targets {"},{"line_number":89,"context_line":"\t\t\tcatch { $t arp_waitstate running 500 }"},{"line_number":90,"context_line":"\t\t\tif {[using_jtag] \u0026\u0026 ![jtag tapisenabled [$t cget -chain-position]]} {"},{"line_number":91,"context_line":"\t\t\t\tcontinue"},{"line_number":92,"context_line":"\t\t\t}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":42,"id":"ef75fab1_ad6ae2c9","line":89,"updated":"2025-11-28 09:00:44.000000000","message":"You should add a detailed comment explaining what the only functional change is for. Seems very weird to wait for running state when the core should go from reset state directly to halt - but don\u0027t know the details how the device reset is screwed.\n\nAnyway it should be placed after the following two conditional blocks, just before `$t arp_halt`","commit_id":"43fe72acf7c32c16fed18963439e7c6da19cb36a"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"0f591af5b2713951559ed41f4cbcebd01f03dc75","unresolved":false,"context_lines":[{"line_number":86,"context_line":"\t# first executing any instructions."},{"line_number":87,"context_line":"\tif { $halt } {"},{"line_number":88,"context_line":"\t\tforeach t $targets {"},{"line_number":89,"context_line":"\t\t\tcatch { $t arp_waitstate running 500 }"},{"line_number":90,"context_line":"\t\t\tif {[using_jtag] \u0026\u0026 ![jtag tapisenabled [$t cget -chain-position]]} {"},{"line_number":91,"context_line":"\t\t\t\tcontinue"},{"line_number":92,"context_line":"\t\t\t}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":42,"id":"8b46bcba_9be0266b","line":89,"in_reply_to":"3e06038e_3b89dc70","updated":"2025-11-28 16:24:47.000000000","message":"Thanks, Tomas, it turns out \"reset-deassert-pre\" can do the trick. I rename the file to hpm_reset.cfg rather than hpm_ocd_reset.cfg.","commit_id":"43fe72acf7c32c16fed18963439e7c6da19cb36a"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"24f62d6812ccaa1401cccc2a02f9529ced4c4d8a","unresolved":true,"context_lines":[{"line_number":86,"context_line":"\t# first executing any instructions."},{"line_number":87,"context_line":"\tif { $halt } {"},{"line_number":88,"context_line":"\t\tforeach t $targets {"},{"line_number":89,"context_line":"\t\t\tcatch { $t arp_waitstate running 500 }"},{"line_number":90,"context_line":"\t\t\tif {[using_jtag] \u0026\u0026 ![jtag tapisenabled [$t cget -chain-position]]} {"},{"line_number":91,"context_line":"\t\t\t\tcontinue"},{"line_number":92,"context_line":"\t\t\t}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":42,"id":"3e06038e_3b89dc70","line":89,"in_reply_to":"ef75fab1_ad6ae2c9","updated":"2025-11-28 13:36:41.000000000","message":"Ryan,\nit\u0027s now much more clear with the comment.\nCould you please try to configure `reset-deassert-post` event in the target config instead of redefining whole `ocd_process_reset_inner`? Something like:\n\n```\n$_TARGETNAME configure -event reset-deassert-post {\n    if {$halt} {\n        catch { $t arp_waitstate running 500 }\n    }\n}\n```\nSeems me it should work similarly and using the pluggable event is much simpler.","commit_id":"43fe72acf7c32c16fed18963439e7c6da19cb36a"}],"tcl/target/hpmicro/hpm_reset.cfg":[{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"982dc90ab67f2193e2a10d104ac03903a73b41a8","unresolved":true,"context_lines":[{"line_number":7,"context_line":"# so we request halt again in reset-deassert-pre event."},{"line_number":8,"context_line":"$_TARGET0 configure -event reset-deassert-pre {"},{"line_number":9,"context_line":"\tif {$halt} {"},{"line_number":10,"context_line":"\t\t$::_TARGET0 arp_halt"},{"line_number":11,"context_line":"\t}"},{"line_number":12,"context_line":"}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":47,"id":"af40744a_be412ad0","line":10,"updated":"2025-11-28 20:16:03.000000000","message":"Is it sufficient without `arp_waitstate running 500`?\nPlease test both single and dual core devices.","commit_id":"5b9bb57355bcd467351bf285b28dd6b3c02bd3dd"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"ae0294e342c526020963b7d3ceadb420ac97a9a6","unresolved":false,"context_lines":[{"line_number":7,"context_line":"# so we request halt again in reset-deassert-pre event."},{"line_number":8,"context_line":"$_TARGET0 configure -event reset-deassert-pre {"},{"line_number":9,"context_line":"\tif {$halt} {"},{"line_number":10,"context_line":"\t\t$::_TARGET0 arp_halt"},{"line_number":11,"context_line":"\t}"},{"line_number":12,"context_line":"}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":47,"id":"136a89d1_2eec8034","line":10,"in_reply_to":"2b1f9afb_547b3bf9","updated":"2025-12-04 07:15:56.000000000","message":"thanks. I\u0027ll keep tracking this.","commit_id":"5b9bb57355bcd467351bf285b28dd6b3c02bd3dd"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"ca57f4ea6d2d17306ceb4aaebad51c106d11e624","unresolved":false,"context_lines":[{"line_number":7,"context_line":"# so we request halt again in reset-deassert-pre event."},{"line_number":8,"context_line":"$_TARGET0 configure -event reset-deassert-pre {"},{"line_number":9,"context_line":"\tif {$halt} {"},{"line_number":10,"context_line":"\t\t$::_TARGET0 arp_halt"},{"line_number":11,"context_line":"\t}"},{"line_number":12,"context_line":"}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":47,"id":"2b1f9afb_547b3bf9","line":10,"in_reply_to":"9f898fd4_810aa962","updated":"2025-12-03 14:58:29.000000000","message":"The delay in boot ROM seems to be quite short in comparison to the time spent in riscv_poll(), therefore `arp_waitstate` is too slow. Such short sleep may be unreliable as a substantial part of the real delay depends on the JTAG adapter and its setting. Let\u0027s hope it will mostly work...","commit_id":"5b9bb57355bcd467351bf285b28dd6b3c02bd3dd"},{"author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"change_message_id":"831947f03a9f8d7d0c42b1696dbac8dcf1bb6103","unresolved":true,"context_lines":[{"line_number":7,"context_line":"# so we request halt again in reset-deassert-pre event."},{"line_number":8,"context_line":"$_TARGET0 configure -event reset-deassert-pre {"},{"line_number":9,"context_line":"\tif {$halt} {"},{"line_number":10,"context_line":"\t\t$::_TARGET0 arp_halt"},{"line_number":11,"context_line":"\t}"},{"line_number":12,"context_line":"}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":47,"id":"9f898fd4_810aa962","line":10,"in_reply_to":"af40744a_be412ad0","updated":"2025-12-01 02:22:50.000000000","message":"Tomas,\n\nThank for your advice. It turns out it will not be halted right at the beginning of application on using \"arp_waitstate running 500\" even with a minimum timeout, like 1.\n\nI tried with \"sleep 1\". It seems to be better than \"arp_waitstate\". I\u0027m not sure if it\u0027s a acceptable approach.\n\nThanks in advance.","commit_id":"5b9bb57355bcd467351bf285b28dd6b3c02bd3dd"}]}
