Line 15... |
Line 15... |
15 |
For adding characters you can use this: |
15 |
For adding characters you can use this: |
16 |
sed -i 's/^/pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp/' ./bltest.hex |
16 |
sed -i 's/^/pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp/' ./bltest.hex |
17 |
sed -i 1i"uf" ./bltest.hex |
17 |
sed -i 1i"uf" ./bltest.hex |
18 |
|
18 |
|
19 |
Windows script: |
19 |
Windows script: |
- |
|
20 |
mode com1 baud=9600 parity=n data=8 stop=1 rts=off dtr=off xon=off |
20 |
echo uf > com1 |
21 |
echo uf > com1 |
21 |
ping 1.1.1.1 -n 1 -w 100 > nul |
22 |
ping 1.1.1.1 -n 1 -w 100 > nul |
22 |
FOR /F "tokens=1*" %%i in (bltest.hex) do @echo %%i > com1 & ping 1.1.1.1 -n 1 -w 100 > nul |
23 |
FOR /F "tokens=1*" %%i in (bltest.hex) do @echo %%i > com1 & ping 1.1.1.1 -n 1 -w 100 > nul |
23 |
*/ |
24 |
*/ |
24 |
|
25 |
|
25 |
#define ID "$Id: bloader.c 2896 2013-04-09 20:40:51Z kakl $" |
26 |
#define ID "$Id: bloader.c 2897 2013-04-09 21:20:28Z kakl $" |
26 |
|
27 |
|
27 |
#CASE // Case sensitive compiler |
28 |
#CASE // Case sensitive compiler |
28 |
|
29 |
|
29 |
#define ERR_BUFFER_OVERRUN 1 // Error 1 - Buffer Overrun |
30 |
#define ERR_BUFFER_OVERRUN 1 // Error 1 - Buffer Overrun |
30 |
#define ERR_CHECKSUM 2 // Error 2 - Bad CheckSum |
31 |
#define ERR_CHECKSUM 2 // Error 2 - Bad CheckSum |