RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 2:13 pm

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: SH7055/SH7058/SH72531/SH72543R Processor Register Listing
PostPosted: Sun Feb 14, 2010 1:22 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
I put together this register definition for the SH7055 / SH7058 / SH72531 & SH72543R for use with IDA.
Let me know if you see any errors.
Attachment:
sh3.zip
Attachment:
Renesas CPU Summary.xls


You do not have the required permissions to view the files attached to this post.


Last edited by dschultz on Wed Feb 17, 2010 8:32 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: SH7058 Processor Register Listing
PostPosted: Mon Feb 15, 2010 9:57 am 
Offline
Experienced
User avatar

Joined: Tue Feb 12, 2008 11:00 pm
Posts: 153
Thanks so much! Going through the manual to find all of these addresses is pretty tedious, this will definitely make things much easier. Should have some time to try it out later.

_________________
06 Wrx Wagon 2.3 longrod in the works


Top
 Profile  
 
 Post subject: Re: SH7058 Processor Register Listing
PostPosted: Mon Feb 15, 2010 7:13 pm 
Offline
Experienced
User avatar

Joined: Tue Feb 12, 2008 11:00 pm
Posts: 153
Everything worked great with the exception of some HCAN registers:

I got a huge list of these for them:
FFFFDCF2: can't rename byte as 'HCAN1_MB31[17],[18]_W' because it contains a bad character ','.

Edit: I was looking for a way to get Xrefs for the registers, but I realized that instead of binary pattern searching for the address and parsing all of the hits, a text pattern search only hits the actual uses, making things just as easy as Xrefs.

Thanks!

_________________
06 Wrx Wagon 2.3 longrod in the works


Top
 Profile  
 
 Post subject: Re: SH7058 Processor Register Listing
PostPosted: Mon Feb 15, 2010 8:43 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Shoot, I thought I cleaned all those out... try the new version in the OP.
I'll add in the SH7055 in the next day or two.


Top
 Profile  
 
 Post subject: Re: SH7055 & SH7058 Processor Register Listing
PostPosted: Wed Feb 17, 2010 8:33 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Added SH7055, now in the OP zip file.


Top
 Profile  
 
 Post subject: Re: SH7055 & SH7058 Processor Register Listing
PostPosted: Mon Jun 07, 2010 2:02 am 
Offline
Moderator

Joined: Wed Nov 22, 2006 10:23 pm
Posts: 2565
This is really useful, thanks!

_________________
2005 Legacy GT w/ ATP 3076, IWG, MBC, BCS, BC 272, LC, FFS, OMG
Please don't send questions via PM. Post a thread and send me a link to it instead. Thanks!


Top
 Profile  
 
 Post subject: Re: SH7055 & SH7058 Processor Register Listing
PostPosted: Wed Jun 16, 2010 1:34 pm 
Offline
RomRaider Donator

Joined: Tue Apr 24, 2007 6:49 pm
Posts: 243
Probably a stupid question but how do you use this configuration file? Do you rename it to IDA.cfg and put it in the IDA's root directory? I don't see a menu command for loading the configuration file. I'm a IDA newb, so it's probably something simple.

Thanks!


Top
 Profile  
 
 Post subject: Re: SH7055 & SH7058 Processor Register Listing
PostPosted: Wed Jun 16, 2010 2:49 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Just replace the current file with the one you downloaded from here.


Top
 Profile  
 
 Post subject: Re: SH7055 & SH7058 Processor Register Listing
PostPosted: Wed Jun 16, 2010 2:58 pm 
Offline
RomRaider Donator

Joined: Tue Apr 24, 2007 6:49 pm
Posts: 243
dschultz wrote:
Just replace the current file with the one you downloaded from here.


Oh my god I'm such a newb. I completely missed the CFG directory...lol. Sorry and thanks. :)


Top
 Profile  
 
 Post subject: Re: SH7055 & SH7058 Processor Register Listing
