Line 1... |
Line 1... |
1 |
/**** BootLoader for PIC16F887 |
1 |
/**** BootLoader for PIC16F887 |
2 |
|
2 |
|
- |
|
3 |
After Reset PIC run this script with number of ttyUSBn: |
- |
|
4 |
echo uf > /dev/ttyUSB$1 |
3 |
Ussage: |
5 |
sleep 5 |
4 |
ascii-xfr -s -v -l 100 ./bltest.hex > /dev/ttyUSB0 |
6 |
ascii-xfr -s -v -l 100 ./bltest.hex > /dev/ttyUSB$1 |
5 |
*/ |
7 |
*/ |
6 |
|
8 |
|
7 |
#define ID "$Id: bloader.c 2804 2013-03-09 22:55:51Z kakl $" |
9 |
#define ID "$Id: bloader.c 2809 2013-03-10 06:31:00Z kakl $" |
8 |
|
10 |
|
9 |
#CASE // Case sensitive compiler |
11 |
#CASE // Case sensitive compiler |
10 |
|
12 |
|
11 |
#define FLASH_BLOCK_SIZE getenv("FLASH_ERASE_SIZE")/2 // Minimal length of Flash Block Size |
13 |
#define FLASH_BLOCK_SIZE getenv("FLASH_ERASE_SIZE")/2 // Minimal length of Flash Block Size |
12 |
#define RESERVED_BLOCKS 53 // Number of reserved flash blocks for BootLoader |
14 |
#define RESERVED_BLOCKS 53 // Number of reserved flash blocks for BootLoader |