The invention provides a domestic
PSOC-based program online upgrading
system. The domestic
PSOC-based program online upgrading
system comprises an upper computer and
terminal equipment, the upper computer comprises an
upgrade program generation module and a communication module; the
terminal equipment comprises a domestic
PSOC platform, a
FLASH memory, a DDR buffer and a
terminal equipment communication module; the terminal equipment enters an upgrading state according to the upgrading instruction, and the PL program and the PS program running in the domestic PSOC platform are upgraded through the upgrading program. After the terminal equipment completes initialization, online program upgrading can be completed at any time, a special
delay waiting module does not need to be arranged in the initialization stage to wait for an upper computer instruction, and the time constraint of online upgrading and the equipment starting time are reduced. The
FLASH memory is provided with an independent factory program
storage area and an independent upgrading program
storage area, and after program upgrading fails, the
FLASH memory can still be powered on to run factory programs. According to the method and the device, only single-partition data or multi-partition data needing to be upgraded can be upgraded online, so that the upgrading efficiency and the equipment
maintainability are improved.