Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Filesystem upload command fails for custom FFAT partition with partitions.csv. (Read 134 times)
Pablo
Newbies
*
Offline


Posts: 4
Joined: Mar 14th, 2023
Filesystem upload command fails for custom FFAT partition with partitions.csv.
Aug 7th, 2025 at 12:14am
Print Post  
When using a custom partition scheme, the filesystem upload command does not include the -build.partitions="partitions.csv" parameter. This parameter is crucial for the upload tool to identify and use the data partition configuration (such as FFAT) defined by the user.

Steps to Reproduce:

In a Visual Micro project for ESP32, create a data folder with files.

Create a custom partitions.csv file in the project's root directory. In this file, define a data partition with a fat subtype.

In the Visual Micro settings, select the "Custom" Partition Scheme.

Attempt to upload the files from the data folder using the filesystem upload tool.

Actual Behavior:

For predefined partition schemes, the upload command includes the -build.partitions="[scheme_name]" parameter, which allows the tool to function correctly.

However, when using a custom partition scheme with a partitions.csv file, this parameter is missing from the upload command. This likely causes the tool to fail when attempting to locate the data partition variables, preventing the files from being uploaded.

Additional Information:
The issue is centered on the generation of the upload command for custom schemes. The filesystem upload tool needs the reference to the partitions.csv file to obtain the necessary information for the process. The absence of the -build.partitions parameter appears to be the root cause of the failure.

Attachments:
Logs from two upload attempts are attached for review.

The log from an attempt using the noota_ffat scheme, which works correctly.

The log from an attempt using the Custom scheme, which fails.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12198
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Filesystem upload command fails for custom FFAT partition with partitions.csv.
Reply #1 - Aug 7th, 2025 at 12:52am
Print Post  
Thanks for all the info.

The partions.csv is copied to the build folder when the program size is calculated, after a build.

Your output shows an upload request but you might not have built since adding the partitions file?

We will review this. Maybe the copy can also happen when clicking "upload" to prevent other users from bumping into this issue.

Let us know if that resolves.

Thanks
« Last Edit: Aug 7th, 2025 at 12:54am by Tim@Visual Micro »  
Back to top
IP Logged
 
Pablo
Newbies
*
Offline


Posts: 4
Joined: Mar 14th, 2023
Re: Filesystem upload command fails for custom FFAT partition with partitions.csv.
Reply #2 - Aug 7th, 2025 at 9:11am
Print Post  
Prior to the upload attempt, it has been verified that the project compiles successfully and the program is correctly uploaded to the ESP32. In both configurations (no_ota_ffat and the Custom scheme with a partitions.csv), the ESP32 recognizes and uses the partition scheme, confirming that the partition definition in the .csv file is valid.

It has been noted that the custom partitions.csv file is applied regardless of the selection made in the IDE's Partition Scheme menu (e.g., Custom vs no_ota_ffat). To prevent its use, the file must be renamed or removed from the project's root directory. This behavior is not consistent with the expected logic, which would suggest the file should only be applied when the Custom option is explicitly selected, although this is a minor issue in my case.

The only significant difference between the compilation logs of both scenarios is the absence of the -build.partitions="partitions.csv" parameter in the upload command when the custom scheme is used. The reference to the partitions.csv file is omitted, which appears to be the direct cause of the upload command failure. A simple comparison of the compilation logs confirms this discrepancy.
  
Back to top
 
IP Logged
 
Pablo
Newbies
*
Offline


Posts: 4
Joined: Mar 14th, 2023
Re: Filesystem upload command fails for custom FFAT partition with partitions.csv.
Reply #3 - Aug 7th, 2025 at 12:34pm
Print Post  
After extensive testing, I have discovered the cause of the file upload failure: the problem was in the format of the partitions.csv file. Although the ESP32 correctly recognized and created the partitions, the IDE's upload tool required a trailing comma at the end of each partition definition line. The tool I used to create the partition table did not add these commas, nor did it include the Flags field.

By comparing my file with working examples, I noticed this difference. After making a few tests, the upload process now works correctly.

I now have a better understanding of how these configuration options work:

The default partition options are defined in the boards.txt file and belong to the ESP32 core.

The Custom option is intended to allow the use of a personalized partitions.csv file, making it easier to manually modify partitions. This is useful for users who need specific partition schemes and want the native Arduino IDE to recognize them.

I apologize for any inconvenience caused by the initial lack of information.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint