PicoCalc_kbd_firmware_v1.2.bin

* Read battery percentage with charging status flag
* Read and set keyboard backlight
* Bug fix low_bat,add debounce to avoid false shutdown
* Depricated report_bat()
This commit is contained in:
cuu 2025-04-28 14:11:43 +08:00
parent 111319e22d
commit b465637ca5
3 changed files with 2087 additions and 1 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -137,7 +137,7 @@ Also if We want extract firmware from keyboard,here is the steps:
here is sample correct extracting logs from linux : here is sample correct extracting logs from linux :
``` ```
$ sudo stm32flash -r PicoCalc_firmware_v1.1.bin -S 0x08000000:65536 /dev/ttyUSB0 $ sudo stm32flash -r PicoCalc_kbd_firmware_v1.1.bin -S 0x08000000:65536 /dev/ttyUSB0
stm32flash 0.7 stm32flash 0.7
http://stm32flash.sourceforge.net/ http://stm32flash.sourceforge.net/
@ -155,5 +155,41 @@ Memory read
Read address 0x08010000 (100.00%) Done. Read address 0x08010000 (100.00%) Done.
``` ```
### Write firmware bin file back to the keyboard
```
sudo stm32flash -w PicoCalc_kbd_firmware_v1.1.bin -v -S 0x08000000 /dev/ttyUSB0
```
sample writing back log:
```
stm32flash 0.7
http://stm32flash.sourceforge.net/
Using Parser : Raw BINARY
Location : 0x8000000
Size : 65536
Interface serial_posix: 57600 8E1
Version : 0x22
Option 1 : 0x00
Option 2 : 0x00
Device ID : 0x0410 (STM32F10xxx Medium-density)
- RAM : Up to 20KiB (512b reserved by bootloader)
- Flash : Up to 128KiB (size first sector: 4x1024)
- Option RAM : 16b
- System RAM : 2KiB
Write to memory
Erasing memory
Wrote and verified address 0x08010000 (100.00%) Done.
```
### Convert firmware bin to intel hex format
```
srec_cat PicoCalc_kbd_firmware_v1.1.bin -Binary -offset 0x08000000 -output PicoCalc_kbd_firmware_v1.1.hex -Intel
```