如何为ESP32-SOLO-1配置PlatformIO?

时间:2019-09-10 00:21:51

标签: esp32 platformio

我有一个简单的led闪烁示例,我试图在ESP32-SOLO-1上运行,但是一旦我用程序对其进行闪烁,就会从串行监视器收到以下消息:

E (102) cpu_start: Running on single core chip, but application is built with dual core support.
E (102) cpu_start: Please enable CONFIG_FREERTOS_UNICORE option in menuconfig.
abort() was called at PC 0x400829d2 on core 0

这是代码

#include <Arduino.h>
#define LED_BUILTIN 2

void setup()
{
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop()
{
  digitalWrite(LED_BUILTIN, HIGH);
  delay(1000);
  digitalWrite(LED_BUILTIN, LOW);
  delay(1000);
}

platformio.ini配置:

[env:esp-wrover-kit]
platform = espressif32
board = esp-wrover-kit
monitor_speed = 115200
framework = arduino
build_flags = -D  CONFIG_FREERTOS_UNICORE

添加构建标记CONFIG_FREERTOS_UNICORE无效。

0 个答案:

没有答案