Hi there,
Ok , well I would hold up on posting other code. If you can’t get the Example to run(Animated Gif) your wasting your time and NOT learning anything from the experience only left with “Frustration” as manny go this path…
Do this;
(or check off what you have done and then proceed)
- Download ZIPs, Start with GifViewer_target.zip
- Extract it. (2 files) chimpwink.gif and the GifViewer_target.bin
- Make a Folder on the SD card (formatted Fat32) called gif.
- Copy the chimpwink.gif file to that directory on the SD card.
Place SD card into Round Display(set both switches OFF) - Download the ESP32 RF Test tool also Referred to on the Getting Started Xiao ESP32C3 Wiki
Install it. (EspRFTestTool_v3.6_Manual.zip) is the current version. This tool is GREAT and a MUST have for any ESP32 programing Shenanigans , you use it to (UPLOAD) the factory BIN (unBrick) or to Flash Production Bins.Testing BLE and WiFi also , but we will use it to put (my dev enviro Compiled GifViewer.bin) on your or Blank hardware. All things being equal it will run, doing two things for you, Verify your hardware is Good and The code you provided is correct. (pointing you to the only area that’s broken) Your dev enviro, BSP, LIB versions, etc… But Now you have a solid starting point.
Open The Tool, Navigate to the folder with the GifVeiwerTarget.bin file and select it Like the picture.
set com port etc. Click (START)
after it uploads , press the reset button on the Xiao. Make sure you open the Serial monitor to the same com port AFTER you upload flash.
NOTE: The tool will complain about the com port if you have an IDE serial monitor connected to the port(they don’t share nice). FYI.
Should see the gif load.
HTH
LMK
GLPJ
p.s. after the gif loads and it works, Repeat the file selection but pick the Depaul_target.bin Press (Start) note; you can leave the other file in there just uncheck the select only choosing the file you want to flash. after press Xiao Reset… Should get Clock face and act like the demo I posted above, serial output also. GO!