Skip to content

Add support for USB logging on peripheral - #1000

Open
tompre wants to merge 1 commit into
rmk-rs:mainfrom
tompre:feat/peripheral-usb-log
Open

Add support for USB logging on peripheral#1000
tompre wants to merge 1 commit into
rmk-rs:mainfrom
tompre:feat/peripheral-usb-log

Conversation

@tompre

@tompre tompre commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Adds usb init function and logging task for the peripheral depending on the usb_log feature flag.
Should this be a separate feature?

Currently this works for nrf52 only, should I add support for rp2040?

Currently peripheral usb logging is mutually exclusive with dfu, should I create a common usb_task for the two? Would that even work with the available hardware resources?

It changes the default log level to trace, so one can change the log level without touching rmk code. I added docs for this.

Let me know if I should change anything.

@HaoboGu

HaoboGu commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the work! Comments from me:

  1. The default log level should be set to info/debug? trace is quite verbose sometimes
  2. Yes, it would be great to have it on rp2040
  3. The USB instance can be shared, USB-DFU and logging are different endpoints, so they can co-exist.

@tompre

tompre commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

New version:

  1. The default log level should be set to info/debug? trace is quite verbose sometimes

The log level filter in embassy_usb_logger is set to trace, so all levels are supported without changing the code.
The default log level is set to debug in rmk/Cargo.toml via feature and can be overridden by the user as explained in the docs.

  1. Yes, it would be great to have it on rp2040

I think I should work for rp2040 too, I can not test it though.

  1. The USB instance can be shared, USB-DFU and logging are different endpoints, so they can co-exist.

I combined the logic of run_peripheral_dfu and run_peripheral_usb_logger into run_peripheral_usb.

I'm unsure though, if both features run together, as I could not test it at the moment.

@tompre
tompre force-pushed the feat/peripheral-usb-log branch from 4ede2b2 to 421e500 Compare August 3, 2026 15:20
@tompre
tompre force-pushed the feat/peripheral-usb-log branch from 421e500 to 2f6b932 Compare August 3, 2026 15:42
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Size Report

