CH552/project/jump_to_bl/jump_to_bl.c
2020-09-21 14:39:00 +08:00

16 lines
259 B
C

#include <8051.h>
#define BOOT_ADDR 0x3800
/* This program just execute bootloader rom directly */
void main( void )
{
EA = 0;/* Disable all interrupts */
__asm
LJMP BOOT_ADDR /* Jump to bootloader */
__endasm;
while(1);
}