Skip to content

Conversation

HaoboGu
Copy link
Owner

@HaoboGu HaoboGu commented Aug 21, 2025

Closes #176

  • basic auto-shift support
  • configure the auto-shift feature in vial

Signed-off-by: Haobo Gu <haobogu@outlook.com>
Copy link

github-actions bot commented Aug 21, 2025

Binary Size Report

use_config/nrf52832_ble

   text	   data	    bss	    dec	    hex	filename
 309220	   5040	  37028	 351288	  55c38	rmk-nrf52832
Diff
    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +1.39Ki  [ = ]       0    .debug_str
  +0.1% +1.06Ki  [ = ]       0    .debug_info
  +0.1%    +659  [ = ]       0    .debug_loc
  +0.3%    +617  [ = ]       0    .strtab
  +0.1%    +261  [ = ]       0    .debug_line
  +0.1%    +228  +0.1%    +228    .text
  +0.2%    +224  [ = ]       0    .symtab
  +0.1%    +104  [ = ]       0    .debug_ranges
  +0.2%     +80  [ = ]       0    .debug_frame
  +0.2%     +56  [ = ]       0    .debug_aranges
  +0.1%     +32  +0.1%     +32    .rodata
  [ = ]       0  +0.0%     +16    .bss
  +0.5%      +3  [ = ]       0    .defmt
  -7.5%      -5  [ = ]       0    [Unmapped]
  +0.1% +4.66Ki  +0.1%    +276    TOTAL

use_config/nrf52840_ble

   text	   data	    bss	    dec	    hex	filename
 345416	   5040	  45620	 396076	  60b2c	rmk-nrf52840
Diff
    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +2.23Ki  [ = ]       0    .debug_str
  +0.1% +2.12Ki  [ = ]       0    .debug_info
  +0.2% +1.11Ki  [ = ]       0    .debug_loc
  +0.3%    +840  +0.3%    +840    .text
  +0.2%    +752  [ = ]       0    .debug_line
  +0.4%    +712  [ = ]       0    .debug_ranges
  +0.2%    +572  [ = ]       0    .strtab
  +0.1%    +160  [ = ]       0    .symtab
  +0.1%     +48  [ = ]       0    .debug_frame
  +0.1%     +40  [ = ]       0    .debug_aranges
  +0.1%     +32  +0.1%     +32    .rodata
  [ = ]       0  +0.0%     +16    .bss
  +0.4%      +3  [ = ]       0    .defmt
 -11.3%      -7  [ = ]       0    [Unmapped]
  +0.1% +8.54Ki  +0.2%    +888    TOTAL

use_config/nrf52840_ble_split

   text	   data	    bss	    dec	    hex	filename
 416820	   6260	  42468	 465548	  71a8c	central

   text	   data	    bss	    dec	    hex	filename
 263292	   5668	  27772	 296732	  4871c	peripheral
Diff

Central Diff

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +1.75Ki  [ = ]       0    .debug_info
  +0.1% +1.39Ki  [ = ]       0    .debug_str
  +0.2%    +723  [ = ]       0    .strtab
  +0.2%    +569  [ = ]       0    .debug_line
  +0.1%    +484  [ = ]       0    .debug_loc
  +0.2%    +320  [ = ]       0    .symtab
  +0.1%    +288  +0.1%    +288    .text
  +0.4%    +160  [ = ]       0    .debug_frame
  +0.3%     +96  [ = ]       0    .debug_aranges
  +0.1%     +32  +0.1%     +32    .rodata
  [ = ]       0  +0.0%     +16    .bss
  +0.0%     +16  [ = ]       0    .debug_ranges
  +4.3%      +3  [ = ]       0    [Unmapped]
  +0.1% +5.77Ki  +0.1%    +336    TOTAL

Peripheral Diff

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.4% +1.41Ki  [ = ]       0    .debug_loc
  +0.0%    +535  [ = ]       0    .debug_str
  +0.1%    +340  +0.1%    +340    .text
  +0.0%    +257  [ = ]       0    .debug_info
  +0.1%     +24  [ = ]       0    .debug_aranges
 -28.4%     -19  [ = ]       0    [Unmapped]
  -0.1%    -116  [ = ]       0    .debug_line
  -0.2%    -240  [ = ]       0    .debug_ranges
  +0.1% +2.18Ki  +0.1%    +340    TOTAL

use_config/pi_pico_w_ble

   text	   data	    bss	    dec	    hex	filename
 579268	      0	  56092	 635360	  9b1e0	rmk-pi-pico-w
