Need Help Exporting to Arduino - TFT_eSPI

I’m evaluating SquareLine_Studio for Mac for some of our projects which are all based in an ESP32 MCU with 3.5" TFT_SPI capacitive touch screens. I have been trying to following tutorial #6 by exporting the Smart_Gadget example code to an arduino board. I have tried the Arduino with TFT_eSPI versions 1.0.0 through 2.0.0 and get the same errors with everything. I have set my export root path and UI Export paths to ~/Projects/SquareLine/Smart_Gadget after selecting them in the window and each attempt results in the following error:

Downloading missing Board binary
Project Export in progress
<color=#55FF55> Downloading missing Board binary
Project Export failed: System.IO.FileNotFoundException: Could not find file “/Users/t.j.corcoran/SquareLine/boards/Arduino/arduino_tft_espi_v2_0_0/arduino_tft_espi.zip”
File name: ‘/Users/t.j.corcoran/SquareLine/boards/Arduino/arduino_tft_espi_v2_0_0/arduino_tft_espi.zip’
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <06094a8353e64785a1618c104ebf50c1>:0
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <06094a8353e64785a1618c104ebf50c1>:0
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean useAsync) [0x00000] in <06094a8353e64785a1618c104ebf50c1>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream…ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
at System.IO.Compression.ZipFile.Open (System.String archiveFileName, System.IO.Compression.ZipArchiveMode mode, System.Text.Encoding entryNameEncoding) [0x00037] in <703ae9bab6484b32a9a052c85c0e1419>:0
at ĩĩĪĩĩĪĪĩĩĪĪĪĪĩĪĪĪĪĩĩĩĩĪĪĪĪĪĩĩĪĪĩĪĪĩĩĩĪĩĪĩĪĩĩĩĩĪ.ĩĪĪĪĩĪĪĩĩĩĪĩĪĩĪĩĩĩĪĪĪĩĩĩĪĩĪĪĪĪĪĩĩĪĪĪĪĩĩĩĪĩĪĪĪĩĩ (System.String ĩĩĩĩĪĩĩĩĩĪĩĩĪĩĪĪĩĪĪĪĪĩĩĩĩĩĪĪĩĪĩĩĪĩĩĩĪĪĩĪĩĪĪĩĪĪĪ, System.String ĩĪĪĪĪĪĩĩĪĪĪĩĩĩĪĩĪĩĪĩĩĩĩĪĩĪĪĪĪĩĪĪĪĩĪĪĪĪĪĩĩĪĩĪĩĪĪ) [0x0000e] in <97510392bc5a4243930af3757c9243ba>:0
at ĩĩĪĩĩĪĪĩĩĪĪĪĪĩĪĪĪĪĩĩĩĩĪĪĪĪĪĩĩĪĪĩĪĪĩĩĩĪĩĪĩĪĩĩĩĩĪ.ĪĩĪĪĪĩĩĪĩĩĪĪĩĪĩĪĩĪĪĩĪĪĪĪĩĪĪĪĩĩĩĩĪĩĪĪĪĪĪĩĪĩĪĩĪĪĪ (System.String ĪĪĪĪĩĩĩĩĪĩĩĪĪĩĩĩĪĩĩĩĪĪĩĪĪĩĩĩĪĩĩĪĩĩĪĪĩĩĩĩĩĪĩĪĩĪĪ) [0x0009d] in <97510392bc5a4243930af3757c9243ba>:0
at MenuLine+ĪĪĪĩĪĩĩĩĩĩĪĩĩĩĩĩĪĩĩĪĪĩĪĪĪĪĩĩĪĪĪĩĪĪĩĪĩĩĪĩĩĪĩĪĩĪĩ+<g__Action|0>d.MoveNext () [0x0004c] in <97510392bc5a4243930af3757c9243ba>:0
Export in progress
Export failed: System.IO.DirectoryNotFoundException: Could not find a part of the path ‘/Users/t.j.corcoran/Projects/SquareLine/Smart_Gadget/Smart_Gadget’.
at System.IO.Enumeration.FileSystemEnumerator1[TResult].CreateDirectoryHandle (System.String path, System.Boolean ignoreNotFound) [0x00032] in <06094a8353e64785a1618c104ebf50c1>:0 at System.IO.Enumeration.FileSystemEnumerator1[TResult]…ctor (System.String directory, System.IO.EnumerationOptions options) [0x00048] in <06094a8353e64785a1618c104ebf50c1>:0
at System.IO.Enumeration.FileSystemEnumerable1+DelegateEnumerator[TResult]..ctor (System.IO.Enumeration.FileSystemEnumerable1[TResult] enumerable) [0x00000] in <06094a8353e64785a1618c104ebf50c1>:0
at System.IO.Enumeration.FileSystemEnumerable1[TResult]..ctor (System.String directory, System.IO.Enumeration.FileSystemEnumerable1+FindTransform[TResult] transform, System.IO.EnumerationOptions options) [0x00042] in <06094a8353e64785a1618c104ebf50c1>:0
at System.IO.Enumeration.FileSystemEnumerableFactory.FileInfos (System.String directory, System.String expression, System.IO.EnumerationOptions options) [0x00014] in <06094a8353e64785a1618c104ebf50c1>:0
at System.IO.DirectoryInfo.InternalEnumerateInfos (System.String path, System.String searchPattern, System.IO.SearchTarget searchTarget, System.IO.EnumerationOptions options) [0x00037] in <06094a8353e64785a1618c104ebf50c1>:0
at System.IO.DirectoryInfo.GetFiles (System.String searchPattern, System.IO.EnumerationOptions enumerationOptions) [0x00000] in <06094a8353e64785a1618c104ebf50c1>:0
at System.IO.DirectoryInfo.GetFiles () [0x0000b] in <06094a8353e64785a1618c104ebf50c1>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.GetFiles()
at ĩĩĪĩĪĪĩĩĩĪĩĪĩĩĩĪĪĪĪĩĪĩĪĪĪĪĩĩĩĪĪĩĪĪĪĪĪĩĩĪĪĪĩĪĩĩĪ.ĪĩĪĩĩĪĩĩĩĩĩĩĪĪĩĩĩĩĩĩĪĩĩĪĩĪĩĪĪĩĩĪĩĩĩĪĪĩĩĩĩĪĩĪĪĩĪ (System.String ĪĩĩĩĪĩĪĩĩĪĩĩĩĩĪĩĩĪĩĩĩĩĩĪĪĪĩĪĩĩĩĩĩĩĩĩĩĩĩĩĪĪĪĩĩĩĪ, System.String ĩĪĪĩĩĩĩĪĪĪĪĪĪĩĩĪĩĪĪĩĪĪĩĩĪĩĪĪĩĪĪĪĩĪĩĩĪĪĪĩĪĪĪĩĪĩĩ) [0x0004e] in <97510392bc5a4243930af3757c9243ba>:0
at ĩĪĩĩĪĪĪĪĩĪĪĩĪĩĪĪĪĩĩĪĪĪĪĪĪĪĩĪĪĪĪĪĩĪĩĩĪĪĩĩĩĩĪĩĪĪĩ.ĩĪĩĩĩĩĩĪĩĪĩĩĪĩĪĪĩĪĩĪĪĩĩĩĪĪĩĪĪĪĪĩĩĩĪĪĩĩĪĩĪĩĪĩĩĩĩ () [0x00000] in <97510392bc5a4243930af3757c9243ba>:0
at ĩĪĩĩĪĪĪĪĩĪĪĩĪĩĪĪĪĩĩĪĪĪĪĪĪĪĩĪĪĪĪĪĩĪĩĩĪĪĩĩĩĩĪĩĪĪĩ.ĪĪĪĩĪĪĩĪĩĩĩĩĩĪĩĪĩĩĩĩĪĪĩĩĪĩĩĩĪĩĪĩĪĩĪĪĪĩĪĩĩĩĪĩĩĩĩ (System.String ĩĪĪĩĩĩĪĪĪĪĪĩĪĩĩĪĪĩĪĪĪĪĪĩĩĩĩĪĩĪĩĩĩĩĪĩĩĩĪĩĪĩĪĩĪĩĩ) [0x005ff] in <97510392bc5a4243930af3757c9243ba>:0
at MenuLine+ĪĩĪĩĩĩĩĩĪĪĩĩĩĩĪĪĪĪĩĪĩĩĩĪĪĩĪĩĩĪĩĪĪĩĪĪĪĪĪĪĩĪĩĩĩĩĪ+<g__Action|0>d.MoveNext () [0x000a4] in <97510392bc5a4243930af3757c9243ba>:0
File updated from outside: assets/fonts/ui_font_Number.c

I have tried github and everwhere i can think of to find arduino_tft_espi_v2_0_0/arduino_tft_espi.zip but have been unsuccessful.

Any suggestions are much appreciated!

1 Like

You lack info SQ version MACOS version usw. Plus most simpler project setup is only target LVGL and prepare arduino own project . Then export isnt inside SQ project but C source folder in your target .

Downloading missing Board binary - stuck - Bugs - Forum - SquareLine Studio

Which version of LVGL is your project using? Im having a similar issue if you target LVGL 8.3.6 or 8.3.11. For me this error occurs in the last few releases. If I switch to lvgl 9.1.0 ( tft_espi 2.0.0 ) the export completes successfully. It looks like the board downloads but SLS does not extract it correctly in to the folder so the export fails ( just my 2 cents, may be wrong ) Switch to LVGL 9.1 and see if this resolves the export issue.

Thank you for the reply. Yes, it is set to LVGL 9.1.0, which is the only option in the dropdown box. I’m running MacOS Sequoia v15.6.1

Hi, please try closing SquareLine Studio and deleting the /Users/USERNAME/SquareLine/boards/hash.dat file, then start the program. Then it will download all the board files again. I hope this helps.