All the programming of the internal registers which include components and wiring is done after stabilization of the clocks and PLL. All registers get a value, so setup time is independent of the components used,
In cydwr-file, System tab there is a "Device Configuration Mode" setting which allows for using more flash but faster setup.
thank you for your help, I'll try.
I disable the WCO clock and now I have 5ms between reset and the main function.
Thank you again for your help.