CH552/src/make/jump_to_bl/jump_to_bl.c

16 lines
244 B
C
Raw Normal View History

2019-05-24 05:16:18 +02:00
#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);
}