debugging on SAME70

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,

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

This topic has a solution.
Last Edited: Tue. Apr 26, 2016 - 12:24 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This thread helped me:

https://www.avrfreaks.net/forum/j...

 

Removing all breakpoints (some where not visible in GUI) fixed the problem.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How many break points can you set? I had similar problems as you. When I set more than 7 or 8 break points, each debug stepping will cause MCU flash memory be programmed again.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I generally have a maximum 3/4 breakpoints and have no problem. I just tried with 8 breakpoints, and no problem running the code step by step.