A method of operating an electronic system, wherein the electronic system is a smart card, the method comprising the steps of: sending a message from a first device of the electronic system to a second device of the electronic system; receiving the message at the second device; generating, at the second device, a first history value utilizing a first function which calculates the first history value from the history of messages previously received at the second device and the message, and storing the first history value in a non-volatile memory of the second device, wherein the second device is formed by a single integrated circuit including the non-volatile memory but not the first device, and wherein the non-volatile memory is embedded in the second device; comparing the first history value with a second history value generated at the first device, the second history value utilizing a second function based on the history of messages previously sent from the first device to the second device, the first function and the second function being identical; and generating a signal if the first history value is different from the second history value; wherein the smart card comprises a smart card controller as the first device; a communication interface operatively coupled to the smart card controller, wherein the communication interface is configured to communicate with a reader; a display; and a display driver or a display controller as the second device operatively coupled to the display; the method particularly further comprising a plurality of write cycles during a communication of the smart card with the reader; wherein the message includes display information of one of the write cycles of the plurality of write cycles to be displayed on the display. sending a message from a first device of the electronic system to a second device of the electronic system; receiving the message at the second device; generating, at the second device, a first history value utilizing a first function which calculates the first history value from the history of messages previously received at the second device and the message, and storing the first history value in a non-volatile memory of the second device, wherein the second device is formed by a single integrated circuit including the non-volatile memory but not the first device, and wherein the non-volatile memory is embedded in the second device; comparing the first history value with a second history value generated at the first device, the second history value utilizing a second function based on the history of messages previously sent from the first device to the second device, the first function and the second function being identical; and generating a signal if the first history value is different from the second history value; wherein the smart card comprises a smart card controller as the first device; a communication interface operatively coupled to the smart card controller, wherein the communication interface is configured to communicate with a reader; a display; and a display driver or a display controller as the second device operatively coupled to the display; the method particularly further comprising a plurality of write cycles during a communication of the smart card with the reader;