mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Update flash.c
Adding a suggested step to point the user in the right direction. [+] Loading usable ELF segments: [+] 0: V 0x00102000 P 0x00102000 (0x00040888->0x00040888) [R X] @0x94 [!!] 🚨 Error: PHDR is not contained in Flash [!!] 🚨 Firmware probably too big for your device [=] The flashing procedure failed, follow the suggested steps! [+] All done
This commit is contained in:
parent
1d883db517
commit
33b48ae205
1 changed files with 2 additions and 1 deletions
|
@ -123,7 +123,8 @@ static int build_segs_from_phdrs(flash_file_t *ctx, FILE *fd, Elf32_Phdr *phdrs,
|
||||||
if (paddr < FLASH_START || (paddr + filesz) > flash_end) {
|
if (paddr < FLASH_START || (paddr + filesz) > flash_end) {
|
||||||
PrintAndLogEx(ERR, "Error: PHDR is not contained in Flash");
|
PrintAndLogEx(ERR, "Error: PHDR is not contained in Flash");
|
||||||
if ((paddr + filesz) > flash_end) {
|
if ((paddr + filesz) > flash_end) {
|
||||||
PrintAndLogEx(ERR, "Firmware probably too big for your device");
|
PrintAndLogEx(ERR, "Firmware is probably too big for your device");
|
||||||
|
PrintAndLogEx(ERR, "See README.md for information on compiling for platforms with 256KB of flash memory");
|
||||||
}
|
}
|
||||||
return PM3_EFILE;
|
return PM3_EFILE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue