The invention discloses a storage protecting controller and a method for improving safety of an SOC (
system on
chip). The method includes the steps: dividing a
program code space of a processor into a plurality of code spaces, and setting an entry address corresponding to each
code space; dividing a storage space into a plurality of storage protecting areas, individually setting access authority attributes of the processor to the storage protecting areas when each
code space executes program codes; judging whether a program pointer of the processor skips or not and whether skip is abnormal or not, and generating skip abnormal indication if the skip is abnormal; and monitoring whether access of a current
bus to the storage space is abnormal or not, and stopping access of the
bus if access of the current
bus to the storage space is abnormal, so that the program pointer of the processor is prevented from skipping from one
code space to another code space to execute a program, and abnormal access to the storage protecting areas is prevented. The storage protecting controller can effectively improve
program code running safety, and can be widely applied to SOC chips of various types.