esp

esphome

蓝牙代理

esp01s

rst cause:2, boot mode:(*,*) 错误意思

小智

MCP

clion

platformio

platformio

安装python

1
2
3
4
5
6
7
pip install platformio
pio settings get

# 查看环境变量platformio
pio system info
修改 PLATFORMIO_CORE_DIR 为自定义
PlatformIO Core Directory 就是自己想要的了

arduino教程

参考

esp32文档

Clion配置ESP32开发

CLion 安装 platformIO 教程

ESPAsyncWebServer

esp32更新 程序太大

下载慢问题 无法解决用vpn吧

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

~\.platformio\penv\pip.conf

[global]
user=no
timeout = 1000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

C:\Users\Administrator\.platformio\penv\Scripts\pio.exe project init --board airm2m_core_esp32c3
pio project init --board esp01_1m

命令下载

1
pio project init --board airm2m_core_esp32c3

esp32 c3

风扇参考

pwm问题 pwm问题1

mcpwm

ESP-01S(ESP8266)

烧录

GPIO0 拉地(接地 负极)

无法深度睡眠下唤醒

存储芯片的问题 小点旁边[小点2引脚](第二个 [DO MISO SD_D0]) 10k(电阻) vcc(电源正) 参考1

参考 参考 参考

参考 使用USB转TTL下载固件

「 ESP8266-01s刷入固件报SP8266 Chip efuse check error esp_check_mac_and_efuse」

esptool –port COM6 write_flash 0x00000

睡眠

参考1 参考2 参考3

platformio

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#include <Arduino.h>

void setup()
{
    Serial.begin(115200);
    pinMode(2,OUTPUT); //初始化GPIO2为输出模式
}

void loop()
{
    digitalWrite(2,HIGH); //GPIO2输出高电平
    delay(500);
    digitalWrite(2,LOW); //GPIO2输出低电平
    delay(500);

    Serial.printf("getFlashChipId  %u \n", EspClass::getFlashChipId());
    Serial.printf("getFlashChipVendorId  %hhu \n", EspClass::getFlashChipVendorId());
    Serial.printf("getFlashChipRealSize  %hhu \n", EspClass::getFlashChipRealSize());
}
1
2
3
4
5
6
[env:esp01_1m]
platform = espressif8266
board = esp01_1m
framework = arduino
;monitor_speed = 115200
monitor_speed = 74880