mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-09 15:55:37 +00:00
Merge pull request #109 from ferrous-systems/program-header-physical-address
dongle-flash: use program header physical address in ELF -> .hex conversion
This commit is contained in:
commit
72dedf3ea0
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ if the red LED was blinking and you got this message then the device wasn't corr
|
|||
let mut records = vec![];
|
||||
for ph in elf_file.program_iter() {
|
||||
if ph.get_type() == Ok(Type::Load) {
|
||||
let start = ph.offset();
|
||||
let start = ph.physical_addr();
|
||||
|
||||
match ph.get_data(&elf_file).map_err(anyhow::Error::msg)? {
|
||||
SegmentData::Undefined(bytes) => {
|
||||
|
|
Loading…
Reference in a new issue