Skip to content

Commit 8c57965

Browse files
committed
Add target to create bin file
1 parent ad278dd commit 8c57965

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ compiler.ar.flags=rcs
3131
compiler.objcopy.cmd=avr-objcopy
3232
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
3333
compiler.elf2hex.flags=-O ihex -R .eeprom
34+
compiler.elf2hex.bin.flags=-O binary -R .eeprom
3435
compiler.elf2hex.cmd=avr-objcopy
3536
compiler.ldflags=
3637
compiler.size.cmd=avr-size
@@ -70,6 +71,7 @@ recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.f
7071
## Create output files (.eep and .hex)
7172
recipe.objcopy.eep.pattern="{compiler.path}{compiler.objcopy.cmd}" {compiler.objcopy.eep.flags} {compiler.objcopy.eep.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.eep"
7273
recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex"
74+
recipe.objcopy.bin.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.bin.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.bin"
7375

7476
## Save hex
7577
recipe.output.tmp_file={build.project_name}.hex

0 commit comments

Comments
 (0)