NefMoto

Technical => Reverse Engineering => Topic started by: kacperoooni on September 15, 2023, 01:28:22 PM



Title: Me 7.1.1 free ram variables
Post by: kacperoooni on September 15, 2023, 01:28:22 PM
Hi,

Anyone willing to share confirmed free ram variables in IRAM for 4Z7907551R/N? I'm using 0xFB8x adresses but they seems to be used somewhere which results in random ECU resets. Thanks in advance!


Title: Re: Me 7.1.1 free ram variables
Post by: benni4000 on September 15, 2023, 01:30:19 PM
What are you doing?

Ida Shows you mostly if used or not.
But there is enought free


Title: Re: Me 7.1.1 free ram variables
Post by: kacperoooni on September 15, 2023, 01:43:16 PM
What are you doing?

Ida Shows you mostly if used or not.
But there is enought free

Not really, addresses used by pointers aren't shown in IDA


Title: Re: Me 7.1.1 free ram variables
Post by: prj on September 15, 2023, 01:43:53 PM
Most of upper extram is free, especially the part where the bootloader gets copied to.


Title: Re: Me 7.1.1 free ram variables
Post by: kacperoooni on September 15, 2023, 01:54:16 PM
Most of upper extram is free, especially the part where the bootloader gets copied to.

I know about extram free locations, but thanks. Just wanted to go the lazy way and ask about confirmed free locations in internal ram. I'm porting the code I used in 551M and I'm too lazy to add those extp instructions ;)


Title: Re: Me 7.1.1 free ram variables
Post by: Blazius on September 15, 2023, 03:30:51 PM
Disassemble and confirm, only way.

Why do you need IRAM exactly?


Title: Re: Me 7.1.1 free ram variables
Post by: BlackT on September 15, 2023, 06:59:38 PM
I always go with Xref, if Xref show that variable is only used in my function, that is it. Works every time so far


Title: Re: Me 7.1.1 free ram variables
Post by: fknbrkn on September 15, 2023, 11:48:01 PM
I always go with Xref, if Xref show that variable is only used in my function, that is it. Works every time so far


That's a silly way due to few addressing methods, arrays, eeprom ram copy and so on
Best way is the Ida and log this var at warmup cycle


Title: Re: Me 7.1.1 free ram variables
Post by: fknbrkn on September 15, 2023, 11:57:29 PM
I know about extram free locations, but thanks. Just wanted to go the lazy way and ask about confirmed free locations in internal ram. I'm porting the code I used in 551M and I'm too lazy to add those extp instructions ;)

It's a 2 min deal if it's your own code with a sources  ;)



Title: Re: Me 7.1.1 free ram variables
Post by: BlackT on September 16, 2023, 09:53:02 AM

That's a silly way due to few addressing methods, arrays, eeprom ram copy and so on
Best way is the Ida and log this var at warmup cycle
I am talking abot IDA, I write variable in custom code and press X, if is not used anywhere else I use it.
Work so far in various ECUs(at least 10 of them with different software) so it is was pre luck I don't know   ???


Title: Re: Me 7.1.1 free ram variables
Post by: prj on September 16, 2023, 01:33:03 PM
Yes it's luck.