Skip to content

Commit

Permalink
Added two scripts, which are useful for flash size optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueAndi committed May 8, 2023
1 parent 09b6936 commit 454d7cc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions create_list_file.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo off
set PIO_PATH=%USERPROFILE%\.platformio\packages\toolchain-atmelavr\bin
set OBJDUMP=%PIO_PATH%\avr-objdump.exe
set ENV=ConvoyLeaderTarget
set SRC=.pio\build\%ENV%\firmware.elf
set DST=firmware.lst

@echo Create list file of %ENV% to %DST%
%OBJDUMP% -C -d -S %SRC% > %DST%
@echo Ready
pause
11 changes: 11 additions & 0 deletions create_symbols_file.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo off
set PIO_PATH=%USERPROFILE%\.platformio\packages\toolchain-atmelavr\bin
set NM=%PIO_PATH%\avr-nm.exe
set ENV=ConvoyLeaderTarget
set SRC=.pio\build\%ENV%\firmware.elf
set DST=firmware.sym

@echo Create symbol file of %ENV% to %DST%
%NM% -C -S --size-sort %SRC% > %DST%
@echo Ready
pause

0 comments on commit 454d7cc

Please sign in to comment.