o: ActiveSupport::Cache::Entry :@compressedF:@value"Ð"Ê
| bloader.c | ||
|---|---|---|
| 1 | 1 |
/**** BootLoader for PIC16F887 |
| 2 | 2 |
|
| 3 | 3 |
Ussage: |
| 4 |
ascii-xfr -s -v -l 100 ./bltest.hex > /dev/ttyUSB0 |
|
| 5 |
|
|
| 6 |
ascii-xfr is part of 'minicom' package |
|
| 7 |
|
|
| 8 |
Add "uf\n\r" to the first line of .HEX. or use this script: |
|
| 9 |
echo uf > /dev/ttyUSB$1 |
|
| 4 | 10 |
ascii-xfr -s -v -l 100 ./bltest.hex > /dev/ttyUSB$1 |
| 5 |
|
|
| 6 |
Add "uf\n\r" to the first line of .HEX . |
|
| 11 |
|
|
| 12 |
Or add "uf\n\r" and add some dummy characters at end or begin of each line (for 100 ms delay) and use: |
|
| 13 |
cp ./bltest.hex > /dev/ttyUSB0 |
|
| 14 |
|
|
| 15 |
For adding characters you can use this: |
|
| 16 |
echo uf > /dev/ttyUSB0; sed 's/^/pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp/' ./bltest.hex > /dev/ttyUSB0 |
|
| 17 |
|
|
| 7 | 18 |
*/ |
| 8 | 19 |
|
| 9 | 20 |
#define ID "$Id$" |