Dev Blog
Forum
Wiki
About
NefMoto
>
Technical
>
Reverse Engineering
>
TC 1797 GPR addresses
Pages: [
1
]
« previous
next »
Author
Topic: TC 1797 GPR addresses (Read 2450 times)
siado
Newbie
Karma: +0/-0
Offline
Posts: 5
TC 1797 GPR addresses
« on: August 23, 2022, 07:41:37 PM »
Anyone working with TC1797 in Ghidra? Looking for opinion on A0, A1, A8, A9 addresses. Infineon user manual shows FF80, FF84, FFA0, and FFA4 as the offsets, but doesn't explicitly show the base address in that paragraph. I picked 0xF7E1 for the base address based on the SPB address map.
Ghidra seems to decompile functions correctly with it, but doesn't seem to have a problem with any random address I throw in there.
Logged
nihalot
Full Member
Karma: +42/-3
Offline
Posts: 117
Re: TC 1797 GPR addresses
« Reply #1 on: August 23, 2022, 10:22:06 PM »
search for "dsync" or "isync" and look at results, you'll see global regs getting loaded in SBOOT/CBOOT and ASW
Logged
www.tangentmotorsport.com
multimap/LC/rolling antilag for MG1/MED17/EDC17/MED9/EDC15
contact for reverse engineering services of any ECU/TCU
prj
Hero Member
Karma: +1095/-516
Offline
Posts: 6176
Re: TC 1797 GPR addresses
« Reply #2 on: August 24, 2022, 03:33:35 AM »
Those registers are reserved for global variables.
It would help you tremendously if you understood C and the C compiler just a little... or at least read the TriCore EABI.
They are used for small data optimization, which is a code compression technique.
So it is not possible that they are contained in any address map, they will always be set at the entry point of the application. Of which as stated above are three.
Logged
PM's will not be answered, so don't even try.
Log your car properly
-
WinOLS database
-
Tools/patches
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Introductions
=> General Discussion
-----------------------------
Noob Zone
-----------------------------
=> Noob Questions
=> Noob Guides and FAQs
-----------------------------
Technical
-----------------------------
=> NefMoto Software
=> Tuning
===> Documents & Helpers & How To's
===> Community Projects
=> Diagnostics
=> Flashing and Chipping
=> Cluster and Immobilizer
===> ECU EEPROM images
===> Original Cluster dumps
===> Original Cluster dump requests
=> Data Logging
=> Reverse Engineering
=> Communication Protocols
-----------------------------
ECU Files
-----------------------------
=> ECU Definition Files
===> ECU Definition File Requests
=> Original ECU Files
===> Original ECU File Requests
=> Checksum Update Requests
-----------------------------
Vehicles
-----------------------------
=> Vehicle Tech
=> Project Cars
-----------------------------
Regional
-----------------------------
=> Canadian Regional Discussion
=> US Regional Discussion
-----------------------------
Classifieds
-----------------------------
=> For Sale
=> Wanted
=> Services
-----------------------------
Miscellaneous
-----------------------------
=> Off Topic
=> Forum Tech Support
=> Bizarro Messages Posted by Bots and Spammers
Navigation
Home
Help
Login
Register
Personal Tools
May 07, 2025, 02:24:44 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced Search
Loading...