PostPosted: Tue Jan 11, 2011 6:01 pm 
Offline
Senior Member

Joined: Mon Jan 19, 2009 2:31 pm
Posts: 1615
Location: Moscow, Russia
Following corrections in sh3.cfg make evident where AUD debugging is disabled inside the ROM.

.SH7055
; Power-down State
SYSCR_B 0xFFFFF708
MSTCR_[W]_W 0xFFFFF70A
MSTCR_[R]_B 0xFFFFF70B

.SH7058
; Power-Down State
SYSCR1_B 0xFFFFF708
SYSCR2_[W]_W 0xFFFFF70A
SYSCR2_[R]_B 0xFFFFF70B

.SH7058S
; Power-Down State
SYSCR1_B 0xFFFFF708
SYSCR2_[W]_W 0xFFFFF70A
SYSCR2_[R]_B 0xFFFFF70B

OS is configured to disable AUD debugging just after secondary bootloader (using SCI2 communication port) transfers control to OS.


Top
 Profile  
 
 Post subject: Re: SH7055 & SH7058 Processor Register Listing
PostPosted: Tue Jan 11, 2011 6:40 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Update complete.


Top
 Profile  
 
 Post subject: Re: SH7055 & SH7058 Processor Register Listing
PostPosted: Thu Feb 24, 2011 1:00 pm 
Offline
Newbie
User avatar

Joined: Sun Dec 10, 2006 4:04 am
Posts: 96
Location: Sacramento, CA
IDA newb here.

I don't see any addresses beyond the end of the RAM that ends at 0xFFFFBFFF

Should I see this stuff somewhere when looking at the ROM or is it related to some other function within IDA?

_________________
05 WRX STi
My Mods


Top
 Profile  
 
 Post subject: Re: SH7055 & SH7058 Processor Register Listing
PostPosted: Thu Feb 24, 2011 2:55 pm 
Offline
Experienced

Joined: Sat May 31, 2008 10:14 pm
Posts: 125
Location: Quebec
from here: http://www.romraider.com/forum/viewtopi ... =25&t=6303

RAM segment:

For 7055, Start is 0xFFFF6000 and Length is 0x8000
For 7058, Start is 0xFFFF0000 and Length is 0xC000
Be sure to check the box to make the RAM segment.

it is documented in the spec sheet.

Mart

Double Phister wrote:
IDA newb here.

I don't see any addresses beyond the end of the RAM that ends at 0xFFFFBFFF

Should I see this stuff somewhere when looking at the ROM or is it related to some other function within IDA?


Top
 Profile  
 
 Post subject: Re: SH7055 & SH7058 Processor Register Listing
PostPosted: Thu Feb 24, 2011 7:34 pm 
Offline
Newbie
User avatar

Joined: Sun Dec 10, 2006 4:04 am
Posts: 96
Location: Sacramento, CA
Mart wrote:
from here: viewtopic.php?f=25&t=6303

RAM segment:

For 7055, Start is 0xFFFF6000 and Length is 0x7FFF
For 7058, Start is 0xFFFF0000 and Length is 0xBFFF
Be sure to check the box to make the RAM segment.

it is documented in the spec sheet.

Mart


Ya I got that part. My question was what does this register listing do for me? Should I be able to see the addresses above 0xFFFFBFFE (I'm looking at a 7058)? Will this just label references in the ROM to these registers with nicer names?

_________________
05 WRX STi
My Mods


Top
 Profile  
 
 Post subject: Re: SH7055 & SH7058 Processor Register Listing
PostPosted: Thu Feb 24, 2011 8:32 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
If you made the RAM segment from 0xFFFF0000 to 0xFFFFFFFF before you did the analysis then you can see them at the high end of RAM, otherwise not.

If you used a RAM segment of 0xFFFF0000 to 0xFFFFBFFFF then you will only see them referenced in code like this sample.
Attachment:
code.png


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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