Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFat upload impossible (solved) #18

Open
lesept777 opened this issue Aug 23, 2024 · 2 comments
Open

FFat upload impossible (solved) #18

lesept777 opened this issue Aug 23, 2024 · 2 comments

Comments

@lesept777
Copy link

lesept777 commented Aug 23, 2024

Hi
When trying to upload files to a FFat partition, I get this error message:

Chip : esp32s3
Using partitions.csv from sketch folder.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1967)
	at com.esp32.mkspiffs.ESP32FS.createAndUpload(ESP32FS.java:282)
	at com.esp32.mkspiffs.ESP32FS.run(ESP32FS.java:579)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
String index out of range: -1

I'm using Arduino IDE 1.8.19, the partitions.csv file is as follows:

# Name,   Type, SubType,  Offset,   Size,  Flags
nvs, data, nvs, 0x9000, 0x5000
otadata, data, ota, 0xE000, 0x2000
factory, app, factory, 0x10000, 0xC8000
ffat, data, fat, 0xD8000, 0xF18000
coredump, data, coredump, 0xFF0000, 0x10000

and I chose the option custom for the Partition scheme.

What is wrong?
Thanks for your help.

@lesept777
Copy link
Author

lesept777 commented Aug 23, 2024

I simplified the problem, with an empty code (setup and loop are empty), and partition from the list 16MB Flash (3MB apAPP/9.9MB FATFS)
The data folder contains only a very small txt file and the upload works.

So the problem is related either to the custom partition or its size.

@lesept777
Copy link
Author

Solved!
It seems the partitions file needs to have , at the end of each line

# Name,   Type, SubType,  Offset,   Size,  Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xE000, 0x2000,
factory, app, factory, 0x10000, 0xC8000,
ffat, data, fat, 0xD8000, 0xF18000,
coredump, data, coredump, 0xFF0000, 0x10000,

@lesept777 lesept777 changed the title FFat upload impossible FFat upload impossible (solved) Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant