Good question! You can use JTAG as well, but I have never tried it with this chip. In general, SWD requires fewer pins, but JTAG is more widely supported beyond ARM architectures. I use SWD where possible for the lower pin count.
Is the ATSAM4S breakout board available for purchase? I understand VisualGDB is a plug-in for VS Studio.. but is Atmel Studio also based on Visual Studio (ex. VS Community)? Other than VS Code, which is based on the open source IDE, atom-Electron, anything Java/Visual Studio brings my computer to a crawl! Any thoughts on setting up emIDE, Eclipse or VSCode with GCC/LLVM and either the Atmel-ICE debugger or the J-Link Pro? I've had issues getting OpenOCD to do SWO/SWD, and ETM Trace functions. The Keil uVision IDE/compiler works great with Atmel-ICE (CMSIS-DAP) and the J-Link debugger, but it has a 32KB limit... could the GCC or LVMM compiler/makefile be used in the uVision?
I would like to know one thing. When debugging AVR chips using Atmel ICE,I noticed that whenever a delay occurs & I try to stepping over the delay,the debug session enters into the delay and the debug session gets hanged and I have to manually reset the session. But in your case,I can see that stepping over a delay is not causing the session to freeze/entering into the delay. How you managed to do that???Please reply!
Because of the way debugging works, things like delays will take a very long time. You will notice the same thing with for loops. I have not used the Atmel ICE for AVR, so I don't know this, but it may be even more pronounced than for ARM. However, one thing that has worked for me in the past is to place a break point immediately after the line that freezes, and hit "Continue". This usually skips the delay.
This was honestly a bit hard to learn. However, once you get the hang of it, it's not so bad. Let me know what you plan to use this for, and I'd be happy to offer advice!
Finally, a clear and thorough explanation of how to run a debugging session, thank you!
You are very welcome!
Best video on this so far!
I'm very glad I could help!
Continue these great series please!
That was a good debugging tutorial, thanks
Can you debug using jtag too? and what is the difference?
Good question! You can use JTAG as well, but I have never tried it with this chip. In general, SWD requires fewer pins, but JTAG is more widely supported beyond ARM architectures. I use SWD where possible for the lower pin count.
Thanks
Is the ATSAM4S breakout board available for purchase?
I understand VisualGDB is a plug-in for VS Studio.. but is Atmel Studio also based on Visual Studio (ex. VS Community)? Other than VS Code, which is based on the open source IDE, atom-Electron, anything Java/Visual Studio brings my computer to a crawl!
Any thoughts on setting up emIDE, Eclipse or VSCode with GCC/LLVM and either the Atmel-ICE debugger or the J-Link Pro? I've had issues getting OpenOCD to do SWO/SWD, and ETM Trace functions.
The Keil uVision IDE/compiler works great with Atmel-ICE (CMSIS-DAP) and the J-Link debugger, but it has a 32KB limit... could the GCC or LVMM compiler/makefile be used in the uVision?
I would like to know one thing.
When debugging AVR chips using Atmel ICE,I noticed that whenever a delay occurs & I try to stepping over the delay,the debug session enters into the delay and the debug session gets hanged and I have to manually reset the session.
But in your case,I can see that stepping over a delay is not causing the session to freeze/entering into the delay.
How you managed to do that???Please reply!
Because of the way debugging works, things like delays will take a very long time. You will notice the same thing with for loops. I have not used the Atmel ICE for AVR, so I don't know this, but it may be even more pronounced than for ARM. However, one thing that has worked for me in the past is to place a break point immediately after the line that freezes, and hit "Continue". This usually skips the delay.
I was using the break point/continue method as an alternative!!.Although,thanks for the reply....
Great Job! Will Arduino Leonardo work with the Atmel-ICE programmer also?
It will work!But you have to program/debug it from Atmel studio environment....Atmel ice can't debug from arduino environment!
Yes, thanks a lot. It works on my machine. I am using Atmel studio7
Why flash verify failed
Can you please elaborate? In the video, the flash verification did not fail, as otherwise I would not be able to step through the code.
Was this hard to learn?
This was honestly a bit hard to learn. However, once you get the hang of it, it's not so bad. Let me know what you plan to use this for, and I'd be happy to offer advice!
klass
Спасибо!