1. Method of loading files into random access memory ( 4 ) in an electronic device ( 10 ) designed to function in a trusted execution environment (TEE), because of the execution of a trusted operating system ( 30 ) by a processor ( 2 ) of the electronic device ( 10 ), or in a rich execution environment (REE), characterized in that it includes the following steps: reception (E 10 ) by the trusted operating system ( 30 ) of information (L 1 ) identifying at least one file; verification (E 11 ) by the trusted operating system ( 30 ) of the conformance of the identified file to at least one given criterion; in the event of conformance, loading (E 13 ) the identified file into an area (Z 2 ) of random access memory ( 4 ) accessible in read only mode when functioning in the rich execution environment (REE).