You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is anyone able to guide me to create my own custom board variant, my custom ESP32-S3 board uses an CP2102N to program it, and I think that's the issue.
This is the error I get when trying to upload code using the variant files I made:
In file included from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/HardwareSerial.h:53,
from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/Arduino.h:184,
from C:\Users\AppData\Local\Temp\arduino\sketches\9430DD51CDD3329B904117317710C7FB\sketch\Sketch_01.2_Blink.ino.cpp:1:
C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/HWCDC.h:101:21: error: #if with no expression
#if ARDUINO_USB_MODE
^
In file included from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/Arduino.h:184,
from C:\Users\AppData\Local\Temp\arduino\sketches\9430DD51CDD3329B904117317710C7FB\sketch\Sketch_01.2_Blink.ino.cpp:1:
C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/HardwareSerial.h:199:54: error: #if with no expression
#if ARDUINO_USB_CDC_ON_BOOT //Serial used for USB CDC
^
I think the error has to do with me using the CP2102N to programme the ESP32 S3, I currently don't want to use OTG, so no need for the tinyusb bootloader
Also I don't think I need the variant.cpp file for this board for now.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Is anyone able to guide me to create my own custom board variant, my custom ESP32-S3 board uses an CP2102N to program it, and I think that's the issue.
This is the error I get when trying to upload code using the variant files I made:
In file included from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/HardwareSerial.h:53,
from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/Arduino.h:184,
from C:\Users\AppData\Local\Temp\arduino\sketches\9430DD51CDD3329B904117317710C7FB\sketch\Sketch_01.2_Blink.ino.cpp:1:
C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/HWCDC.h:101:21: error: #if with no expression
#if ARDUINO_USB_MODE
^
In file included from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/Arduino.h:184,
from C:\Users\AppData\Local\Temp\arduino\sketches\9430DD51CDD3329B904117317710C7FB\sketch\Sketch_01.2_Blink.ino.cpp:1:
C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/HardwareSerial.h:199:54: error: #if with no expression
#if ARDUINO_USB_CDC_ON_BOOT //Serial used for USB CDC
^
exit status 1
Compilation error: exit status 1
This is the pins_arduino.h file:
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#define EXTERNAL_NUM_INTERRUPTS 46
#define NUM_DIGITAL_PINS 48
#define NUM_ANALOG_INPUTS 20
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
#define digitalPinHasPWM(p) (p < 46)
static const uint8_t TX = 43;
static const uint8_t RX = 44;
#define TX1 TX
#define RX1 RX
static const uint8_t SDA = 2;
static const uint8_t SCL = 3;
static const uint8_t SS = 36;
static const uint8_t MOSI = 35;
static const uint8_t MISO = 34;
static const uint8_t SCK = 33;
static const uint8_t RGB_PIN = 38; // RGB LED Pin
static const uint8_t RF_SWITCH = 37; // RF switch Pin
static const uint8_t LDR_PIN = 17; // LDR Pin
#endif /* Pins_Arduino_h */
This is the boards.txt entry:
aventen_s3_sync.name=Aventen S3 Sync
aventen_s3_sync.upload.tool=esptool_py
aventen_s3_sync.upload.maximum_size=16777216
aventen_s3_sync.upload.maximum_data_size=327680
aventen_s3_sync.upload.speed=921600
aventen_s3_sync.serial.disableDTR=false
aventen_s3_sync.serial.disableRTS=false
aventen_s3_sync.build.tarch=xtensa
aventen_s3_sync.build.target=esp32s3
aventen_s3_sync.build.mcu=esp32s3
aventen_s3_sync.build.core=esp32
aventen_s3_sync.build.variant=aventen_s3_sync
aventen_s3_sync.build.board=AVENTEN_S3_SYNC
aventen_s3_sync.build.f_cpu=240000000L
aventen_s3_sync.build.flash_size=16MB
aventen_s3_sync.build.flash_freq=80m
aventen_s3_sync.build.flash_mode=dio
aventen_s3_sync.build.boot=dio
aventen_s3_sync.build.partitions=default
aventen_s3_sync.build.defines=-DBOARD_HAS_PSRAM
aventen_s3_sync.menu.PSRAM.enabled=Enabled
aventen_s3_sync.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM
aventen_s3_sync.menu.PSRAM.disabled=Disabled
aventen_s3_sync.menu.PartitionScheme.default=Default
aventen_s3_sync.menu.PartitionScheme.default.build.partitions=default
aventen_s3_sync.menu.DebugLevel.none=None
aventen_s3_sync.menu.DebugLevel.none.build.code_debug=0
aventen_s3_sync.menu.EraseFlash.none=Disabled
aventen_s3_sync.menu.EraseFlash.none.upload.erase_cmd=
aventen_s3_sync.menu.EraseFlash.all=Enabled
aventen_s3_sync.menu.EraseFlash.all.upload.erase_cmd=-e
(boards.txt entry)
I think the error has to do with me using the CP2102N to programme the ESP32 S3, I currently don't want to use OTG, so no need for the tinyusb bootloader
Also I don't think I need the variant.cpp file for this board for now.
Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions