Hi, I have an AT91SAM9260 and use a segger J-Link for HW-debugging. The problem is, that debugging does only work on every second time. That means, if I want to debug, I click onto start/stop debugging, wait for the debugger to load the code into external RAM and then the program counter is somewhere in the program but the main or I get an error "cannot stop arm device". On the second try (after I switch off and on power of the device) debugging works fine.
Hi,
did you also try Adaptive Clocking? Just tested and works fine...
BR, /th.
Hi, yes, we work with adaptive clocking. Otherwise we would have to use a very slow frequency for JTAG, because the device starts with some 100kHz and speeds up JTAG frequency afterwards.
We had a device (same µC but different design), where the "adaptive clocking pin" was not connected to the JTAG-port... it took some minutes to load the firmware to SD-Ram and debugging was slow as a snail
We found the problem! After startup, the user reset is disabled in revision B of the AT91SAM9260. After enabling the user reset, the debugger works fine...