Pages: [1]
Author Topic: MED9 Multimap/Mapswitch code (by cruise)  (Read 428 times)
fortis_moto
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 4


« on: November 03, 2024, 02:49:56 PM »

Hi everyone!  Grin

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I'm sharing free modification for the MED9 ECU, which enables a multi-map function by cruise (Bosano do it first, but he made it by break + clutch) --  With this modification, you can switch between different maps without the need to reflash the ECU. It supports all versions of MED9, in my case MED9.5.10.

Each MED9 binary version has different map locations, RAM variables, and free memory space, so this modification requires self-implementation and adjustment to fit your specific version. (P.S. If you need assistance, I can apply it to your file for a fee. PM or fortismoto@gmail.com) For those interested in seeing how it works, I've prepared a YouTube video demonstrating the map-switching process step-by-step.

How the map-switching process works:

Activate the cruise control (while stationary) – the EPC light will start flashing, indicating that you’re in map-switching mode.
Pressing the "+" button on the cruise control increases the map number, while pressing "-" decreases it.


Instructional Video:  https://youtu.be/pPCheLpRnVc?si=MhYv0a2hbkT5jMww

The modification file is attached to this post, and a demonstration video is available on YouTube.

I hope this modification proves helpful for your projects!  Cool  Cool

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
« Last Edit: November 03, 2024, 03:37:59 PM by fortis_moto » Logged
fortis_moto
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 4


« Reply #1 on: November 03, 2024, 03:05:36 PM »

Code:

ROM:0047C850 loc_47C850:                             # CODE XREF: ROM:00519790j
ROM:0047C850                 lbz       r10, byte_7FABF7 (my non-volatile map count variable. Check it against 0, 1 & 2)
ROM:0047C854                 cmpwi     r10, 0
ROM:0047C858                 beq       loc_47C86C
ROM:0047C85C                 cmpwi     r10, 1
ROM:0047C860                 beq       loc_47C878
ROM:0047C864                 cmpwi     r10, 2
ROM:0047C868                 bge       loc_47C884
ROM:0047C86C
ROM:0047C86C loc_47C86C:                             # CODE XREF: ROM:0047C858j
ROM:0047C86C                 lis       r10, ((off_5CEF48+0x10000)@h)  (load an appropriate address pointing at the address of LDRXN 0, 1 or 2)
ROM:0047C870                 addi      r10, r10, -0x10B8 # off_5CEF48
ROM:0047C874                 b         loc_519798 (jump back to the main program)
ROM:0047C878 # ---------------------------------------------------------------------------
ROM:0047C878
ROM:0047C878 loc_47C878:                             # CODE XREF: ROM:0047C860j
ROM:0047C878                 lis       r10, ((off_5CEF4C+0x10000)@h)
ROM:0047C87C                 addi      r10, r10, -0x10B4 # off_5CEF4C
ROM:0047C880                 b         loc_519798
ROM:0047C884 # ---------------------------------------------------------------------------
ROM:0047C884
ROM:0047C884 loc_47C884:                             # CODE XREF: ROM:0047C868j
ROM:0047C884                 lis       r10, ((off_5CEF50+0x10000)@h)
ROM:0047C888                 addi      r10, r10, -0x10B0 # off_5CEF50
ROM:0047C88C                 b         loc_519798


Here, I’m presenting the implementation code (of user Basano) for integrating our custom multi-map values. In my setup, map selection is controlled via the cruise control buttons.

btw in shared file code starts at 0x75534 Roll Eyes Roll Eyes

If you’d like to dive deeper into the details of the multi-map setup, Bosano has thoroughly explained everything in his thread http://nefariousmotorsports.com/forum/index.php?topic=5656.0. There’s no need to reinvent the wheel, so I’ll keep it simple here.

May the Multi-Map be with you!
Logged
Kurylek
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


« Reply #2 on: November 03, 2024, 03:20:26 PM »

wow awesome job same thoughts i had about Basano setup but his version only works with brake and gas and i was looking for something with cruise control took a while but i’ll try to setup it on mine though not sure my skills can handle the implementation but ill try
Logged
Pages: [1]
  Print  
 
Jump to:  

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