Search found 13 matches

by nockieboy
Thu Sep 27, 2018 3:53 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 6428

Re: ESP-IDF SPIFFS can't find files on ESP32?

Yep, it's been my weapon of choice over Chrome and FF for a year or two, during some heavy web-dev work. :D
by nockieboy
Thu Sep 27, 2018 3:42 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 6428

Re: ESP-IDF SPIFFS can't find files on ESP32?

Yes, I've been using the debugger to see exactly what's going on. However, I've been using the Opera browser - I switched to Firefox and the problem seems have disappeared... bizarre! :)
by nockieboy
Thu Sep 27, 2018 8:17 am
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 6428

Re: ESP-IDF SPIFFS can't find files on ESP32?

Yes please! Still stuck with this mysterious corrupted heap problem. :? EDIT: Actually, it seems I've sorted the heap corruption. I changed: buf = calloc(size, 1); // File buffer to buf = (char*) calloc(size, sizeof(char*)); // File buffer in the readFile() function and the errors have gone away. I'...
by nockieboy
Wed Sep 26, 2018 5:56 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 6428

Re: ESP-IDF SPIFFS can't find files on ESP32?

Yes, I'd spotted that and corrected for it. Here's a little more detail on the error: I (2227) APP: Server ready... I (312675) APP: Opening file /spiffs/index.htm, size: 928 I (312676) APP: 928 bytes read CORRUPT HEAP: multi_heap.c:429 detected at 0x70732f3c abort() was called at PC 0x4008e04f on co...
by nockieboy
Wed Sep 26, 2018 3:16 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 6428

Re: ESP-IDF SPIFFS can't find files on ESP32?

You can't open the files, or can't send them to the client? I've got it all up and running now. If you can't open files, check to make sure the buffer you'd set up was big enough (it was only 1K? I've modified that to set the buffer to size of the file being read). Here's my code: char *readFile(cha...
by nockieboy
Wed Sep 26, 2018 1:28 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 6428

Re: ESP-IDF SPIFFS can't find files on ESP32?

Haven't gotten round to working on serving up files yet, but don't know if this forum post would be of any help?

viewtopic.php?t=4830#p20838
by nockieboy
Wed Sep 26, 2018 11:57 am
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 6428

Re: ESP-IDF SPIFFS can't find files on ESP32?

I got this working last night. There is allot the docs assume you already know :roll: I'm finding that a lot with those docs... :? I am still honing in values but this should get you started as well. #1) create a "partitions.csv" file in your project folder. This is what I have in there. # Name, Ty...
by nockieboy
Wed Sep 26, 2018 6:52 am
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 6428

Re: ESP-IDF SPIFFS can't find files on ESP32?

No, not yet. :cry:
by nockieboy
Tue Sep 25, 2018 2:35 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 6428

ESP-IDF SPIFFS can't find files on ESP32?

I'm building a test http server application using the ESP-IDF on my ESP32 and learning C whilst I'm doing it. I've sorted out the http server part, now I'm trying to move on to getting SPIFFS working so I can serve html, css and js files from the ESP32. SPIFFS is working, as best I can tell - I've u...
by nockieboy
Tue Sep 25, 2018 7:45 am
Forum: General Discussion
Topic: Visual Studio Code, ESP-IDF, C++ include errors?
Replies: 3
Views: 2487

Re: Visual Studio Code, ESP-IDF, C++ include errors?

The ESP-IDF build system will compile .c files as C, not C++. To use C++ features, rename the file to .cpp. (Note that in C++ you'll also have to declare the app_main function as "extern "C" void app_main() { ... " so it gets linked correctly into the app. Thanks for your help, Angus. :D Yes, it's ...

Go to advanced search