VSCODE Arduino Can't select programmer

I've made a video tutorial on how to use Arduino + VSCODE for a better coding environment.

One of YouTube visitor asked why he can't select Arduino Programmer. 13:53 in the video
I did a bit experiment and found out that for ESP8266 & EPS32, you can't select Arduino Programmer. I'm not sure if this is a bug or Arduino extension intended. I then plugged a Arduino Nano, then the programmer shown correctly.

Here is how to solve the problem, if you are use ESP8266 or ESP32:
On the left hand side, click "arduino.json" to edit the file.

Add this line: "programmer":"arduino:avrisp", 

Example:
{
    "sketch": "ESP32-Robot-car\\ESP32-Robot-car.ino",
    "configuration": "CPUFreq=240,FlashMode=qio,FlashFreq=80",
    "board": "esp32:esp32:esp32cam",
    "port": "COM3",
    "programmer": "arduino:avrisp",
    "output": "../build"
}

Then this config the programmer for your boards. Hope this helped!

The End.



VSCODE + Arduino - 無法選擇 Programmer: AVISP

上方的VSCODE + Arduino 影片教學是之前的作的.  有網友詢問, 為何在 13:53 秒左右, 
影片中的 Select Programmer 時, 清單確是空的?

我後來試了發現 ESP8266/ESP32-S 真的不會出現 programmer list, 但是你改用 Nano, Mini Pro應該就會出現了. 

解決方法:
在左手邊的 arduino.json 自行加入 "programmer":"arduino:avrisp", 
範例:
{
    "sketch": "ESP32-Robot-car\\ESP32-Robot-car.ino",
    "configuration": "CPUFreq=240,FlashMode=qio,FlashFreq=80",
    "board": "esp32:esp32:esp32cam",
    "port": "COM3",
    "programmer": "arduino:avrisp",
    "output": "../build"
}

這樣子你就不用選擇 Arduino Programmer 了! 希望這樣能夠解決這個問題. 

Comments

Popular posts from this blog

Arduino - DFPlayer Mini MP3 Module

Android control color RGB LED using HC-05 Bluetooth with Arduino (Part I)

Arduino #27 AsyncWifimanager ElegantOTA ESP32 (WiFi Password Mgnt. + WiFi Firmware Update)