My system has 2 boards. Both have a SAME70Q19. On main board, it is a LFBGA socket, on the slave board it is a LQFP socket. On both boards, I have a 10 pins SWD socket that I can connect to a JTAGICE3 debugger.
On the main board, I can program the CPU, and do debugging (going step by step)
On the slave board, I can program the CPU, it runs the code and works, but I cannot do debugging. In AtemlStudio7, I set a break point on the first line of my main, and when I press the start debugging button, it builds the program, erase the CPU, programs it, and then I have a "Waiting for an operation to complete" dialog appearing. The CPU seems frozen, debugger seems frozen, and I have to kill AS to get it working.
I don't think something goes wrong in the schematic as I can program the CPU. Any idea what could cause that programming works but not debugging? Are the same pins used when programming and debugging?
Thanks for your help