Diff
    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +1.65Ki  [ = ]       0    .debug_info
  +0.1% +1.36Ki  [ = ]       0    .debug_str
  +0.1% +1.05Ki  [ = ]       0    .debug_loc
  +0.2%    +664  +0.2%    +664    .text
  +0.2%    +660  [ = ]       0    .debug_line
  +0.2%    +565  [ = ]       0    .strtab
  +0.3%    +496  [ = ]       0    .debug_ranges
  +0.1%     +64  [ = ]       0    .symtab
  +0.1%     +36  [ = ]       0    .debug_frame
  +0.1%     +32  [ = ]       0    .debug_aranges
  +0.0%     +32  +0.0%     +32    .rodata
  [ = ]       0  +0.0%     +16    .bss
   +34%     +11  [ = ]       0    [Unmapped]
  +0.4%      +3  [ = ]       0    .defmt
  +0.1% +6.55Ki  +0.1%    +712    TOTAL

use_config/pi_pico_w_ble_split

   text	   data	    bss	    dec	    hex	filename
 608144	      0	  58656	 666800	  a2cb0	central

   text	   data	    bss	    dec	    hex	filename
 479124	      0	  43608	 522732	  7f9ec	peripheral
Diff

Central Diff

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +1.68Ki  [ = ]       0    .debug_info
  +0.0% +1.34Ki  [ = ]       0    .debug_str
  +0.1% +1.04Ki  [ = ]       0    .debug_loc
  +0.2%    +805  [ = ]       0    .debug_line
  +0.2%    +652  +0.2%    +652    .text
  +0.2%    +569  [ = ]       0    .strtab
  +0.2%    +504  [ = ]       0    .debug_ranges
  +0.2%    +128  [ = ]       0    .symtab
  +0.1%     +36  [ = ]       0    .debug_frame
  +0.1%     +32  [ = ]       0    .debug_aranges
  +0.0%     +32  +0.0%     +32    .rodata
   +52%     +22  [ = ]       0    [Unmapped]
  [ = ]       0  +0.0%     +16    .bss
  +0.4%      +3  [ = ]       0    .defmt
  +0.1% +6.79Ki  +0.1%    +700    TOTAL

Peripheral Diff

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%    +832  [ = ]       0    .debug_str
  +0.0%    +184  [ = ]       0    .debug_info
  +0.1%     +24  [ = ]       0    .debug_aranges
  +0.0%     +20  +0.0%     +20    .text
  +0.0%     +16  [ = ]       0    .debug_line
   +18%      +9  [ = ]       0    [Unmapped]
  +0.0%      +8  [ = ]       0    .debug_ranges
  -0.0%     -13  [ = ]       0    .strtab
  -0.1%     -64  [ = ]       0    .symtab
  -0.0%    -104  [ = ]       0    .debug_loc
  +0.0%    +912  +0.0%     +20    TOTAL

use_config/rp2040

   text	   data	    bss	    dec	    hex	filename
 132444	      0	  13908	 146352	  23bb0	rmk-rp2040
Diff
    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.2% +1.81Ki  [ = ]       0    .debug_str
  +0.2% +1.75Ki  [ = ]       0    .debug_info
  +0.6%    +640  +0.6%    +640    .text
  +0.4%    +620  [ = ]       0    .debug_line
  +0.6%    +542  [ = ]       0    .strtab
  +0.4%    +248  [ = ]       0    .debug_ranges
  +0.0%     +56  [ = ]       0    .debug_loc
  +0.3%     +36  [ = ]       0    .debug_frame
  +0.2%     +32  [ = ]       0    .debug_aranges
  +0.2%     +32  +0.2%     +32    .rodata
  +0.1%     +32  [ = ]       0    .symtab
  [ = ]       0  +0.1%     +16    .bss
  +0.9%      +3  [ = ]       0    .defmt
  +2.0%      +1  [ = ]       0    [Unmapped]
  +0.2% +5.75Ki  +0.5%    +688    TOTAL

use_config/rp2040_split

   text	   data	    bss	    dec	    hex	filename
 144680	      0	  14896	 159576	  26f58	central

   text	   data	    bss	    dec	    hex	filename
  22320	      0	   2280	  24600	   6018	peripheral
Diff

