Photon does not execute application

I am using Netbenas and cywin for local bulding.
Building goes ok, and so good goes flashing firmware.
The same should be doen for application flsh but photon does not seems to execute it.
No command in applicatiosn does something at runtime,
photon just goes to cloud connect even if SYSTEM MODE is set to MANUAL through application.
If SYSTEM MODE is set to MANUAL in firmware photon is flashing white and that is all.