Example main PR Diff .text .data .bss
use_config/nrf52832_ble 397.9 KiB 397.9 KiB +0.00% ⬇️ -4 0 0
use_config/nrf52840_ble 439.1 KiB 439.3 KiB +0.03% ⬆️ +160 0 +16
use_config/nrf52840_ble_split (central) 501.6 KiB 501.2 KiB -0.07% ⬇️ -392 0 +16
use_config/nrf52840_ble_split (peripheral) 320.9 KiB 320.9 KiB +0.00% 0 0 0
use_config/pi_pico_w_ble 671.8 KiB 671.9 KiB +0.01% ⬆️ +104 0 +16
use_config/rp2040 146.2 KiB 146.3 KiB +0.06% ⬆️ +84 0 +16
use_config/rp2040_split (central) 159.7 KiB 159.9 KiB +0.06% ⬆️ +96 0 +16
use_config/rp2040_split (peripheral) 27.9 KiB 27.9 KiB +0.00% 0 0 0
use_config/stm32f1 62.6 KiB 62.6 KiB +0.12% ⬆️ +80 0 0
use_config/stm32h7 100.8 KiB 100.5 KiB -0.31% ⬇️ -336 0 +16
use_rust/nrf52832_ble 386.2 KiB 386.2 KiB +0.00% ⬇️ -4 0 0
use_rust/nrf52840_ble 436.0 KiB 436.2 KiB +0.03% ⬆️ +132 0 +16
use_rust/nrf52840_ble_split (central) 505.2 KiB 504.8 KiB -0.06% ⬇️ -344 0 +16
use_rust/nrf52840_ble_split (peripheral) 318.9 KiB 318.9 KiB +0.00% 0 0 0
use_rust/pi_pico_w_ble 671.6 KiB 671.7 KiB +0.01% ⬆️ +92 0 +16
use_rust/rp2040 145.5 KiB 145.6 KiB +0.01% ⬆️ +12 0 +16
use_rust/rp2040_split (central) 158.2 KiB 158.3 KiB +0.05% ⬆️ +80 0 +16
use_rust/rp2040_split (peripheral) 28.2 KiB 28.2 KiB +0.00% 0 0 0
use_rust/stm32f1 61.8 KiB 61.9 KiB +0.11% ⬆️ +72 0 0
use_rust/stm32h7 119.6 KiB 119.7 KiB +0.03% ⬆️ +32 0 +16
use_config/nrf52832_ble — 397.9 KiB → 397.9 KiB (+0.00% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 365452	   8620	  33352	 407424	  63780	rmk-nrf52832

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 365456	   8620	  33352	 407428	  63784	rmk-nrf52832

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%     +12  [ = ]       0    .debug_str
  +0.0%      +3  [ = ]       0    .strtab
  +1.9%      +1  [ = ]       0    [Unmapped]
  -0.0%      -4  -0.0%      -4    .text
  -0.0%    -216  [ = ]       0    .debug_info
  -0.1%    -240  [ = ]       0    .debug_line
  -0.0%    -444  -0.0%      -4    TOTAL
use_config/nrf52840_ble — 439.1 KiB → 439.3 KiB (+0.03% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 397784	   8628	  43392	 449804	  6dd0c	rmk-nrf52840

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 397624	   8628	  43376	 449628	  6dc5c	rmk-nrf52840

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +4.05Ki  [ = ]       0    .debug_str
  +0.4% +2.75Ki  [ = ]       0    .debug_loc
  +0.1% +1.08Ki  [ = ]       0    .debug_info
  +0.2%    +520  [ = ]       0    .debug_ranges
  +0.0%    +160  +0.0%    +160    .text
  +0.1%     +96  [ = ]       0    .symtab
  +0.0%     +59  [ = ]       0    .strtab
  +0.5%     +39  [ = ]       0    .debug_abbrev
  +0.1%     +32  [ = ]       0    .debug_frame
  [ = ]       0  +0.0%     +16    .bss
  +0.0%     +16  [ = ]       0    .debug_aranges
  -2.9%      -2  [ = ]       0    [Unmapped]
  -0.0%     -40  [ = ]       0    .debug_line
  +0.1% +8.75Ki  +0.0%    +176    TOTAL
use_config/nrf52840_ble_split (central) — 501.6 KiB → 501.2 KiB (-0.07% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 455972	   8684	  48560	 513216	  7d4c0	central

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 456364	   8684	  48544	 513592	  7d638	central

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +5.77Ki  [ = ]       0    .debug_str
  +0.1% +3.23Ki  [ = ]       0    .debug_info
  [ = ]       0  +0.0%     +16    .bss
   +16%      +9  [ = ]       0    [Unmapped]
  +0.0%      +3  [ = ]       0    .strtab
  -0.3%    -136  [ = ]       0    .debug_aranges
  -0.0%    -141  [ = ]       0    .debug_line
  -0.4%    -244  [ = ]       0    .debug_frame
  -0.1%    -392  -0.1%    -392    .text
  -0.3%    -496  [ = ]       0    .symtab
  -0.4% -1.11Ki  [ = ]       0    .debug_ranges
  -1.2% -10.2Ki  [ = ]       0    .debug_loc
  -0.0% -3.62Ki  -0.1%    -376    TOTAL
use_config/nrf52840_ble_split (peripheral) — 320.9 KiB → 320.9 KiB (+0.00%)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 292716	   8500	  27424	 328640	  503c0	peripheral

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 292716	   8500	  27424	 328640	  503c0	peripheral

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%      +2  [ = ]       0    .debug_info
  +0.0%      +2  [ = ]       0    .debug_loc
  +2.0%      +1  [ = ]       0    [Unmapped]
  -0.0%      -1  [ = ]       0    .debug_line
  -0.0%     -16  [ = ]       0    .strtab
  -0.0%     -32  [ = ]       0    .debug_str
  -0.0%     -44  [ = ]       0    TOTAL
use_config/pi_pico_w_ble — 671.8 KiB → 671.9 KiB (+0.01% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 635112	      0	  52920	 688032	  a7fa0	rmk-pi-pico-w

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 635008	      0	  52904	 687912	  a7f28	rmk-pi-pico-w

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.6% +6.68Ki  [ = ]       0    .debug_loc
  +0.1% +3.33Ki  [ = ]       0    .debug_str
  +0.1% +1.64Ki  [ = ]       0    .debug_info
  +0.1%    +184  [ = ]       0    .debug_ranges
  +0.2%    +128  [ = ]       0    .symtab
  +0.0%    +104  +0.0%    +104    .text
   +41%     +21  [ = ]       0    [Unmapped]
  +0.0%     +19  [ = ]       0    .strtab
  [ = ]       0  +0.0%     +16    .bss
  +0.0%     +11  [ = ]       0    .debug_line
  +0.1% +12.1Ki  +0.0%    +120    TOTAL
use_config/rp2040 — 146.2 KiB → 146.3 KiB (+0.06% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 135872	      0	  13908	 149780	  24914	rmk-rp2040

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 135788	      0	  13892	 149680	  248b0	rmk-rp2040

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +1.9% +5.75Ki  [ = ]       0    .debug_loc
  +0.2% +3.40Ki  [ = ]       0    .debug_str
  +0.1% +1.32Ki  [ = ]       0    .debug_info
  +0.7%    +632  [ = ]       0    .debug_ranges
  +0.1%    +229  [ = ]       0    .debug_line
  +0.3%     +96  [ = ]       0    .symtab
  +0.1%     +84  +0.1%     +84    .text
  +0.0%     +26  [ = ]       0    .strtab
  [ = ]       0  +0.1%     +16    .bss
   +24%      +9  [ = ]       0    [Unmapped]
  +0.3% +11.5Ki  +0.1%    +100    TOTAL
use_config/rp2040_split (central) — 159.7 KiB → 159.9 KiB (+0.06% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 148844	      0	  14844	 163688	  27f68	central

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 148748	      0	  14828	 163576	  27ef8	central

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +1.3% +4.59Ki  [ = ]       0    .debug_loc
  +0.2% +4.11Ki  [ = ]       0    .debug_str
  +0.1% +1.32Ki  [ = ]       0    .debug_info
  +0.5%    +512  [ = ]       0    .debug_ranges
  +0.1%    +255  [ = ]       0    .debug_line
  +0.1%     +96  +0.1%     +96    .text
  +0.1%     +72  [ = ]       0    .strtab
  +0.2%     +64  [ = ]       0    .symtab
  [ = ]       0  +0.1%     +16    .bss
  -7.7%      -3  [ = ]       0    [Unmapped]
  +0.3% +11.0Ki  +0.1%    +112    TOTAL
use_config/rp2040_split (peripheral) — 27.9 KiB → 27.9 KiB (+0.00%)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  25696	     60	   2804	  28560	   6f90	peripheral

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  25696	     60	   2804	  28560	   6f90	peripheral

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%     +92  [ = ]       0    .debug_str
  +0.0%     +92  [ = ]       0    TOTAL
use_config/stm32f1 — 62.6 KiB → 62.6 KiB (+0.12% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  57768	     28	   6336	  64132	   fa84	rmk-stm32f1

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  57688	     28	   6336	  64052	   fa34	rmk-stm32f1

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.2% +1.41Ki  [ = ]       0    .debug_str
  +0.1%    +852  [ = ]       0    .debug_info
  +0.4%    +174  [ = ]       0    .strtab
  +0.1%    +109  [ = ]       0    .debug_line
  +0.2%    +104  [ = ]       0    .debug_ranges
  +0.1%     +80  +0.1%     +80    .text
  +0.3%     +44  [ = ]       0    .debug_frame
  +0.2%     +32  [ = ]       0    .symtab
  +0.3%     +16  [ = ]       0    .debug_aranges
 -28.3%     -17  [ = ]       0    [Unmapped]
  -0.1%    -157  [ = ]       0    .debug_loc
  +0.1% +2.62Ki  +0.1%     +80    TOTAL
use_config/stm32h7 — 100.8 KiB → 100.5 KiB (-0.31% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  94508	    264	   8128	 102900	  191f4	rmk-stm32h7

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  94844	    264	   8112	 103220	  19334	rmk-stm32h7

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.3% +5.37Ki  [ = ]       0    .debug_str
  +0.1%   +1000  [ = ]       0    .debug_info
  +0.5%    +332  [ = ]       0    .strtab
  [ = ]       0  +0.2%     +16    .bss
   +34%     +16  [ = ]       0    [Unmapped]
  -0.1%     -24  [ = ]       0    .debug_aranges
  -0.2%     -32  [ = ]       0    .debug_frame
  -0.5%    -128  [ = ]       0    .symtab
  -0.4%    -336  -0.4%    -336    .text
  -0.4%    -504  [ = ]       0    .debug_line
  -5.1% -3.51Ki  [ = ]       0    .debug_ranges
  -3.3% -5.99Ki  [ = ]       0    .debug_loc
  -0.1% -3.82Ki  -0.3%    -320    TOTAL
use_rust/nrf52832_ble — 386.2 KiB → 386.2 KiB (+0.00% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 353496	   8620	  33328	 395444	  608b4	rmk-nrf52832

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 353500	   8620	  33328	 395448	  608b8	rmk-nrf52832

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +3.92Ki  [ = ]       0    .debug_str
  +0.1% +1.03Ki  [ = ]       0    .debug_info
  +0.2%    +450  [ = ]       0    .strtab
  +0.1%    +235  [ = ]       0    .debug_line
  +0.8%     +68  [ = ]       0    .debug_abbrev
  +0.0%     +10  [ = ]       0    .debug_loc
  +7.3%      +3  [ = ]       0    [Unmapped]
  -0.0%      -4  -0.0%      -4    .text
  +0.1% +5.70Ki  -0.0%      -4    TOTAL
use_rust/nrf52840_ble — 436.0 KiB → 436.2 KiB (+0.03% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 397352	   8628	  40640	 446620	  6d09c	rmk-nrf52840

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 397220	   8628	  40624	 446472	  6d008	rmk-nrf52840

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +3.95Ki  [ = ]       0    .debug_str
  +0.4% +2.72Ki  [ = ]       0    .debug_loc
  +0.1% +1.49Ki  [ = ]       0    .debug_info
  +0.1%    +256  [ = ]       0    .debug_ranges
  +0.0%    +157  [ = ]       0    .debug_line
  +0.0%    +132  +0.0%    +132    .text
  +0.0%     +64  [ = ]       0    .symtab
  +0.0%     +31  [ = ]       0    .strtab
  [ = ]       0  +0.0%     +16    .bss
  +0.0%     +16  [ = ]       0    .debug_frame
  +0.0%      +8  [ = ]       0    .debug_aranges
  -9.1%      -5  [ = ]       0    [Unmapped]
  +0.1% +8.80Ki  +0.0%    +148    TOTAL
use_rust/nrf52840_ble_split (central) — 505.2 KiB → 504.8 KiB (-0.06% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 457740	   8684	  50528	 516952	  7e358	central

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 458084	   8684	  50512	 517280	  7e4a0	central

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +4.98Ki  [ = ]       0    .debug_str
  +0.1% +1.21Ki  [ = ]       0    .debug_info
  +0.1%    +551  [ = ]       0    .strtab
  +0.0%    +122  [ = ]       0    .debug_line
  +0.1%     +80  [ = ]       0    .symtab
  +0.1%     +60  [ = ]       0    .debug_frame
  [ = ]       0  +0.0%     +16    .bss
  +0.0%     +16  [ = ]       0    .debug_aranges
 -15.2%     -10  [ = ]       0    [Unmapped]
  -0.4%     -39  [ = ]       0    .debug_abbrev
  -0.1%    -344  -0.1%    -344    .text
  -0.2%    -424  [ = ]       0    .debug_ranges
  -0.4% -3.37Ki  [ = ]       0    .debug_loc
  +0.0% +2.83Ki  -0.1%    -328    TOTAL
use_rust/nrf52840_ble_split (peripheral) — 318.9 KiB → 318.9 KiB (+0.00%)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 290876	   8500	  27192	 326568	  4fba8	peripheral

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 290876	   8500	  27192	 326568	  4fba8	peripheral

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%    +566  [ = ]       0    .debug_str
  +0.0%     +31  [ = ]       0    .strtab
  +1.5%      +1  [ = ]       0    [Unmapped]
  -0.0%     -10  [ = ]       0    .debug_loc
  +0.0%    +588  [ = ]       0    TOTAL
use_rust/pi_pico_w_ble — 671.6 KiB → 671.7 KiB (+0.01% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 634800	      0	  53024	 687824	  a7ed0	rmk-pi-pico-w

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 634708	      0	  53008	 687716	  a7e64	rmk-pi-pico-w

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.5% +5.55Ki  [ = ]       0    .debug_loc
  +0.1% +3.44Ki  [ = ]       0    .debug_str
  +0.1% +1.27Ki  [ = ]       0    .debug_info
  +0.1%    +248  [ = ]       0    .debug_ranges
  +0.0%     +92  +0.0%     +92    .text
  +0.0%     +62  [ = ]       0    .debug_line
  [ = ]       0  +0.0%     +16    .bss
  -0.0%      -6  [ = ]       0    .strtab
  -0.0%     -32  [ = ]       0    .symtab
  +0.1% +10.6Ki  +0.0%    +108    TOTAL
use_rust/rp2040 — 145.5 KiB → 145.6 KiB (+0.01% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 135304	      0	  13748	 149052	  2463c	rmk-rp2040

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 135292	      0	  13732	 149024	  24620	rmk-rp2040

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +2.0% +5.82Ki  [ = ]       0    .debug_loc
  +0.2% +3.36Ki  [ = ]       0    .debug_str
  +0.1% +1.35Ki  [ = ]       0    .debug_info
  +0.8%    +640  [ = ]       0    .debug_ranges
  +0.2%    +315  [ = ]       0    .debug_line
  +0.2%     +64  [ = ]       0    .symtab
  [ = ]       0  +0.1%     +16    .bss
  +0.0%     +12  +0.0%     +12    .text
  +0.0%      +5  [ = ]       0    .strtab
 -30.2%     -16  [ = ]       0    [Unmapped]
  +0.3% +11.5Ki  +0.0%     +28    TOTAL
use_rust/rp2040_split (central) — 158.2 KiB → 158.3 KiB (+0.05% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 147552	      0	  14588	 162140	  2795c	central

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 147472	      0	  14572	 162044	  278fc	central

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +1.1% +3.77Ki  [ = ]       0    .debug_loc
  +0.2% +3.21Ki  [ = ]       0    .debug_str
  +0.1% +1.28Ki  [ = ]       0    .debug_info
  +0.5%    +440  [ = ]       0    .debug_ranges
  +0.1%     +80  +0.1%     +80    .text
  +0.0%     +57  [ = ]       0    .debug_line
  [ = ]       0  +0.1%     +16    .bss
 -25.4%     -16  [ = ]       0    [Unmapped]
  -0.0%     -23  [ = ]       0    .strtab
  -0.3%     -96  [ = ]       0    .symtab
  +0.2% +8.69Ki  +0.1%     +96    TOTAL
use_rust/rp2040_split (peripheral) — 28.2 KiB → 28.2 KiB (+0.00%)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  25796	     60	   3068	  28924	   70fc	peripheral

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  25796	     60	   3068	  28924	   70fc	peripheral

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  [ = ]       0  [ = ]       0    TOTAL
use_rust/stm32f1 — 61.8 KiB → 61.9 KiB (+0.11% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  57088	     28	   6272	  63388	   f79c	rmk-stm32f1

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  57016	     28	   6272	  63316	   f754	rmk-stm32f1

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.2% +1.45Ki  [ = ]       0    .debug_str
  +0.2%    +852  [ = ]       0    .debug_info
  +0.4%    +164  [ = ]       0    .strtab
  +0.1%    +142  [ = ]       0    .debug_loc
  +0.1%     +89  [ = ]       0    .debug_line
  +0.1%     +72  +0.1%     +72    .text
  +0.1%     +40  [ = ]       0    .debug_ranges
  +0.2%     +32  [ = ]       0    .symtab
  +0.2%     +28  [ = ]       0    .debug_frame
  +0.2%      +8  [ = ]       0    .debug_aranges
 -18.3%     -11  [ = ]       0    [Unmapped]
  +0.2% +2.84Ki  +0.1%     +72    TOTAL
use_rust/stm32h7 — 119.6 KiB → 119.7 KiB (+0.03% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 108212	    320	  14028	 122560	  1dec0	rmk-stm32h7

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 108180	    320	  14012	 122512	  1de90	rmk-stm32h7

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.2% +4.05Ki  [ = ]       0    .debug_str
  +0.1% +1.12Ki  [ = ]       0    .debug_info
  +0.2%    +160  [ = ]       0    .debug_ranges
  +0.1%     +32  [ = ]       0    .symtab
  +0.0%     +32  +0.0%     +32    .text
  +0.0%     +24  [ = ]       0    .strtab
  [ = ]       0  +0.1%     +16    .bss
  +0.1%     +16  [ = ]       0    .debug_frame
  +0.0%      +8  [ = ]       0    .debug_aranges
  -0.0%     -14  [ = ]       0    .debug_loc
  -0.1%    -139  [ = ]       0    .debug_line
  +0.1% +5.29Ki  +0.0%     +48    TOTAL

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.

2 participants