aboutsummaryrefslogtreecommitdiff
path: root/Arduino_STM32-MIDI/tools/win/debugging.bat
blob: c45729ee0e47c0cfc55d311267b49683bd13f454 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@Echo off
set fileName=%~n2
set BaseDir=C:\Debugging
set OutputDir=%BaseDir%\%fileName%
IF NOT EXIST %BaseDir%\*.* (echo Need to create directory %BaseDir%)
IF NOT EXIST %OutputDir%\*.* (md %OutputDir%)
set sizeFile=%fileName%.size.txt
set nmFile=%fileName%.nm.txt
set dasmFile=%fileName%.dasm.txt
set pcompFile=%fileName%.pcomp.txt
cd %1

arm-none-eabi-objdump.exe -d -S -l %2.elf > %OutputDir%\%dasmFile%

arm-none-eabi-nm.exe --format="sysv" -C -l  %2.elf > %OutputDir%\%nmFile%

arm-none-eabi-size.exe -t -A %2.elf > %OutputDir%\%sizeFile%
arm-none-eabi-size.exe -t -A -x %2.elf >> %OutputDir%\%sizeFile%
start %OutputDir%

echo Done!