The project is based on MC56F84789 and the problem is in the generated code of IntFLASH (Data_Flash) bean that i used.
The funcion procflash fails when i use the function SetBlockFlash!!!
It fails at every call if the optimization level is set to 2.
If the optimization level is set to 0, there were no problem!
Does anyone have the same problem?