Notifications
Clear all

Having an issue with library in the CG9A01 tutorial on YouTube

21 Posts
2 Users
0 Likes
1,284 Views
(@david-m)
Member
Joined: 2 years ago
Posts: 9
Topic starter  

This is my first post here on DBW Forum so have a bit of mercy.

The following refers to the DBW YouTube Video of June 5, 2022

I built and programmed the first experiment in the video. (Color Test) and it works just fine. So I wanted to proceed to the next Experiment (Animated Dial) I loaded the example, added the TJpg_decoder library as directed and tried to verify the sketch. No Dice. I got a fatal error (exit status 1). So I then switched to verbose and found that I need a library called "LittleFS.h"...However, I had installed that library previously with the only difference being that the library is called "LITTLEFS_master" note the capitalization difference.So I got into the src folder and found "esp_LittleFS.h" ;not the library the sketch was looking for. I also found "LITTLEFS.h" . This was confusing. So back to Github and I can't seem to find out anymore except that LittleFS has had an upgrade and its now "calling itself" LITTLEFS.h or that how I read it. Frankly it was confusing me. I am a lousy programmer. I'm more a hardware guy. And I need help.

So I joined the Forum here because Bill's videos have been incredibly helpful to me in the past and I hope his community is just like him.

Anyway TIA

David M

PS here is the error message:

In file included from /Users/David/Documents/Arduino/libraries/TFT_eSPI/examples/Sprite/Animated_dial/Animated_dial.ino:42:0:
/Users/David/Documents/Arduino/libraries/TJpg_Decoder/src/TJpg_Decoder.h:23:26: fatal error: LittleFS.h: No such file or directory
compilation terminated.

 

 

 


   
Quote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6970
 

Rename the library directory to remove the master part.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6970
 

I just did a bit more digging and LittleFS.h is built in, no GIT needed and in fact might mess you up. This library has undergone major change recently and is quite confusing to me at least.

I just did a compile with #include <LittleFS.h> and there was NO such file in my personal libraries folder and it compiled cleanly. Check the picture out. I intentionally blacked out the full path so you are not tempted to manually interfere. That is a system maintained path but as most users have an admin id you could mess it up.

What board are you working with, and did you install the board in the IDE?

Screen Shot 2022 09 09 at 12.44.35
Screen Shot 2022 09 09 at 12.43.38

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@david-m)
Member
Joined: 2 years ago
Posts: 9
Topic starter  

Thanks for the response. I am using the ESP32-wroom-32D and it is installed in the IDE.I will give that a try and report back


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6970
 

@david-m You should delete those other LittleFS libs you downloaded, they may mess you up. I have 3 copies of LittleFS.h in my IDE platform libraries, one for esp32, one for esp8266 and one for rp2040. I will try my tiny test again with your board selected, the ESP32-wroom-32D 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@david-m)
Member
Joined: 2 years ago
Posts: 9
Topic starter  

OK I tried just typing in #include <LittleFS.h>. Didn't work (ARRRGH) Anyway tonight is my 70th Birthday Party so I am gonna sign out for a while...Ill be back tomorrow. Really thanks for helping an Old Sod like me.

David M


   
ReplyQuote
(@david-m)
Member
Joined: 2 years ago
Posts: 9
Topic starter  

 

Ron

Whoops didn't see the previous post from you...SO a huge thanks and like I said its time to go to the party...almost. But Ill probably be thinking about this til I get home and check the forum

Cheers


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6970
 

@david-m I don't see that board in the list, take a screen grab of the Tools drop down menu that shows the board selected.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6970
 

@david-m I would kill to be that young again, I am 80. Been messing with software and hardware since the 50's.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@david-m)
Member
Joined: 2 years ago
Posts: 9
Topic starter  

 

Ron,

No its not in the list perse, however, it will work with "ESP32 Dev Module "on the board manager. And there is something to be said about being on the "right side of the grass" so many hard rollers from my day aren't. So I am glad I made it this far.

 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6970
 

@david-m Ok. In that case you should re-install the IDE perhaps after deleting any library to do with LittleFS that you installed.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@david-m)
Member
Joined: 2 years ago
Posts: 9
Topic starter  

I was going through my installed libraries this morning and found that Arduino_esp32_master contains the "LittleFS.h" library that I think I need. However it is imbedded in the libraries

image

which are included in the master file. I think that the IDE is unable to find it as its in that enormous hierarchy. So do you have any ideas about where to put it. The ESP32 file can't be deleted as its used in many many places so I'm still confused about what to do.

 

 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6970
 

@david-m I don't know where you got that arduino_esp32_master but it is NOT a library I have. It appears to be the IDF source code. You should not need that, it is the code needed to build the IDE etc. Equivalent to playing with sharp knives. 

How/where did you install the arduino IDE? It should have been by going to the web site www.arduino.cc and select Software then download your platform (Win?) installer. Is that what you did, if so where/why do you have the open source for IDF?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6970
 

@david-m Let me be very clear. Undo any installs you have done so far to do with the arduino and esp32. Start by installing from the approved location as I specified above. That will install the LittleFS.h in the correct place. If you installed anything else let me know what so I can guide you.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6970
 

@david-m Set up your preferences to look similar to the enclosed pic, then add the following (copy/paste) to Additional Boards Manager. Let me know if you want the PICO boards as well.

 https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json 
Screen Shot 2022 09 10 at 08.08.36

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Page 1 / 2