Wouter van Gulik
c42c8b9f9d
Fix 3 rx handling bugs; timeout, short read, out-of-sync.
...
When not plugging in the radio we expect to only see timeout errors.
However due to timeout being checked AFTER the read() call the len parameter
was updated and no longer was 0 returned.
If less then 4 was read (a short read) then uninitialized data was used,
for length and/or magic check.
If the magic byte does not match then the rx buffer should be flushed before
trying again. Otherwise sync will probably never be achieved. This
solves the bug where plugging in the radio show continues streams of
magic packet errors. For me k5prog -Y -D now always works, while before
it could fail.
2023-12-18 22:32:46 +13:00
sq5bpf
6eb4ac3822
relax flash mode packet size limits to fix issue 6
2023-10-14 19:16:06 +02:00
sq5bpf
0365f94b01
remove length and offset settings for flash, accept flash mode packets with shorter length from some Lseng clone
2023-10-10 21:58:55 +02:00
sq5bpf
c2b0d57a43
add -Wall to see compile warnings, and fix these warnings
2023-10-10 12:15:35 +02:00
sq5bpf
4817d020d1
add option to change the firmware string sent during flashing, changed the default string sent to something that is accepted by all bootloaders
2023-10-09 21:58:43 +02:00
sq5bpf
551d8a8cfe
add an option to flash files smaller than 50kB if the user knows what he's doing and bump version to 0.6
2023-10-03 11:01:40 +02:00
sq5bpf
d68ec83d92
fix flashing firmware larger than 0xe600 bytes
2023-09-27 18:26:55 +02:00
sq5bpf
15e1dde73e
Merge pull request #4 from f1rmb/fix_compilation
...
Make it compile.
2023-08-17 13:11:25 +02:00
Daniel Caujolle-Bert
589787d3ec
Make it compile.
2023-07-29 02:02:50 +10:00
sq5bpf
03cc17bc44
Add offset and length options for flashing
2023-07-12 00:11:45 +02:00
sq5bpf
2554817ad5
Merge pull request #3 from kronicd/main
...
fixed error preventing compile
2023-07-03 08:59:54 +02:00
aa
443c03cce2
fixed error preventing compile
2023-07-03 12:17:59 +08:00
sq5bpf
b1c5ab4001
initial flash support
2023-06-16 14:56:14 +02:00
sq5bpf
a7db2d224c
initial flash support
2023-06-16 14:55:26 +02:00
sq5bpf
ee8c83ef17
add -B "brick my radio" option, make -W option more conservative
2023-05-25 22:08:32 +02:00
sq5bpf
f671e72d46
minor README corrections
2023-05-13 09:44:37 +02:00
sq5bpf
f2e5f2ab27
initial commit
2023-05-12 19:08:41 +02:00
sq5bpf
f65b5d9280
Initial commit
2023-05-12 19:07:15 +02:00