Pages: [1]
Author Topic: Emulator Endian Swap - Which pins?  (Read 1080 times)
rzyao
Full Member
***

Karma: +0/-1
Offline Offline

Posts: 54


« on: January 08, 2025, 06:21:31 PM »

I intend on installing a CobraRTP FlashOnline R4 to my ECU (ME7) to be able to live tune, and looking through the forums it looks like people usually either digitally change the endianness of the data or make a dedicated adapter/cable. My question is, which pins on the 29fx00 chip do I need to swap? I'm still relatively new to embedded stuff like this, but it seems like I would want to flip the order of either the A or DQ pins, though I can't tell exactly. After searching, all I can find is that there is definitely a way to make it work without endian swapping in software as Moates manufactured their own run of adapters to run the Roadrunner inside of the ME7.

Ultimately, my plan is to try making an adapter board in KiCAD so I can order adapter boards instead of doing it by hand.

If it matters, for my application I'm replacing the 29f400BB/29f800BB in 4b0906018P and 8d0907551M boxes respectively
Logged
Artemisia
Full Member
***

Karma: +18/-0
Offline Offline

Posts: 83



« Reply #1 on: January 08, 2025, 10:00:25 PM »

I intend on installing a CobraRTP FlashOnline R4 to my ECU (ME7) to be able to live tune, and looking through the forums it looks like people usually either digitally change the endianness of the data or make a dedicated adapter/cable. My question is, which pins on the 29fx00 chip do I need to swap? I'm still relatively new to embedded stuff like this, but it seems like I would want to flip the order of either the A or DQ pins, though I can't tell exactly. After searching, all I can find is that there is definitely a way to make it work without endian swapping in software as Moates manufactured their own run of adapters to run the Roadrunner inside of the ME7.

Ultimately, my plan is to try making an adapter board in KiCAD so I can order adapter boards instead of doing it by hand.

If it matters, for my application I'm replacing the 29f400BB/29f800BB in 4b0906018P and 8d0907551M boxes respectively

I have been using it on ME7 units with the 29F800BB, no specific configuration or endian swap required. Simply solder the adapter, update your firmware and set your target CPU to C167, ST10 (this will set the endianness):

https://cobrartp.com/files/FlashOnline_(EN).pdf

If you run into issues where the memory keeps wiping itself, you can replace the battery

You will have to use CW_NOROMCHKRESET, the function is disabled on most ME7 files I have seen. There was one .HEX file from a ME7 damos that I saw CW_NOROMCHKRESET set to 0x55

Procedure has been shared by prj, thanks to him: http://nefariousmotorsports.com/forum/index.php?topic=10926.msg92720#msg92720

ASM part in question



On ME7.1.1 no issues with leaving the eeprom untouched. I would still make the changes for your case


For those who are playing with ST10:

You can get rid of the calls to the function that write the death byte 0x33 into the eeprom

Again thanks to prj: http://nefariousmotorsports.com/forum/index.php?topic=10926.msg113950#msg113950



*** This part is really not required for the emulator and doesn't have a direct relevance to it ***. This could be of interest for those working on ST10, it has a nice purpose and I don't believe anyone shared this. I randomly stumbled on this code during R&D, it was a nice find



« Last Edit: January 08, 2025, 10:54:24 PM by Artemisia » Logged
Pages: [1]
  Print  
 
Jump to:  

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