Central Diff

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.2% +1.42Ki  [ = ]       0    .debug_info
  +0.1% +1.36Ki  [ = ]       0    .debug_str
  +0.3% +1.01Ki  [ = ]       0    .debug_loc
  +0.4%    +625  [ = ]       0    .debug_line
  +0.5%    +555  [ = ]       0    .strtab
  +0.4%    +496  +0.4%    +496    .text
  +0.3%    +192  [ = ]       0    .debug_ranges
  +0.2%     +36  [ = ]       0    .debug_frame
  +0.2%     +32  [ = ]       0    .debug_aranges
  +0.2%     +32  +0.2%     +32    .rodata
  +0.1%     +32  [ = ]       0    .symtab
  [ = ]       0  +0.1%     +16    .bss
  +0.9%      +3  [ = ]       0    .defmt
 -28.1%     -16  [ = ]       0    [Unmapped]
  +0.2% +5.74Ki  +0.3%    +544    TOTAL

Peripheral Diff

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1%    +494  [ = ]       0    .debug_str
  +0.0%     +84  [ = ]       0    .debug_info
  +0.2%     +24  [ = ]       0    .debug_aranges
  +0.0%      +4  [ = ]       0    .strtab
  +3.1%      +2  [ = ]       0    [Unmapped]
  +0.1%    +608  [ = ]       0    TOTAL

use_config/stm32f1

   text	   data	    bss	    dec	    hex	filename
  85876	     24	  11852	  97752	  17dd8	rmk-stm32f1
Diff
    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.3% +2.09Ki  [ = ]       0    .debug_info
  +0.1%    +770  [ = ]       0    .debug_str
  +0.5%    +568  [ = ]       0    .debug_line
  +0.6%    +376  [ = ]       0    .debug_ranges
  +0.4%    +372  +0.4%    +372    .text
  +0.1%    +247  [ = ]       0    .debug_loc
  +0.2%     +94  [ = ]       0    .strtab
  +0.2%     +32  [ = ]       0    .debug_frame
  [ = ]       0  +0.1%     +16    .bss
  +0.0%      +8  [ = ]       0    .debug_aranges
 -31.5%     -17  [ = ]       0    [Unmapped]
  +0.2% +4.48Ki  +0.4%    +388    TOTAL

use_config/stm32f4

   text	   data	    bss	    dec	    hex	filename
 136848	    316	  15152	 152316	  252fc	rmk-stm32f4
Diff
    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.3% +2.46Ki  [ = ]       0    .debug_info
  +0.1% +1.32Ki  [ = ]       0    .debug_str
  +0.4%    +686  [ = ]       0    .debug_line
  +0.5%    +640  +0.5%    +640    .text
  +0.3%    +589  [ = ]       0    .debug_loc
  +0.5%    +519  [ = ]       0    .strtab
  +0.5%    +408  [ = ]       0    .debug_ranges
  +0.2%     +64  [ = ]       0    .symtab
  +0.2%     +32  +0.2%     +32    .rodata
  +0.1%     +24  [ = ]       0    .debug_aranges
  [ = ]       0  +0.1%     +16    .bss
  +0.1%     +16  [ = ]       0    .debug_frame
  +0.8%      +3  [ = ]       0    .defmt
  -5.7%      -4  [ = ]       0    [Unmapped]
  +0.2% +6.68Ki  +0.5%    +688    TOTAL

use_config/stm32h7

   text	   data	    bss	    dec	    hex	filename
 123588	    260	  14360	 138208	  21be0	rmk-stm32h7
Diff
    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.2% +1.66Ki  [ = ]       0    .debug_info
  +0.1% +1.12Ki  [ = ]       0    .debug_str
  +0.4%    +652  [ = ]       0    .debug_line
  +0.5%    +540  +0.5%    +540    .text
  +0.2%    +529  [ = ]       0    .debug_loc
  +0.6%    +448  [ = ]       0    .debug_ranges
  +0.2%    +140  [ = ]       0    .strtab
  +0.3%    +112  [ = ]       0    .symtab
  +0.4%     +64  [ = ]       0    .debug_frame
  +0.2%     +32  +0.2%     +32    .rodata
  +0.1%     +24  [ = ]       0    .debug_aranges
  [ = ]       0  +0.1%     +16    .bss
 -41.4%     -29  [ = ]       0    [Unmapped]
  +0.1% +5.24Ki  +0.4%    +588    TOTAL

Signed-off-by: Haobo Gu <haobogu@outlook.com>
Copy link

cloudflare-workers-and-pages bot commented Aug 28, 2025

Deploying rmk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 461aba7
Status: ✅  Deploy successful!
Preview URL: https://c21a84ab.rmk-4a2.pages.dev
Branch Preview URL: https://feat-auto-shift.rmk-4a2.pages.dev

View logs

Signed-off-by: Haobo Gu <haobogu@outlook.com>
Signed-off-by: Haobo Gu <haobogu@outlook.com>
Signed-off-by: Haobo Gu <haobogu@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-shift support
1 participant