Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Adding an user mode microkernel to speed up flashing ???


Guru

Status: Offline
Posts: 2338
Date:
Adding an user mode microkernel to speed up flashing ???


Having now reprogrammed the ECU a few tenths of times I came to see a practical problem in programming - it takes about 5 minutes for the full ecu flashing, where as I am really making changes to the map area.

FDT allows the ecu to be programmed as one segment at a time making this time into seconds - if the User Mode microkernel is present.

The FDT comes with microkernel code already compiled as well as with C source code in the 7052 directory. The starting address is compiled@ 0003F800to0003FF43, an area which is completely free.

I am just wondering that it should be possible to include the user mode microkernel into the busa code quite easily by modifying the interrupts map ? (MD1 & FWE ?)

Any ideas from persons more experienced with microprosessors in general ?

Here you have as a reference the beginning and end of the user mode microkernel code.

Spoiler


Here is the busa code dissassembled from same area:
Spoiler


-- Edited by PetriK at 17:16, 2008-01-13

__________________

When asking a question, you can also consider posting it to facebook:

http://www.facebook.com/ecueditorcom



Veteran Member

Status: Offline
Posts: 80
Date:

It should be possible.

And that area of memory is all free in the SV ECU too.

And if we can get these ECUs to boot to user program mode with a valid kernel in there, then not only will it speed up reflashing, but any user program can be loaded in there without having to erase the flash ...

edit: this might be trickier than it looks, ... I don't see anything obvious inmy ECU code thatwould cause execution to start at 3f800, and there doesn't seem to be any interrupt vector for user program mode. In fact the whole area of how the FWE & mode pins affect execution seems to be light on detail in the manuals. So we need to figure out where and how the unit determines that it needs to jump to when it detects various FWE/mode pin combinations. Out of interest,at what addressdoes the boot mode kernel start in the flash devt tool?

This thread is a bit stale, ... do you have any updates?

-- Edited by bozo at 23:42, 2008-12-14

__________________
Ra


Veteran Member

Status: Offline
Posts: 62
Date:

Did anyone ever add a boot kernel so that once we flash the ecu, we could then upload from the ecu? I think that would be a great idea.

__________________
All Must Bow to the Ra Supremecy!


Guru

Status: Offline
Posts: 964
Date:

It's on my list but the list keeps getting longer.

Of course there may be some hardware problems. While the CPU supports user mode some of the ECUs have the mode and FWE pins tied together meaning it would not be possible to Enable the Flash Write (FWE) without also setting the mode to boot mode.

There maybe some software way around this but I haven't looked at it in detail

As for uploading; Given what they are finding out about SDS it would seem the logical thing to do would be to add the code to support the read memory commands of the KPW2000 protocol


-- Edited by RidgeRacer on Wednesday 18th of March 2009 01:40:55 PM

__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard