A locking devices may include a striker and a locking mechanism. The method includes supplying a voltage pulse in the quadrature-axis or direct-axis direction of rotor, sampling currents generated by the supplied voltage pulse, and calculating values of flux at the sampling instants from the value of the supplied voltage pulse, the sampled current values and a value of the stator resistance. , preferably to a temperature that is lower than or equal to 200\xb0 C. The microelectronic substrate and the support member can then be electrically coupled, for example, with a wire bond.