1. A method of loading files into random access memory in an electronic device designed to function in a trusted execution environment, because of the execution of a trusted operating system by a processor of the electronic device, or in a rich execution environment, said method comprising: initializing the functioning of the electronic device by loading the trusted operating system and starting the execution of the trusted operating system; switching between functioning in the trusted execution environment to functioning in the rich execution environment, the electronic device remaining functioning at all times; preparing a description of requirements containing an information identifying at least one application file, during functioning of the electronic device in the rich execution environment; switching between functioning in the rich execution environment, to functioning in the trusted execution environment, the electronic device remaining functioning at all times; receiving, by the trusted operating system, said description of requirements; verifying, by the trusted operating system, the conformance of the identified application file to at least one given criterion; and in the event of conformance, loading the identified application file into an area of random access memory accessible in read only mode when functioning in the rich execution environment.