Note that when using Atmel Studio, you need to create an Atmel Studio project that uses an auto-generated makefile instead of our own makefiles. To do this, add each file to the project as a link (this includes all files in lib-common that your program uses): Currently, to include other header and source files, you will have to manually link each and every one. If the program isn’t running as expected, it may be due to compiler optmizations.Ĭreate a new project for the program you want to debug. Some notes: You may need to run Atmel Studio as administrator to get programs to compile and build. When prompted, toggle the power (remove and reinsert vcc) to set the fuses. If you do not disable debugWire, the board will not work with normal programmers. You should disable the debugWire and close by going to the ‘debug’ heading. When you are done with your debugging, always remember to disable debugWire mode by changing the interface to ISP (and clicking Apply). You must change the interface to use ‘debugWire’ instead of ISP. When programming, you must first setup and check everything is detected by going to ‘Tools > Device Programming’. You will need to install ‘Atmel Studio’ (Windows only): Note that setting breakpoints and inspecting variables only works if you use the Atmel ICE board instead of the normal programmers. Using the Atmel ICE debugging board, we can step through and debug programs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |