I bought an Arduino Nano ESP32 and I’m trying to upload a test sketch. The sketch is compiled but not uploaded. What am I doing wrong?
Cannot open DFU device 2341:0070 found on devnum 2 (LIBUSB_ERROR_NOT_FOUND)
No DFU capable USB device available
*** [upload] Error 74
======================================================= [FAILED] Took 75.00 seconds =======================================================
#include <Arduino.h>
// put function declarations here:
int myFunction(int, int);
void setup() {
Serial.begin(115200);
delay(100);
// put your setup code here, to run once:
int result = myFunction(2, 3);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.print("Hello: ");
delay(5000);
}
// put function definitions here:
int myFunction(int x, int y) {
return x + y;
}
platformio.ini:
[env:arduino_nano_esp32]
platform = espressif32
board = arduino_nano_esp32
framework = arduino
; change microcontroller
board_build.mcu = esp32s3
; change MCU frequency
board_build.f_cpu = 240000000L