From: Thomas D. D. <to...@wa...> - 2025-06-21 16:11:27
|
On 6/21/25 00:33, Antonio Borneo wrote: > the git SHA1 reported in the line above '8b8c9731a' does not match > anything in OpenOCD upstream. > Are you using a fork taken somewhere else? That version was from https://github.com/raspberrypi/openocd.git I will try from https://git.code.sf.net/p/openocd/code Same result. No time now, I will try to chase this in a couple hours. CX seems to come from rp2040.cfg line 88 For now, > sudo openocd -d -f interface/cmsis-dap.cfg -f target/rp2040.cfg \ -c "adapter speed 5000" -c "program $1 verify reset exit" \ 2>&1 | grep CX Debug: 37 2 command.c:86 script_debug(): command - dap create rp2040.dap0 -chain-position rp2040.cpu -dp-id 0x01002927 -instance-id 0 Debug: 38 2 command.c:86 script_debug(): command - target create rp2040.core0 cortex_m -dap rp2040.dap0 -coreid 0 Debug: 39 2 command.c:191 register_command(): command 'tpiu' is already registered Debug: 40 2 command.c:191 register_command(): command 'rtt' is already registered Debug: 41 2 command.c:86 script_debug(): command - rp2040.core0 cortex_m reset_config sysresetreq Debug: 42 2 command.c:86 script_debug(): command - rp2040.core0 configure -event reset-init rp2xxx rom_api_call 0 CX Debug: 43 2 command.c:86 script_debug(): command - dap create rp2040.dap1 -chain-position rp2040.cpu -dp-id 0x01002927 -instance-id 1 Debug: 44 2 command.c:86 script_debug(): command - target create rp2040.core1 cortex_m -dap rp2040.dap1 -coreid 1 Debug: 45 2 command.c:191 register_command(): command 'arm' is already registered Debug: 46 2 command.c:191 register_command(): command 'arm core_state' is already registered Debug: 47 2 command.c:191 register_command(): command 'arm disassemble' is already registered -- Debug: 374 716 command.c:86 script_debug(): command - rp2040.core1 curstate Debug: 375 716 command.c:86 script_debug(): command - transport select Debug: 376 716 command.c:86 script_debug(): command - rp2040.core0 was_examined Debug: 377 716 command.c:86 script_debug(): command - rp2040.core0 arp_waitstate halted 5000 Debug: 378 717 command.c:86 script_debug(): command - rp2040.core0 invoke-event reset-init Debug: 379 717 target.c:4675 target_handle_event(): target: rp2040.core0 (cortex_m) event: 15 (reset-init) action: rp2xxx rom_api_call 0 CX Debug: 380 717 command.c:86 script_debug(): command - rp2xxx rom_api_call 0 CX Debug: 381 717 target.c:2571 target_read_u32(): address: 0x40000000, value: 0x20002927 Debug: 382 718 target.c:2571 target_read_u32(): address: 0x00000010, value: 0x0301754d Debug: 383 718 rp2xxx.c:220 rp2040_lookup_rom_symbol(): Looking up ROM symbol 'EX' in RP2040 table Debug: 384 718 arm_adi_v5.c:400 mem_ap_setup_transfer_verify_size_packing(): AP#0x0 probed size 2: supported Debug: 385 718 target.c:2595 target_read_u16(): address: 0x00000014, value: 0x007a -- Debug: 479 735 target.c:2595 target_read_u16(): address: 0x000000b6, value: 0x5052 Debug: 480 735 target.c:2595 target_read_u16(): address: 0x000000ba, value: 0x4346 Debug: 481 735 target.c:2595 target_read_u16(): address: 0x000000bc, value: 0x2351 Debug: 482 735 rp2xxx.c:246 rp2040_lookup_rom_symbol(): -> found: 0x2351 Debug: 483 735 target.c:2571 target_read_u32(): address: 0x00000010, value: 0x0301754d Debug: 484 735 rp2xxx.c:220 rp2040_lookup_rom_symbol(): Looking up ROM symbol 'CX' in RP2040 table Debug: 485 736 target.c:2595 target_read_u16(): address: 0x00000014, value: 0x007a Debug: 486 736 target.c:2595 target_read_u16(): address: 0x0000007a, value: 0x3350 Debug: 487 736 target.c:2595 target_read_u16(): address: 0x0000007e, value: 0x3352 Debug: 488 736 target.c:2595 target_read_u16(): address: 0x00000082, value: 0x334c Debug: 489 736 target.c:2595 target_read_u16(): address: 0x00000086, value: 0x3354 -- Debug: 576 764 target.c:1910 print_wa_layout(): 0x20010000-0x2001ffff (65536 bytes) Info : 577 764 rp2xxx.c:1257 rp2xxx_flash_probe(): RP2040 rev 2, QSPI Flash win w25q16jv id = 0x1540ef size = 2048 KiB in 512 sectors Error: 578 764 command.c:1240 parse_ullong(): Invalid command argument Debug: 579 764 command.c:457 exec_command(): Command 'rp2xxx rom_api_call' failed with error code -603 Error: 580 764 target.c:4702 target_handle_event(): [rp2040.core0] Execution of event reset-init failed: embedded:startup.tcl:1427: Error: args[i] option value ('CX') is not valid in procedure 'program' in procedure 'ocd_process_reset' in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 1427 Debug: 581 764 command.c:86 script_debug(): command - transport select Debug: 582 764 command.c:86 script_debug(): command - rp2040.core1 was_examined Tom Dean |