Skip to content

Problem building a sketch file for esp32s3 at OpenBSD using the package makeesparduino. #210

@DebugBSD

Description

@DebugBSD

Hi, good afternoon!

I've a problem trying to build & upload a simple hello world using the package makespaerduino in OpenBSD -CURRENT.

The problem comes when I try to use a ESP32-S3-DevKitC-1 which is supposed to be supported by the package or at least, that device is shown by the gmake list_boards (which I show you at the end of this issue).

I've written a Makefile according to the documentation and I show you the contents of the file next:

debugg@patan: [~/Projects/Arduino/ESP32/HelloWorld]$ cat Makefile                                            

BOARD = esp32s3
CHIP = esp32
UPLOAD_PORT=/dev/ttyU0

include /usr/local/share/makeEspArduino/makeEspArduino.mk

Next I attach you the source code of main.ino which is just a couple of calls to Serial:

void setup() {
    // put your setup code here, to run once:
    Serial.begin(9600);
}

void loop() {
    // put your main code here, to run repeatedly:
    Serial.println("Hello World!");
    delay(500);
}

With all those files, when I type gmake (in OpenBSD as any other BSD operating system, there is a difference between GNU Make and BSD Make so, in OpenBSD I've to use the GNU Make with gmake), the output is the next one:

debugg@patan: [~/Projects/Arduino/ESP32/HelloWorld]$ gmake
- Finding all involved files for the build ...
- Parsing Arduino configuration files ...
HardwareSerial.cpp
Tone.cpp
/bin/sh: /usr/local/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++: not found
gmake: *** [/usr/local/share/makeEspArduino/makeEspArduino.mk:274: /tmp/mkESP/main_esp32s3/HardwareSerial.cpp.o] Error 127
gmake: *** Se espera a que terminen otras tareas....
/bin/sh: /usr/local/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++: not found
gmake: *** [/usr/local/share/makeEspArduino/makeEspArduino.mk:274: /tmp/mkESP/main_esp32s3/Tone.cpp.o] Error 127
debugg@patan: [~/Projects/Arduino/ESP32/HelloWorld]$

NOTE: I tried just with esp32 in the BOARD and CHIP environment variables but, after building the software it gives me the next error when I try to upload the firmware into the device:

debugg@patan: [~/Projects/Arduino/ESP32/HelloWorld]$ gmake
- Finding all involved files for the build ...
- Parsing Arduino configuration files ...
HardwareSerial.cpp
Tone.cpp
WString.cpp
esp32-hal-adc.c
esp32-hal-cpu.c
esp32-hal-gpio.c
esp32-hal-i2c-slave.c
esp32-hal-misc.c
esp32-hal-rgb-led.c
esp32-hal-timer.c
esp32-hal-tinyusb.c
esp32-hal-uart.c
cdecode.c
cencode.c
stdlib_noniso.c
Esp.cpp
HWCDC.cpp
IPAddress.cpp
MD5Builder.cpp
USB.cpp
USBCDC.cpp
WMath.cpp
esp32-hal-dac.c
esp32-hal-i2c.c
esp32-hal-ledc.c
main.cpp
esp32-hal-matrix.c
esp32-hal-psram.c
esp32-hal-rmt.c
esp32-hal-sigmadelta.c
esp32-hal-spi.c
esp32-hal-time.c
esp32-hal-touch.c
FirmwareMSC.cpp
Print.cpp
FunctionalInterrupt.cpp
IPv6Address.cpp
Stream.cpp
StreamString.cpp
USBMSC.cpp
base64.cpp
cbuf.cpp
esp32-hal-bt.c
firmware_msc_fat.c
wiring_pulse.c
wiring_shift.c
main.ino.cpp
Creating core archive
Creating object archive
Linking /tmp/mkESP/main_esp32/main.bin
  Versions: Unknown, esp32
esptool.py v4.9.0
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.

Memory summary
  RAM:    16348 bytes
  Flash: 238069 bytes

Flash size: 4MB (32Mb)

Build complete. Elapsed time: 14 seconds

debugg@patan: [~/Projects/Arduino/ESP32/HelloWorld]$ gmake upload
=== Using upload port: /dev/ttyU0 @ 921600
esptool.py v4.9.0
Serial port /dev/ttyU0
Connecting...
Failed to get PID of a device on /dev/ttyU0, using standard reset sequence.
..

A fatal error occurred: This chip is ESP32-S3, not ESP32. Wrong --chip argument?
gmake: *** [/usr/local/share/makeEspArduino/makeEspArduino.mk:332: upload] Error 2

Next I show you the output of gmake list_boards

debugg@patan: [~/Projects/Arduino/ESP32/HelloWorld]$ gmake list_boards 
=== Available boards ===
esp32s3              ESP32S3 Dev Module
esp32c3              ESP32C3 Dev Module
esp32s2              ESP32S2 Dev Module
esp32                ESP32 Dev Module
esp32da              ESP32-WROOM-DA Module
esp32wrover          ESP32 Wrover Module
pico32               ESP32 PICO-D4
esp32s3box           ESP32-S3-Box
esp32s3usbotg        ESP32-S3-USB-OTG
esp32s3camlcd        ESP32S3 CAM LCD
esp32s2usb           ESP32S2 Native USB
esp32wroverkit       ESP32 Wrover Kit (all versions)
tinypico             UM TinyPICO
feathers2            UM FeatherS2
feathers2neo         UM FeatherS2 Neo
tinys2               UM TinyS2
rmp                  UM RMP
tinys3               UM TinyS3
pros3                UM PROS3
feathers3            UM FeatherS3
S_ODI_Ultra          S.ODI Ultra v1
micros2              microS2
magicbit             MagicBit
turta_iot_node       Turta IoT Node
ttgo-lora32          TTGO LoRa32-OLED
ttgo-t1              TTGO T1
ttgo-t7-v13-mini32   TTGO T7 V1.3 Mini32
ttgo-t7-v14-mini32   TTGO T7 V1.4 Mini32
ttgo-t-oi-plus       TTGO T-OI PLUS RISC-V ESP32-C3
cw02                 XinaBox CW02
esp32thing           SparkFun ESP32 Thing
esp32thing_plus      SparkFun ESP32 Thing Plus
sparkfun_esp32s2_thing_plus SparkFun ESP32-S2 Thing Plus
esp32micromod        SparkFun ESP32 MicroMod
sparkfun_lora_gateway_1-channel SparkFun LoRa Gateway 1-Channel
nina_w10             u-blox NINA-W10 series (ESP32)
widora-air           Widora AIR
esp320               Electronic SweetPeas - ESP320
nano32               Nano32
d32                  LOLIN D32
d32_pro              LOLIN D32 PRO
lolin_c3_mini        LOLIN C3 Mini
lolin_s2_mini        LOLIN S2 Mini
lolin_s2_pico        LOLIN S2 PICO
lolin32              WEMOS LOLIN32
lolin32-lite         WEMOS LOLIN32 Lite
pocket_32            Dongsen Tech Pocket 32
WeMosBat             WeMos WiFi&Bluetooth Battery
espea32              ESPea32
quantum              Noduino Quantum
node32s              Node32s
hornbill32dev        Hornbill ESP32 Dev
hornbill32minima     Hornbill ESP32 Minima
dfrobot_beetle_esp32c3 DFRobot Beetle ESP32-C3
dfrobot_firebeetle2_esp32s3 DFRobot Firebeetle 2 ESP32-S3
firebeetle32         FireBeetle-ESP32
intorobot-fig        IntoRobot Fig
onehorse32dev        Onehorse ESP32 Dev Module
featheresp32         Adafruit ESP32 Feather
adafruit_metro_esp32s2 Adafruit Metro ESP32-S2
adafruit_magtag29_esp32s2 Adafruit MagTag 2.9"
adafruit_funhouse_esp32s2 Adafruit FunHouse
adafruit_feather_esp32s2 Adafruit Feather ESP32-S2
adafruit_feather_esp32s2_tft Adafruit Feather ESP32-S2 TFT
adafruit_qtpy_esp32s2 Adafruit QT Py ESP32-S2
adafruit_qtpy_esp32c3 Adafruit QT Py ESP32-C3
adafruit_qtpy_esp32_pico Adafruit QT Py ESP32
adafruit_feather_esp32_v2 Adafruit Feather ESP32 V2
adafruit_feather_esp32s3 Adafruit Feather ESP32-S3 2MB PSRAM
adafruit_feather_esp32s3_nopsram Adafruit Feather ESP32-S3 No PSRAM
adafruit_feather_esp32s3_tft Adafruit Feather ESP32-S3 TFT
adafruit_qtpy_esp32s3_nopsram Adafruit QT Py ESP32-S3 No PSRAM
nodemcu-32s          NodeMCU-32S
mhetesp32devkit      MH ET LIVE ESP32DevKIT
mhetesp32minikit     MH ET LIVE ESP32MiniKit
esp32vn-iot-uno      ESP32vn IoT Uno
esp32doit-devkit-v1  DOIT ESP32 DEVKIT V1
esp32doit-espduino   DOIT ESPduino32
esp32-evb            OLIMEX ESP32-EVB
esp32-gateway        OLIMEX ESP32-GATEWAY
esp32-poe            OLIMEX ESP32-PoE
esp32-poe-iso        OLIMEX ESP32-PoE-ISO
esp32-DevKitLipo     OLIMEX ESP32-DevKit-LiPo
espino32             ThaiEasyElec's ESPino32
m5stack-core-esp32   M5Stack-Core-ESP32
m5stack-fire         M5Stack-FIRE
m5stick-c            M5Stick-C
m5stack-atom         M5Stack-ATOM
m5stack-core2        M5Stack-Core2
m5stack-timer-cam    M5Stack-Timer-CAM
m5stack-coreink      M5Stack-CoreInk
odroid_esp32         ODROID ESP32
heltec_wifi_kit_32   Heltec WiFi Kit 32
heltec_wifi_lora_32  Heltec WiFi LoRa 32
heltec_wifi_lora_32_V2 Heltec WiFi LoRa 32(V2)
heltec_wireless_stick Heltec Wireless Stick
heltec_wireless_stick_lite Heltec Wireless Stick Lite
espectro32           ESPectro32
CoreESP32            Microduino-CoreESP32
alksesp32            ALKS ESP32
wipy3                WiPy 3.0
wt32-eth01           WT32-ETH01 Ethernet Module
bpi-bit              BPI-BIT
wesp32               Silicognition wESP32
t-beam               T-Beam
d-duino-32           D-duino-32
lopy                 LoPy
lopy4                LoPy4
oroca_edubot         OROCA EduBot
fm-devkit            ESP32 FM DevKit
frogboard            Frog Board ESP32
esp32cam             AI Thinker ESP32-CAM
twatch               TTGO T-Watch
d1_mini32            WEMOS D1 MINI ESP32
d1_uno32             WEMOS D1 R32
gpy                  Pycom GPy
vintlabs-devkit-v1   VintLabs ESP32 Devkit
honeylemon           HONEYLemon
mgbot-iotik32a       MGBOT IOTIK 32A
mgbot-iotik32b       MGBOT IOTIK 32B
piranha_esp-32       Piranha ESP-32
metro_esp-32         Metro ESP-32
sensesiot_weizen     Senses's WEIZEN
kits-edu             KITS ESP32 EDU
mPython              Labplus mPython
OpenKB               INEX OpenKB
wifiduino32          WiFiduino32
imbrios-logsens-v1p1 IMBRIOS LOGSENS_V1P1
healthypi4           ProtoCentral HealthyPi 4
ET-Board             ET-Board
ch_denky             Denky
uPesy_wrover         uPesy ESP32 Wrover DevKit
uPesy_wroom          uPesy ESP32 Wroom DevKit
kb32                 KB32-FT
deneyapkart          Deneyap Kart
esp32-trueverit-iot-driver Trueverit ESP32 Universal IoT Driver
esp32-trueverit-iot-driver-mkii Trueverit ESP32 Universal IoT Driver MK II
atmegazero_esp32s2   ATMegaZero ESP32-S2
deneyapmini          Deneyap Mini
franzininho_wifi_esp32s2 Franzininho WiFi
franzininho_wifi_msc_esp32s2 Franzininho WiFi MSC
dpu_esp32            DPU ESP32
sonoff_dualr3        Sonoff DUALR3
lionbit              Lion:Bit Dev Board
watchy               Watchy
deneyapkart1A        Deneyap Kart 1A
AirM2M_CORE_ESP32C3  AirM2M_CORE_ESP32C3
XIAO_ESP32C3         XIAO_ESP32C3
connaxio_espoir      Connaxio's Espoir
aw2eth               CNRS AW2ETH

Can anyone help me with this problem?
Thank you so much in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions