Pages: [1]
Author Topic: Me 7.1.1 free ram variables  (Read 2068 times)
kacperoooni
Full Member
***

Karma: +9/-2
Offline Offline

Posts: 126


« 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!
Logged
benni4000
Newbie
*

Karma: +0/-1
Offline Offline

Posts: 24


« Reply #1 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
Logged
kacperoooni
Full Member
***

Karma: +9/-2
Offline Offline

Posts: 126


« Reply #2 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
« Last Edit: September 15, 2023, 01:45:25 PM by kacperoooni » Logged
prj
Hero Member
*****

Karma: +1072/-481
Offline Offline

Posts: 6035


« Reply #3 on: September 15, 2023, 01:43:53 PM »

Most of upper extram is free, especially the part where the bootloader gets copied to.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
kacperoooni
Full Member
***

Karma: +9/-2
Offline Offline

Posts: 126


« Reply #4 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 Wink
Logged
Blazius
Hero Member
*****

Karma: +89/-40
Offline Offline

Posts: 1282



« Reply #5 on: September 15, 2023, 03:30:51 PM »

Disassemble and confirm, only way.

Why do you need IRAM exactly?
Logged
BlackT
Hero Member
*****

Karma: +79/-40
Offline Offline

Posts: 1425



« Reply #6 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
Logged
fknbrkn
Hero Member
*****

Karma: +186/-24
Offline Offline

Posts: 1454


mk4 1.8T AUM


« Reply #7 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
Logged
fknbrkn
Hero Member
*****

Karma: +186/-24
Offline Offline

Posts: 1454


mk4 1.8T AUM


« Reply #8 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 Wink

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

Logged
BlackT
Hero Member
*****

Karma: +79/-40
Offline Offline

Posts: 1425



« Reply #9 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   Huh
Logged
prj
Hero Member
*****

Karma: +1072/-481
Offline Offline

Posts: 6035


« Reply #10 on: September 16, 2023, 01:33:03 PM »

Yes it's luck.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
Pages: [1]
  Print  
 
Jump to:  

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