Thank you for the answer.
I only have problem on my custom card. On the K60 TWR kit there are a PK60N512VMD100 and the clock is 50.000P EC3953PBN.
On my board there are MK60DN512ZVLQ10 and the clock 50.000R EC3953 BN..
I don't understand that on my second card, the programmation works properly but on the first one, the programmation locks on this statement:
while (!(MCG_S & MCG_S_LOCK_MASK)){}; // Wait for LOCK bit to set
The version of the processor and the clock I use could creates that problem?
Why do I have different behavious on my two card?
Best regard.