Це відео не доступне.
Перепрошуємо.
Atmel Studio Programming and Debugging
Вставка
- Опубліковано 17 сер 2024
- This video shows how to program a microcontroller using the Atmel-ICE programmer and how to debug your application. Table of contents below:
00:00 - Introduction
00:17 - Hardware interface
01:48 - Breakpoints
02:12 - Configuration for debugging
02:56 - Programming the microcontroller
03:13 - Step over
04:36 - Step into
05:46 - Step out
06:29 - Conditional breakpoints
07:21 - IO viewer
09:03 - Conclusion
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
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?
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
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
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....
klass
Спасибо!
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!
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.