Pages: [1]
Author Topic: IDApro - Correct way to load binary  (Read 3389 times)
flamy
Full Member
***

Karma: +6/-0
Offline Offline

Posts: 56


« on: February 13, 2023, 03:27:08 PM »

Hi,
generally it is said to split up the binary of a flash (e.g. 1MB) into two files (64k & 960k),
to load the 64k ROM file with an offset of 0x800000 and the 960k file with an offset of 0x810000.
Worked most of the time for me until now.

But, I'm wondering if it is correct to split only in two parts as I recognized the following in a dump:
Code:
ROM:00801770                 calls   80h, sub_807E9A     <= references to address space 0x80....
ROM:00801774                 mov     S0TIC, #3Eh
ROM:00801778                 mov     r4, word_E08A
ROM:0080177C                 mov     r5, word_E08C
ROM:00801780                 calls   0, 1342h ; 1342h    <= references to address space 0x00....
ROM:00801784                 mov     S0EIC, #66h

When I load the 64k with no offset, there is no code at address space "0x80...." available
and if I load with an offset there is no code at "0x00...." available

Has anybody any recommendations in how many parts of which size I should separate the binary and what offsets to use when loading them?
Logged
flamy
Full Member
***

Karma: +6/-0
Offline Offline

Posts: 56


« Reply #1 on: February 17, 2023, 01:50:52 AM »

Nobody? Huh
Logged
fragolas
Jr. Member
**

Karma: +17/-0
Offline Offline

Posts: 39


« Reply #2 on: February 17, 2023, 04:08:16 AM »

There is a ton of information about this spread on this forum. Search it.
One more thing, the first 32k (not 64) is the irom, and most tools don't read it. I use minimon for that. You can copy the first 32k of the main flash, sometimes there the same, other's there not.
If you have a damos for that file, check how the firmware is partitioned.
And again, search and read.
Good luck.

Enviado do meu M2102J20SG através do Tapatalk

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.013 seconds with 17 queries. (Pretty URLs adds 0.001s, 0q)