1
0
mirror of https://github.com/kalymos/PsNee.git synced 2026-01-11 23:53:07 +00:00

add check firmware

This commit is contained in:
kalymos 2025-03-26 20:28:29 +01:00
parent 15d0699258
commit 22bfa31e1e
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,5 @@
name=PSNeeCore
version=1.3.0
version=1.3.1
tools.avrdude.path={runtime.tools.avrdude.path}
tools.avrdude.cmd.path={path}/bin/avrdude
@ -21,6 +21,5 @@ tools.avrdude.erase.pattern="{cmd.path}" "-C{config.path}" {erase.verbose} -p{bu
##tools.avrdude.bootloader.params.quiet=-q -q
##tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.platform.path}/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m
recipe.postupload.0.pattern="{runtime.tools.avrdude.path}/bin/avrdude" -c arduino -p {build.mcu} -P {serial.port} -U flash:r:{build.path}/readback.hex:i"
recipe.postupload.1.pattern="{runtime.tools.avrdude.path}/bin/avrdude" -c arduino -p {build.mcu} -P {serial.port} -U flash:v:{build.path}/{build.project_name}.hex:i"
recipe.postupload.2.pattern="{runtime.tools.avrdude.path}/bin/avrdude" -c arduino -p {build.mcu} -P {serial.port} -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h | findstr /I /C:{build.f_cpu}
tools.avrdude.upload.pattern="{runtime.tools.avrdude.path}/bin/avrdude" -c arduino -p {build.mcu} -P {serial.port} -U flash:w:{build.path}/{build.project_name}.hex:i && {runtime.tools.avrdude.path}/bin/avrdude -c arduino -p {build.mcu} -P {serial.port} -U flash:r:{build.path}/readback.hex:i && (diff -q {build.path}/readback.hex {build.path}/{build.project_name}.hex || fc /b {build.path}\readback.hex {build.path}\{build.project_name}.hex) || echo 'Error: MCU firmware does not match!'"