Patent ID: 11947467
Assignee: NUVOTON TECHNOLOGY CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. An electronic device, comprising:
a first memory controller, configured to store setting information of a predetermined memory, wherein the predetermined memory is defined as an execute-only-memory;
a first memory, coupled to the first memory controller, wherein the first memory comprises the predetermined memory, and stores data of the predetermined memory;
a second memory controller, coupled to the first memory controller, and configured to set an enabling register of the second memory controller and a predetermined memory space corresponding to the enabling register according to the setting information of the predetermined memory, and generate an enabling signal, wherein the enabling signal indicates that the enabling register has been set;
a second memory, coupled to the second memory controller, wherein the second memory comprises the predetermined memory space corresponding to the enabling register; and
a memory access controller, coupled to the first memory controller and the second memory controller, and configured to access the first memory controller and the second memory controller to move the data of the predetermined memory of the first memory to the predetermined memory space of the second memory corresponding to the enabling register according to the enabling signal and the setting information of the predetermined memory;
wherein the predetermined memory space is set to a read-only mode, and only allows the memory access controller to perform a write operation when moving the data of the predetermined memory of the first memory to the predetermined memory space of the second memory corresponding to the enabling register.