Øyvind Harboe wrote: > type "help reset" > Yes but that doesn't say what the parameters do.
> openocd.texi under subversion control. It is in sync w/source of course :-) > > to build a PDF file: > > make pdf > accessing the installed openocd.info is fine for me. (Although I got the impression when I read it 2-3 weeks ago that it was outdated, dunno remember exactly why.) > >> Wonderful?! >> Hm. I've now run $ gdb RTOSDemo.elf (gdb) load Loading section .text, size 0x3214 lma 0x0 Loading section .rodata, size 0xe lma 0x3214 Loading section .data, size 0x4 lma 0x3224 Start address 0x0, load size 12838 Remote connection closed (gdb) Then I tried various ways to make a reset (reset button, power cycle, "reset run"). From telnet to openocd, I'm getting: > reset run RCLK not supported jtag_khz: 16 JTAG device found: 0x04570041 (Manufacturer: 0x020, Part: 0x4570, Version: 0x0) Device does not have IDCODE Device does not have IDCODE Device does not have IDCODE Device does not have IDCODE Device does not have IDCODE ... Device does not have IDCODE number of discovered devices in JTAG chain (578) doesn't match configuration (3) check the config file and ensure proper JTAG communication (connections, speed, ...) trying to validate configured JTAG chain anyway... Error validating JTAG scan chain, IR mismatch, scan returned 0x000029 Could not validate JTAG chain, continuing anyway... value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x01 check_mask: 0x0f in_handler reported a failed check Runtime error, file "?", line 1: > Etc.; what has helped is unplug everything, plug stuff in and restart openocd. > reset init RCLK not supported jtag_khz: 16 JTAG device found: 0x04570041 (Manufacturer: 0x020, Part: 0x4570, Version: 0x0) JTAG device found: 0x25966041 (Manufacturer: 0x020, Part: 0x5966, Version: 0x2) JTAG device found: 0x2457f041 (Manufacturer: 0x020, Part: 0x457f, Version: 0x2) target state: halted target halted in ARM state due to debug-request, current mode: Supervisor cpsr: 0x000000d3 pc: 0x00000000 RCLK not supported jtag_khz: 3000 cleared protection for sectors 0 through 7 on flash bank 0 > reset run RCLK not supported jtag_khz: 16 JTAG device found: 0x04570041 (Manufacturer: 0x020, Part: 0x4570, Version: 0x0) JTAG device found: 0x25966041 (Manufacturer: 0x020, Part: 0x5966, Version: 0x2) JTAG device found: 0x2457f041 (Manufacturer: 0x020, Part: 0x457f, Version: 0x2) > then attach with gdb RTOSDemo.elf, (gdb) stop (gdb) bt #0 0x10980053 in ?? () (gdb) cont Continuing. ^Ctarget state: halted target halted in Thumb state due to debug-request, current mode: Undefined cpsr: 0x000000fb pc: 0xfffffc9c Program received signal SIGINT, Interrupt. 0x10980053 in ?? () (gdb) bt #0 0x10980053 in ?? () (gdb) cont Continuing. ^Ctarget state: halted target halted in Thumb state due to debug-request, current mode: Undefined cpsr: 0x000000fb pc: 0xfffffc32 Program received signal SIGINT, Interrupt. 0x10980053 in ?? () (gdb) I guess there are both issues with JTAG/OpenOCD (that I had to unplug everything) as well as with the Demo (it doesn't seem to run as it should, i.e. pc doesn't seem to be in valid program code). Christian. _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
