RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 5:11 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: IDA Tutorial RAM size?
PostPosted: Tue Jul 03, 2018 8:16 pm 
Offline
Newbie

Joined: Fri Nov 03, 2017 3:15 pm
Posts: 16
Location: Fremont
In this topic:
viewtopic.php?f=40&t=6303
Why is the RAM size increased?

Quote:
For 7055, Start is 0xFFFF6000, physical RAM length is 0x7FFF, but enter 0x9FFF. (+0x2000)
For 7058, Start is 0xFFFF0000, physical RAM length is 0xBFFF, but enter 0xFFFF. (+0x4000)


Top
 Profile  
 
 Post subject: Re: IDA Tutorial RAM size?
PostPosted: Thu Jul 12, 2018 3:53 am 
Offline
Newbie

Joined: Fri Nov 03, 2017 3:15 pm
Posts: 16
Location: Fremont
Anyone know?


Top
 Profile  
 
 Post subject: Re: IDA Tutorial RAM size?
PostPosted: Thu Jul 12, 2018 12:48 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
I'm not sure. I don't see a reason for it as anything past the RAMs actual size will not be valid to read and write.


Top
 Profile  
 
 Post subject: Re: IDA Tutorial RAM size?
PostPosted: Thu Jul 12, 2018 1:59 pm 
Offline
Newbie

Joined: Fri Nov 03, 2017 3:15 pm
Posts: 16
Location: Fremont
It makes no sense too me but I thought perhaps it was for some virtual RAM or something.


Top
 Profile  
 
 Post subject: Re: IDA Tutorial RAM size?
PostPosted: Fri Jul 13, 2018 9:04 pm 
Offline
Experienced
User avatar

Joined: Thu Jul 23, 2009 5:46 pm
Posts: 863
The processor peripheral addresses occupy this extra space (ports, CAN, ATU, etc).

_________________
Please do not send me support questions via PM, use the forum instead!


Top
 Profile  
 
 Post subject: Re: IDA Tutorial RAM size?
PostPosted: Fri Jul 13, 2018 9:51 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
The peripherals do occupy RAM address space, just not in the extra range suggested to be added to the default RAM size. Please refer to the CPU Summary spreadsheet in the post viewtopic.php?p=56752#p56752 for the correct peripheral address range. This space is usually defined when you select the CPU type in IDA if you have the extra CFG data defined in the IDA sh3 file (same post).


Top
 Profile  
 
 Post subject: Re: IDA Tutorial RAM size?
PostPosted: Fri Jul 13, 2018 10:54 pm 
Offline
Experienced
User avatar

Joined: Thu Jul 23, 2009 5:46 pm
Posts: 863
Actually they do occupy that range, at least for SH7058.. I can't speak to SH7055. SH7058 peripherals are something like 0xFFFFD000 - 0xFFFFF87F. That's why you set the upper limit to 0xFFFFFFFF not 0xFFFFBFFF.

I'll have to mess with with the CFG some more. IDA automatically defines names for everything in the CFG, but it doesn't automatically create a segment for the peripherals. This is on IDA 6.9.151221 (32-bit) The only way I have been able to get the names in the CFG to populate is to set RAM upper limit to 0xFFFFFFFE before the initial analysis.

Also, if you have issues setting RAM length to 0xFFFF, where the segment is only 1 byte, try setting length to 0xFFFE.

_________________
Please do not send me support questions via PM, use the forum instead!


Top
 Profile  
 
 Post subject: Re: IDA Tutorial RAM size?
PostPosted: Tue Jul 17, 2018 3:01 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
You are correct, my hex math failed me in the last post. With the correct sh3 CFG file there is no reason to extend the RAM range though. IDA will define the peripherals and assign the correct address and decode the instructions directly related to them.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl