Wykres commitów

31 Commity (main)

Autor SHA1 Wiadomość Data
sq5bpf 241ab18b61 warn of firmware flash mode when in eeprom read mode 2023-12-29 23:07:47 +01:00
sq5bpf e4b2c47d17 wait for only 0x518 command on flashing 2023-12-29 22:20:34 +01:00
sq5bpf 350e667c5d minor fixes 2023-12-29 21:28:17 +01:00
sq5bpf 3eb6e144fc minor fixes 2023-12-29 21:27:50 +01:00
sq5bpf 990eeb60aa
Merge pull request #15 from brohee/main
Various messages / comments improvements
2023-12-29 19:19:20 +01:00
sq5bpf 767688f746
Merge pull request #19 from wutje/fix_wrong_filename
Fix wrong filename printed in open failure message.
2023-12-29 19:17:33 +01:00
sq5bpf 4e6ebbc760
Merge pull request #20 from wutje/fix_out_of_sync
Fix 3 rx handling bugs; timeout, short read, out-of-sync
2023-12-29 19:12:47 +01:00
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
Wouter van Gulik 32b6d4bb9d Fix wrong filename printed in open failure message.
The eeprom filename was printed instead of flash filename.
This really confused me.
2023-12-18 22:08:16 +13:00
Bruno Rohée 83e1118a41
typo fix 2023-11-07 13:51:15 +01:00
Bruno Rohée bc02b2460c
Various typo fixed 2023-11-06 14:14:41 +01:00
Bruno Rohée a3faca61d9
Better messages 2023-11-06 14:12:43 +01:00
Bruno Rohée a9e37bbd50
eeprom -> EEPROM 2023-11-06 14:07:31 +01:00
Bruno Rohée 81db753247
eeprom -> EEPROM 2023-11-06 14:05:18 +01: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