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