This repository contains information regarding how to setup VS Code(Any Text Editor Just few things will be different) for Embeded C Development.
- Setup a workspace in the directory you are writing the code.
- Press ctrl+shfit+p and select the option to Edit c_cpp_properties.json file.
- If the PORT commands are not recognised go to the defination of avr/io header file and the search the name of the board you want to use.
- Now Define the name give inside the curly parentheses in the header of your code. eg- 1. #ifndef AVR_ATmega8 #define AVR_ATmega8 #endif 2. #define AVR_ATmega8
- Now Copy paste your make file into the directory.
- Change the MakeFile config according to your builb.
- If you need the hex file then remove the burn part.
- After configuring the make file- ctrl+shift+p select Tasks:Configure Task Option.
Now-
a. remove whole options div.
b. remove all the args.
c. change the path inside "command" to "make".
d. change the lable to anything you like.
e. Now Run your app by selecting the option with the lable you have given. - OR simply run by putting make in terminal by navigating to the directory. You dont need to create a task. 10.Working on hexfile conversion.