The invention discloses a method for interactively debugging parameters of an
internal memory controller of a Loongson processor. The method comprises the following steps of S1, loading basic
internal memory configuration parameters; S2, judging whether to carry out
internal memory training, if so, executing the step S3, and otherwise, directly
jumping to the step S4; S3, carrying out the internal
memory training; S4, judging whether the internal memory configuration parameters need to be corrected, and if the internal memory configuration parameters do not need to be continuously corrected,
jumping to the step S7; S5, reading to-be-corrected register index values and register contents of the internal
memory controller, and storing the register index values and the register contents into the internal
memory controller of the processor; S6,
jumping to the step S4; S7, storing the corrected contents of the internal
memory controller into a
flash memory.