2815 |
kakl |
1 |
/*------------------- DUMMY BOOT LOADER --------------------------------------------*/ |
|
|
2 |
#include "..\common\bloader_defs.h" |
|
|
3 |
|
|
|
4 |
#BUILD(INTERRUPT=FLASH_BLOCK_SIZE) // Redirect Interrupt routine above first flash block |
2848 |
kakl |
5 |
|
|
|
6 |
/* |
|
|
7 |
#ORG 4,FLASH_BLOCK_SIZE-1 |
2815 |
kakl |
8 |
void JumpToTheInterrupt() // Jump to the Interrupt Handler |
2848 |
kakl |
9 |
{ #asm |
|
|
10 |
NOP |
|
|
11 |
NOP |
|
|
12 |
NOP |
|
|
13 |
NOP |
|
|
14 |
GOTO FLASH_BLOCK_SIZE |
|
|
15 |
#endasm } |
|
|
16 |
//#ORG 6,FLASH_BLOCK_SIZE-1 {} // First Flash block is reserved |
|
|
17 |
*/ |
2815 |
kakl |
18 |
|
2848 |
kakl |
19 |
#ROM 0x0004={0,0,0,0,0,0,0,0,0,0,0,0} // 12x NOP from interrupt vector to interrupt routine |
|
|
20 |
|
2815 |
kakl |
21 |
#ORG LOADER_RESERVED,getenv("PROGRAM_MEMORY")-1 auto=0 |
|
|
22 |
#SEPARATE |
|
|
23 |
void dummy_main() // Main on the fix position |
|
|
24 |
{ |
|
|
25 |
reset_cpu(); |
|
|
26 |
} |