CH552/project/jump_to_bl/jump_to_bl.c

16 lines
259 B
C
Raw Permalink Normal View History

2020-09-21 08:39:00 +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);
}