unable to upload neopixel code to the adafruit QT PY ESP32-C3

This is a special forum devoted to educators using Adafruit and Arduino products for teaching.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Post Reply
User avatar
MishalJasmine
 
Posts: 12
Joined: Wed Jan 22, 2025 6:39 am

unable to upload neopixel code to the adafruit QT PY ESP32-C3

Post by MishalJasmine »

board: Adafruit QT PY ESP32-C3
Arduino IDE version : arduino IDE 2.3.4

I followed the steps as mentioned https://cdn-learn.adafruit.com/download ... -board.pdf. But while uploading the neopixel example, its giving me an error.

Code: Select all

loading library from c:\Users\user\Documents\Arduino\libraries\user_tinygsr: invalid library: no header files found
FQBN: espressif:esp32:adafruit_qtpy_esp32c3
Using board 'adafruit_qtpy_esp32c3' from platform in folder: C:\Users\user\Documents\Arduino\hardware\espressif\esp32
Using core 'esp32' from platform in folder: C:\Users\user\Documents\Arduino\hardware\espressif\esp32

cmd /c if exist "C:\\Users\\user\\AppData\\Local\\Temp\\.arduinoIDE-unsaved2025030-2908-1nyvh46.066vg\\sketch_jan30a\\partitions.csv" COPY /y "C:\\Users\\user\\AppData\\Local\\Temp\\.arduinoIDE-unsaved2025030-2908-1nyvh46.066vg\\sketch_jan30a\\partitions.csv" "C:\\Users\\user\\AppData\\Local\\arduino\\sketches\\FBFF06F9553862E3A095B19ADAEB73B5\\partitions.csv"
cmd /c if not exist "C:\\Users\\user\\AppData\\Local\\arduino\\sketches\\FBFF06F9553862E3A095B19ADAEB73B5\\partitions.csv" if exist "C:\\Users\\user\\Documents\\Arduino\\hardware\\espressif\\esp32\\variants\\adafruit_qtpy_esp32c3\\partitions.csv" COPY "C:\\Users\\user\\Documents\\Arduino\\hardware\\espressif\\esp32\\variants\\adafruit_qtpy_esp32c3\\partitions.csv" "C:\\Users\\user\\AppData\\Local\\arduino\\sketches\\FBFF06F9553862E3A095B19ADAEB73B5\\partitions.csv"
cmd /c if not exist "C:\\Users\\user\\AppData\\Local\\arduino\\sketches\\FBFF06F9553862E3A095B19ADAEB73B5\\partitions.csv" COPY "C:\\Users\\user\\Documents\\Arduino\\hardware\\espressif\\esp32\\tools\\partitions\\default.csv" "C:\\Users\\user\\AppData\\Local\\arduino\\sketches\\FBFF06F9553862E3A095B19ADAEB73B5\\partitions.csv"
cmd /c IF EXIST "C:\\Users\\user\\AppData\\Local\\Temp\\.arduinoIDE-unsaved2025030-2908-1nyvh46.066vg\\sketch_jan30a\\bootloader.bin" ( COPY /y "C:\\Users\\user\\AppData\\Local\\Temp\\.arduinoIDE-unsaved2025030-2908-1nyvh46.066vg\\sketch_jan30a\\bootloader.bin" "C:\\Users\\user\\AppData\\Local\\arduino\\sketches\\FBFF06F9553862E3A095B19ADAEB73B5\\sketch_jan30a.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\\Users\\user\\Documents\\Arduino\\hardware\\espressif\\esp32\\variants\\adafruit_qtpy_esp32c3\\bootloader.bin" ( COPY "C:\\Users\\user\\Documents\\Arduino\\hardware\\espressif\\esp32\\variants\\adafruit_qtpy_esp32c3\\bootloader.bin" "C:\\Users\\user\\AppData\\Local\\arduino\\sketches\\FBFF06F9553862E3A095B19ADAEB73B5\\sketch_jan30a.ino.bootloader.bin" ) ELSE ( "C:\\Users\\user\\Documents\\Arduino\\hardware\\espressif\\esp32/tools/esptool\\esptool.exe" --chip esp32c3 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB -o "C:\\Users\\user\\AppData\\Local\\arduino\\sketches\\FBFF06F9553862E3A095B19ADAEB73B5\\sketch_jan30a.ino.bootloader.bin" "C:\\Users\\user\\Documents\\Arduino\\hardware\\espressif\\esp32\\tools\\esp32-arduino-libs\\esp32c3\\bin\\bootloader_qio_80m.elf" ) )
The system cannot find the path specified.
exit status 1

Compilation error: exit status 1

User avatar
adafruit_support_carter
 
Posts: 31710
Joined: Tue Nov 29, 2016 2:45 pm

Re: unable to upload neopixel code to the adafruit QT PY ESP32-C3

Post by adafruit_support_carter »

Can't recreate the issue locally. Example compiles fine:
Screenshot from 2025-01-30 10-04-46.png
Screenshot from 2025-01-30 10-04-46.png (108.2 KiB) Viewed 54 times
Also not sure where this first line in your output is coming from:

Code: Select all

loading library from c:\Users\user\Documents\Arduino\libraries\user_tinygsr: invalid library: no header files found
What is that library?

User avatar
MishalJasmine
 
Posts: 12
Joined: Wed Jan 22, 2025 6:39 am

Re: unable to upload neopixel code to the adafruit QT PY ESP32-C3

Post by MishalJasmine »

I was checking the path that is mentioned in the error message. There is no esp32c3 folder under tools

The library error is probably from another example code that I was trying to run. When closed the previous sketch and tried the neopixel example again, the library error was not there.
Attachments
Capture.JPG
Capture.JPG (33.44 KiB) Viewed 49 times

User avatar
MishalJasmine
 
Posts: 12
Joined: Wed Jan 22, 2025 6:39 am

Re: unable to upload neopixel code to the adafruit QT PY ESP32-C3

Post by MishalJasmine »

The documentation says to select the board in the following manner

ESP32 Arduino (in Sketchbook) -> Adafruit QT PY ESP32-C3.

Instead I selected the board this way,

esp32 -> Adafruit QT PY ESP32-C3.

Now its working fine.

User avatar
MishalJasmine
 
Posts: 12
Joined: Wed Jan 22, 2025 6:39 am

Re: unable to upload neopixel code to the adafruit QT PY ESP32-C3

Post by MishalJasmine »

My aim is to inferface adafruit QT PY ESP32-C3 with a sensor using SPI. Now that I am able to achieve running a basic example, I will begin with SPI now. Is there any reference for the same?

User avatar
adafruit_support_carter
 
Posts: 31710
Joined: Tue Nov 29, 2016 2:45 pm

Re: unable to upload neopixel code to the adafruit QT PY ESP32-C3

Post by adafruit_support_carter »

SPI is a general thing, not really specific to the QT PY ESP32-C3. You do want to take a look at the QT PY ESP32-C3 pinout page:
https://learn.adafruit.com/adafruit-qt- ... rd/pinouts
to know where the SPI pins are on the QT PY to determine how to connect to the sensor.

But beyond that, things are general. Look for code examples for whatever the SPI sensor is.

Post Reply
Please be positive and constructive with your questions and comments.

Return to “For Educators”