Search found 185 matches

by PeterR
Wed Oct 16, 2019 12:06 pm
Forum: General Discussion
Topic: FATFS sector size and wear levelling
Replies: 0
Views: 54

FATFS sector size and wear levelling

I have a small configuration file to store in onboard flash. The configuration file is writen on each setting change. As some settings are exposed in an API then I need wear leveling. The NVS system does not seem to support wear levelling. I tried FATFS. The manual says: The wear levelling component...
by PeterR
Wed Oct 16, 2019 11:48 am
Forum: ESP32 Arduino
Topic: Web server dataread
Replies: 2
Views: 105

Re: Web server dataread

Are you Ardunio or ESP-IDF? Websockets are a good idea but not supported in the stock ESP-IDF server. If IDF then you would need to port an Ardunio library. I tried briefly and decided (deliverable was due) that Ajax would do. I would say WebClient and use the Ajax (Google w3fools/schools) approach....
by PeterR
Thu Oct 10, 2019 5:49 pm
Forum: General Discussion
Topic: cant get IP address from esp32wrover by using clock GPIO0 ?
Replies: 4
Views: 244

Re: cant get IP address from esp32wrover by using clock GPIO0 ?

Its better to post a link if you are using stock code, saves me checking if you have changed anything. Is this stock code? You also should post observations not conclusions. For example, you say that the LAN is initialised but how do you know? Sending your boot output messages would help. Even bette...
by PeterR
Wed Oct 09, 2019 2:04 pm
Forum: General Discussion
Topic: cant get IP address from esp32wrover by using clock GPIO0 ?
Replies: 4
Views: 244

Re: cant get IP address from esp32wrover by using clock GPIO0 ?

The EVB schematics are a good starting point. I don't see an invertor there. You need to post some code and/or provide a common reference point e.g. the worked example. but lan ic is enabled. What do you mean? How do you know? What's your ethernet_initialisation() code & configuration settings? Ever...
by PeterR
Tue Oct 08, 2019 4:49 pm
Forum: General Discussion
Topic: bootloader_flash: bootloader_mmap excess size
Replies: 4
Views: 179

Re: bootloader_flash: bootloader_mmap excess size

Thanks. Spiffs does not use mmapped reads. Fatfs only uses them on encrypted partitions and only mmaps them ]just in time, not the whole filesystem. Not sure I understand the distinction and/or use and implications of using mmapped reads. Clearly mapping just in time will give a performance hit. Wha...
by PeterR
Mon Oct 07, 2019 9:55 pm
Forum: General Discussion
Topic: bootloader_flash: bootloader_mmap excess size
Replies: 4
Views: 179

Re: bootloader_flash: bootloader_mmap excess size

Thanks and darn, 3.1MB - that's bad. That has me on the hairy arse end of disaster.... Do you have a reference? What is the 16MB use/case then? You have 16MB but cannot use it? I don't understand the rules. Also how are SPIFFS/FAT etc located and addressed? SPIFFS can do >4MB. I started out with my ...
by PeterR
Mon Oct 07, 2019 5:38 pm
Forum: General Discussion
Topic: bootloader_flash: bootloader_mmap excess size
Replies: 4
Views: 179

bootloader_flash: bootloader_mmap excess size

The error reportis : I (123) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x3aefc8 (3862472) map E (132) bootloader_flash: bootloader_mmap excess size 3aefc8 E (139) esp_image: bootloader_mmap(0x10020, 0x3aefc8) failed I have a large (3Mbyte) website to serve. SPIFFS is far too slow ...
by PeterR
Fri Oct 04, 2019 12:13 am
Forum: Hardware
Topic: Maximum UART baud rate
Replies: 2
Views: 189

Re: Maximum UART baud rate

I very much doubt that you would achieve 5Mhz on UART regardless of direct/mux. I struggle to achieve UART speeds above 500K. I happily achieve 100Mhz+ with Ethernet. 20 MHz+ on 30cm on dodgy dupont wire with SPI (not suggesting the latter as a production option, just to say that something is wrong ...
by PeterR
Thu Oct 03, 2019 5:00 pm
Forum: General Discussion
Topic: How to access file on SPIFFS by fopen() on ESP32-Arduino?
Replies: 1
Views: 125

Re: How to access file on SPIFFS by fopen() on ESP32-Arduino?

SPIFFS allows read and write. Your first example works because you create the file "hello" using the 'w' option. This will create the file if not present. In your second example you attempt to open "foo.txt" as read only. This will not create a file if missing and so you get file error if missing. Y...
by PeterR
Thu Oct 03, 2019 4:50 pm
Forum: General Discussion
Topic: Append an incremented version/build number to compiled firmware binary name
Replies: 5
Views: 245

Re: Append an incremented version/build number to compiled firmware binary name

Well calling 'make app' from a script would be easy enough! (and then on completion rename). Where do you propose to get the version information from? ESP seem to work on the principle that we are using release branches and so the branch name contains the version plus minor as hash. In this case 'gi...

Go to advanced search