Issue
Generating a Xbuilder project results in the error message "The size of the generated project is xxxx KB, which exceeds the maximum size 8192 KB".
Environment
Xbuilder 5.x.x
Cause
The generated project size exceeds the maximum limit due to the following reasons:
- The project contents made up of graphic pages, inserted networks (LON, I/NET, etc), large images (BMP, GIF, etc), or imported files in the UserTargetImage directory cause the project to exceed the limit.
- The option "Send Project backup file to target device" is checked and this causes pushes the project size over the limit.
Resolution
- Generate the Xbuilder project to see how far above the limit the project currently is.
-
Open the Project\Settings and uncheck the "Send Project backup file to target device" and regenerate the project to see the difference in file size.
- If the size difference is significant then check for large files in the project directory that should not be sent to the device such as project or device documentation files such as PDFs. Remove these files from the Xbuilder project directory and generate the project again.
- Search the Xbuilder project directory for the largest size files such as graphic pages and try to find way to reduce the size by converting background image formats that will result in smaller file sizes. Example convert BMP file to PNG or JPG format.