1. A memory management method, applied to an embedded device, the embedded device comprising a system memory and a hardware memory, the embedded device operating based on addresses of a virtual memory, the method comprising: mapping a part of the addresses of the virtual memory to addresses of an indirect memory; and mapping the addresses of the indirect memory to physical addresses of at least one of the hardware memory and the system memory, wherein the hardware memory corresponds to a function module of the embedded device, and the step of mapping the addresses of the indirect memory to the physical addresses of the at least one of the hardware memory and the system memory comprises: when the function module is in an idle state, mapping a part of the addresses of the indirect memory to the hardware memory, and when the function module enters an operating state from the idle state, mapping the part of the addresses of the indirect memory mapped to the hardware memory to the system memory.