fw-rust: Handle data residing in the EEPROM
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
4bc3e84bdd
commit
b34b2810db
2 changed files with 46 additions and 2 deletions
|
@ -12,7 +12,7 @@ command = "avr-size"
|
|||
args = ["--format=avr", "--mcu=${MCU}", "target/avr-atmega328p/debug/clock-generator.elf"]
|
||||
|
||||
[tasks.copy_flash]
|
||||
description = "Copy the flash"
|
||||
description = "Extract the flash"
|
||||
dependencies = ["build"]
|
||||
command = "avr-objcopy"
|
||||
args = ["-O", "ihex", "-j", ".text", "-j", ".data", "target/avr-atmega328p/debug/clock-generator.elf", "target/avr-atmega328p/debug/clock-generator.hex"]
|
||||
|
@ -23,6 +23,18 @@ dependencies = ["copy_flash", "size"]
|
|||
command = "avrdude"
|
||||
args = ["-p", "${MCU}", "-c", "${PROGRAMMER}", "-U", "flash:w:target/avr-atmega328p/debug/clock-generator.hex:a"]
|
||||
|
||||
[tasks.copy_eeprom]
|
||||
description = "Extract the EEPROM"
|
||||
dependencies = ["build"]
|
||||
command = "avr-objcopy"
|
||||
args = ["--change-section-lma", ".eeprom=0", "-O", "ihex", "-j", ".eeprom", "target/avr-atmega328p/debug/clock-generator.elf", "target/avr-atmega328p/debug/clock-generator.eep"]
|
||||
|
||||
[tasks.eeprom]
|
||||
description = "Flash the eeprom"
|
||||
dependencies = ["copy_eeprom", "size"]
|
||||
command = "avrdude"
|
||||
args = ["-p", "${MCU}", "-c", "${PROGRAMMER}", "-U", "eeprom:w:target/avr-atmega328p/debug/clock-generator.eep:a"]
|
||||
|
||||
[tasks.fuses]
|
||||
description = "Burn the fuses"
|
||||
command = "avrdude"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue