Why is the message "The program needs to be rebuilt and download" is displayed after updating PG5 to 2.0.220?
FAQ #101741
Upgrade from PG5 2.0.210 to PG5 2.0.220 does not let go online with a Project done with a previous version: Message "The program needs to be rebuilt and download" is displayed.
The same happens with the upgrade from PG5 2.0.150 to PG5 2.0.210.
This problem is coming from the background build.
Symptom
After the upgrade from PG5 2.0.210 to PG5 2.0.220 or from PG5 2.0.150 to PG5 2.0.210, PG5 does not let go online with a Project done with a previous version.
Direct after opening the old project, it is possible to go online with SPM without problem.
But if you open an editor, for example Fupla, the message "The program needs to be rebuilt and download" will be displayed.
Reason
This problem is coming from the "background build": Before opening the Editor, if the backgound build is enabled, a check is done in order to detect if a new build is required. When opening a project done with an older version, a build will be required. A build is required because the version has changed, some new libraries can be updated. The result of the build will probably not generate the same code as with the earlier version, because of updated libraries, because of change in the code generation (Fupla code generator, compiler, linker...).
When the background build is done, the editor will detect the difference between the code generated and the code present into the PCD and will ask for a download in order to update the PCD program.
Workaround
The solution is to disable the "background build" (under menu "Tools" --> "Options"). In changing this parameter, when opening project done with older version, no build will be done and it is possible to go online with the editors.
Solution
This problem will be solved in the next version of PG5.
Categories
PG5 2.0
Last update: 30.05.2015 11:20
First release: 18.04.2012 08:02
Views: 7399