23,7 → 23,7 |
#CASE // Case sensitive compiler |
|
#define FLASH_BLOCK_SIZE getenv("FLASH_ERASE_SIZE")/2 // Minimal length of Flash Block Size |
#define RESERVED_BLOCKS 53 // Number of reserved flash blocks for BootLoader |
#define RESERVED_BLOCKS 49 // Number of reserved flash blocks for BootLoader |
#define LOADER_RESERVED (getenv("PROGRAM_MEMORY")-(RESERVED_BLOCKS*FLASH_BLOCK_SIZE)) // begining of BootLoader |
#define BUFFER_LEN_LOD 46 // Length of Working buffer for HEX |
|
243,7 → 243,7 |
{ |
// Write 8 words to the Loader location (jump to the main()) |
addr=LOADER_RESERVED; |
write_program_memory(addr, &data.i8[0], 16); |
write_program_memory(addr, &data.i8[0], 16); // It works only with 16 !!! |
putchar('%'); |
} |
else |
250,7 → 250,7 |
if ( (addr > 7) && (addr <= (LOADER_RESERVED-16)) ) // Do not overwrite BootLoader |
{ |
// Write program |
write_program_memory(addr, &data.i8[0], 16); |
write_program_memory(addr, &data.i8[0], 16); // It works only with 16 !!! |
putchar('$'); |
} |
else putchar('.'); // Possibly there was prevented write to the location of BootLoader |