"BUG: no hardware comparator available" on STR912

Using Yagarto gcc, OpenOCD, Hitex comStick with STR912.

Downloaded image to flash (see previous message), then tried to debug with insight. Was loading initial debug session, I think it tried to jump to main. Insight displayed

“BUG: no hardware comparator available”

then froze, though I was able to terminate the insight session.

Now, if I go in to download a new flash image, I get:

Open On-Chip Debugger

reset halt

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

flash write_image erase c:\download\odu\odu\odu.elf 0 elf

auto erase enabled

BUG: no hardware comparator available

BUG: no hardware comparator available

timeout waiting for algorithm to complete, trying to halt target

error executing str9x flash write algorithm

flash writing failed with error code: 0xfffffc7a

error writing to flash at address 0x00000000 at offset 0x00000000 (-902)

What does that mean?? Is this an OpenOCD bug, an insight bug, a gdb bug, or something else??

you only get two hardware breakpoints when debugging flash.

issue a gdb “info break” to see what breakpoints are being set.

Cheers

Spen

It appears to be something other than breakpoints, this time.

When I try using OpenOCD to write a new .elf file to the target, it fails with:

flash write_image erase c:\download\odu\odu\odu.elf 0 elf

auto erase enabled

BUG: no hardware comparator available

timeout waiting for algorithm to complete, trying to halt target

error executing str9x flash write algorithm

flash writing failed with error code: 0xfffffc7a

error writing to flash at address 0x00000000 at offset 0x00000000 (-902)

However, if I try to run insight (from Yagarto) to debug it, I instead get:

force hardware breakpoints enabled

Loading section .text, size 0x42448 lma 0x0

Loading section .data, size 0xb10 lma 0x42448

C:\download\odu\odu/.\str912_rom.gdb:15: Error in sourced command file:

Error finishing flash operation

(gdb) info break

No breakpoints or watchpoints.

//*****************************************

point of clarification:

I had initially gotten insight to run, told it to break in main(), but was getting all kinds of flaky operation while trying to walk through the code. For Example, “Next” was stepping into the functions not executing over them. Then it just crashed, and ever since I’ve been getting these errors.