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 Re: ESP32 - Custom partition file - Publish Server Data Files Fails (Read 1399 times)
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP32 - Custom partition file - Publish Server Data Files Fails
Dec 2nd, 2022 at 3:56pm
Print Post  
Hi,
here it is:
# Name,   Type, SubType, Offset,  Size, Flags
nvs,      data, nvs,     0x9000,  0x5000,
otadata,  data, ota,     0xe000,  0x2000,
app0,     app,  ota_0,   0x10000, 0x330000,
app1,     app,  ota_1,   0x340000,0x330000,
spiffs,   data, spiffs,  0x670000,0x190000

I have been playing around with partitions (I set up one for a 16Mb ESP32) and some very strange results..
When I build with the below partition file it all builds ok BUT when I try a Publish server files it fails to even attempt to build the data file. I see no list of the files (which I see normally), just the compiler definitions/vm stuff etc. 

Here is the partition for the 16Mb ESP32
#7Mb app, OTA, 1.8Mb spiffs
# Name,   Type, SubType,  Offset,   Size,  Flags
nvs, data, nvs, 0x9000, 0x24000,
otadata, data, ota, 0x2D000, 0x3000,
app0, app, ota_0, 0x30000, 0x700000,
app1, app, ota_1, 0x730000, 0x700000,
spiffs, data, spiffs, 0xE30000, 0x1D0000
« Last Edit: Dec 2nd, 2022 at 4:39pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP32 - Program too big - Custom partition file
Reply #1 - Dec 2nd, 2022 at 4:18pm
Print Post  
..I have emailed the logs for the 2 scenarios.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: ESP32 - Custom partition file - Publish Server Data Files Fails
Reply #2 - Dec 2nd, 2022 at 4:41pm
Print Post  
Thanks for the information, we have split this from the previous post as this relates to the Publish Server Data Files which is a seperate piece of functionality.

Can you upgrade to the latest available release (2022.11.28-2) and then get the log information further down:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Can you enable all of the below options;
vMicro > Compiler > Verbose
vMicro > Compiler > Show Build Properties
vMicro > Uploader > Verbose

And then perform the full build of your project, and attempt to upload the server data files as well, and send us the complete output from that?
« Last Edit: Dec 2nd, 2022 at 5:49pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP32 - Custom partition file - Publish Server Data Files Fails
Reply #3 - Dec 3rd, 2022 at 5:12am
Print Post  
Ok, done and sent.
The data file is being built at the end of the build as I automatically do that in my build script.
Subsequent re-builds (using Publish) fail. 
These are the parameters I pass to build the datafile:
-p 256 -b 4096 -s 1900544
« Last Edit: Dec 3rd, 2022 at 7:04am by Acuario »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: ESP32 - Custom partition file - Publish Server Data Files Fails
Reply #4 - Dec 6th, 2022 at 5:29pm
Print Post  
Thanks for the detail.

We have found an issue whereby a blank line in the partitions.csv would cause the upload to fail and not output a message.  If you do have a blank line try removing it and then publishing the files again.

There should be no need to build the Filesystem image with your script, as the Publish Server Data Files (or Automatic Upload) will rebuild the file before attempting to upload it.
  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP32 - Custom partition file - Publish Server Data Files Fails
Reply #5 - Dec 7th, 2022 at 5:56pm
Print Post  
There was a blank line, removing it fixed the problem, thanks.
I build the data file with my script as I then copy it out to a folder to enable version control.
I have automatic upload switched off as I do my uploads using ota and there isn't time between the build update and the device rebooting for the auto update to perform correctly.

I guess when using serial upload there is no problem.
  
Back to top
 
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 227
Joined: Jul 1st, 2020
Re: ESP32 - Custom partition file - Publish Server Data Files Fails
Reply #6 - Dec 10th, 2022 at 11:43pm
Print Post  
I did this too a long time a go, maybe it helps

https://www.visualmicro.com/forums/YaBB.pl?num=1623838272
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint