Reading the Makefile gave me a few clues when setting up this repository for files that should be included and preprocessor definitions. Hovering over the settings labels (the blue text) will give a description popup. ![]() If you run into issues with the Intellisense not working correctly or some other issues be sure to check the settings in c_cpp_properties.json, you may need to add some more directories to your includePath or add a preprocessor definition in the defines setting. Open openocd.cfg and change the chipname, line 6.Should be the part number of the microcontroller you are using. Open ‘launch.json and change svdFile, line 14, to point to the file for your microcontroller.Open c_cpp_properties.json and change _SAMC21J18A_ in the defines section, line 30, to the microcontroller you are using.Start VSC and open the repository folder.Replace the files in the GitHub repository with the new files.Just right click or open with your Archive Manager and unzip the file just like it is a. Generated code from Atmel Start will have a file extension of.Export Project and be sure to select the option to generate a gcc Makefile.Optional – configure your peripherals and driver software.Select your development board or microcontroller.Check the VSC documentation to learn how to use the VSC debugger. Your code will be uploaded to the development board and you can run by clicking the play button that appeared in the top center of your screen. ![]() Use the shortcut key F5 to start the debugger. This is the same as if you type make or make clean in a terminal. Select the clean task to remove previously compiled files. Use the keyboard shortcut ctrl-shift-b and then select the build task to compile the code. I have a simple blink sketch with the main clock set to 24MHz in there right now using direct register commands. These files are used by the Cortex-Debug extension.Įdit main.c with your application code. For the CMIS-SVD files I downloaded them from the Microchip Packs Repository. I then exported the blank project and made sure to enable the generation of a Makefile. I created a new project and selected the SAM C21 Xplained Pro on the device selection page. The code in the GitHub repository is based on code generated by Atmel Start.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |