Follow these steps to run the code on each individual MCU:
- Open the
arduino.json
file in your project directory. - Locate the section for the specific MCU you want to run the code on.
- Set the necessary values in the
arduino.json
file according to the requirements of your MCU. This may include specifying the board type, baud rate, and other configuration options. - Save the
arduino.json
file.
- Open the
c_cpp_properties.json
file in your project directory. - Look for the configuration that corresponds to the board you want to flash the code onto.
- Ensure that the necessary compiler and linker settings are correctly configured for your MCU.
Note: This may be able to be done by clicking on the "Show Board Config" option on the bottom bar of the VSCode window.
- Open the Arduino IDE (VSCode Arduino Extension has been experiencing some flashing issues).
- Connect the MCU to your computer using a USB cable.
- Select the correct board type from the "Tools" menu in the Arduino IDE.
- Choose the correct serial port for your MCU from the "Tools" menu.
- Click on the "Upload" button in the Arduino IDE to flash the code onto the MCU.