Це відео не доступне.
Перепрошуємо.

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

КОМЕНТАРІ • 22

  • @natecottrell2588
    @natecottrell2588 Рік тому +2

    Finally, a clear and thorough explanation of how to run a debugging session, thank you!

  • @SimeonFrank
    @SimeonFrank 3 роки тому +1

    Best video on this so far!

  • @konturgestalter
    @konturgestalter 7 років тому +1

    Continue these great series please!

  • @keitholiver3981
    @keitholiver3981 5 років тому

    That was a good debugging tutorial, thanks

  • @bennguyen1313
    @bennguyen1313 5 років тому

    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?

  • @ahmedejaz1125
    @ahmedejaz1125 2 роки тому +1

    Can you debug using jtag too? and what is the difference?

    • @IlyaMikhelson
      @IlyaMikhelson  2 роки тому +1

      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.

    • @ahmedejaz1125
      @ahmedejaz1125 Рік тому

      Thanks

  • @vt.y7668
    @vt.y7668 6 років тому

    Great Job! Will Arduino Leonardo work with the Atmel-ICE programmer also?

    • @electronicsunleashed4112
      @electronicsunleashed4112 6 років тому

      It will work!But you have to program/debug it from Atmel studio environment....Atmel ice can't debug from arduino environment!

    • @vt.y7668
      @vt.y7668 6 років тому

      Yes, thanks a lot. It works on my machine. I am using Atmel studio7

  • @electronicsunleashed4112
    @electronicsunleashed4112 6 років тому

    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!

    • @IlyaMikhelson
      @IlyaMikhelson  6 років тому

      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.

    • @electronicsunleashed4112
      @electronicsunleashed4112 6 років тому

      I was using the break point/continue method as an alternative!!.Although,thanks for the reply....

  • @avr_stm_pro2955
    @avr_stm_pro2955 3 роки тому +1

    klass

  • @InventionTherapy
    @InventionTherapy 7 років тому

    Was this hard to learn?

    • @IlyaMikhelson
      @IlyaMikhelson  7 років тому

      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!

  • @user-xp1hp6ie6v
    @user-xp1hp6ie6v 2 роки тому

    Why flash verify failed

    • @IlyaMikhelson
      @IlyaMikhelson  2 роки тому

      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.