Line 11... |
Line 11... |
11 |
|
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: |
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 |
13 |
cp ./bltest.hex > /dev/ttyUSB0 |
14 |
|
14 |
|
15 |
For adding characters you can use this: |
15 |
For adding characters you can use this: |
16 |
echo uf > /dev/ttyUSB0; sed 's/^/pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp/' ./bltest.hex > /dev/ttyUSB0 |
16 |
sed -i 's/^/pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp/' ./bltest.hex |
- |
|
17 |
sed -i 1i"uf" ./bltest.hex |
17 |
|
18 |
|
18 |
*/ |
19 |
*/ |
19 |
|
20 |
|
20 |
#define ID "$Id: bloader.c 2811 2013-03-10 07:43:30Z kakl $" |
21 |
#define ID "$Id: bloader.c 2812 2013-03-10 08:00:23Z kakl $" |
21 |
|
22 |
|
22 |
#CASE // Case sensitive compiler |
23 |
#CASE // Case sensitive compiler |
23 |
|
24 |
|
24 |
#define FLASH_BLOCK_SIZE getenv("FLASH_ERASE_SIZE")/2 // Minimal length of Flash Block Size |
25 |
#define FLASH_BLOCK_SIZE getenv("FLASH_ERASE_SIZE")/2 // Minimal length of Flash Block Size |
25 |
#define RESERVED_BLOCKS 53 // Number of reserved flash blocks for BootLoader |
26 |
#define RESERVED_BLOCKS 53 // Number of reserved flash blocks for BootLoader |