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.
Thanks for the information.
I will check if it is solved, when the bootloader is disabled by erasing the first page of the DataFlash.
It isn't a solution I might use. When my bootloader is disabled, SAMBA is getting started and I have other problems. My app cannot configure the watchdog register, which seems to be configured by SAMBA which starts in the "background", and throws tons of errors...
But debugging starts fine ;-)