Register
Page 1 of 3 123 LastLast
Results 1 to 15 of 34
  1. #1
    Junior Member
    Join Date
    Feb 2016
    Posts
    25
    Thanks Thanks Given 
    9
    Thanks Thanks Received 
    6
    Thanked in
    4 Posts

    Default Using WinKFP to write tune on 525D BMW

    Hi tuners,
    I'm looking into tuning my car and was expecting to be able to flash adapted data using the BMW standard tools WinKFP program. I am able to flash .0da files supplied by BMW without issue, but when I flash a changed file I get "security access denied" in WinKFP. After this I'm still able to flash back the original file, again without issue.
    The changed file has been checksum corrected with 'checksum corrector' tool as well as WinOLS, both delivering the same checksum at the end of the file, so I'm guessing that's not the issue.

    Procedure followed:
    • Generate a bin file based on the original .0da file, using my own written python code (DDE509/U7812338.0da)
    • Edit the bin file (in this test, changed the hysteresis map for the EGR actuation)
    • Fix the checksums
    • Generate a 0da file based on the changed bin file, again using my own written python code
    • Fix the 0da file checksum using NCSDummy
    • write to the car using WinKFP


    U7812338.0da.zip
    U7812338.0da.egroff2.zip
    WinOLS EGR off2.zip
    7812338.zip

    Is anyone able to shed some light on what I might be doing wrong..?

    Thanks
    Daniel

  2. The Following User Says Thank You to djwlindenaar For This Useful Post:

    bobolin4o (27th May, 2016)

  3. #2
    DK Veteran
    marek128's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    720
    Thanks Thanks Given 
    150
    Thanks Thanks Received 
    205
    Thanked in
    96 Posts

    Default

    Why u dont use galetto kess mpps etc? I think is not able to wirite MOD file by WINkfp too many tests writing file....
    If I help You. please say THANKS.

  4. #3
    DK Veteran
    Babos's Avatar
    Join Date
    Mar 2012
    Posts
    1,485
    Thanks Thanks Given 
    99
    Thanks Thanks Received 
    434
    Thanked in
    335 Posts

    Default

    I think maybe software see ck is other not factory ck

  5. The Following User Says Thank You to Babos For This Useful Post:

    teamtuner (28th May, 2016)

  6. #4
    DK Veteran

    Join Date
    Nov 2009
    Posts
    1,024
    Thanks Thanks Given 
    263
    Thanks Thanks Received 
    150
    Thanked in
    85 Posts

    Default

    I think must be a way, but....
    Its worth the effort??

    I think is safer, faster use other tools...

    Lets WinKfp for simply reflash Ori or official update.

    Some years ago (When havent Obd Chiptuning tools) tried in e60....

    But should be a way !!

  7. #5
    Junior Member
    Join Date
    Feb 2016
    Posts
    25
    Thanks Thanks Given 
    9
    Thanks Thanks Received 
    6
    Thanked in
    4 Posts

    Default

    Yeah, I know I could use the other tools. I do like a bit of hacking and already have experience with updating other modules on the car with WinKFP. And the necessary hw/sw.
    I guess I was expecting it to be no big issue, given the fact that I was able to get the checksums working.

    Apparently there's another step that WinKFP does not implement or something. Does anyone have a clue what that might be?

    Sent from my SM-G901F using Tapatalk

  8. #6
    Newbie
    Join Date
    Apr 2016
    Posts
    3
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    I realize this may be a little o/t, but I am interested in updating software in my '04 320d, I heard it is risky to do it on your own, could you pls provide some sensible advice on this how to diy safely? Thx.

  9. #7
    V.I.P. Member
    bobolin4o's Avatar
    Join Date
    Apr 2010
    Location
    Bulgaria, V. Tarnovo
    Posts
    3,451
    Thanks Thanks Given 
    1,043
    Thanks Thanks Received 
    2,769
    Thanked in
    1,652 Posts

    Default

    Quote Originally Posted by marek128 View Post
    Why u dont use galetto kess mpps etc?
    Because when you have prepared .0da files you will be able to tune all cars just by "update" them...
    No matter which software is in the ECU, just with few clicks...
    Good idea!
    NO PASSWORDS FOR ANYONE, EXCEPT THE RECIPIENT OF THE FILE !!!
    If your PM box is full, clean it right now...
    Otherwise, your requested file will be deleted... for ever!

  10. #8
    V.I.P. Member
    bobolin4o's Avatar
    Join Date
    Apr 2010
    Location
    Bulgaria, V. Tarnovo
    Posts
    3,451
    Thanks Thanks Given 
    1,043
    Thanks Thanks Received 
    2,769
    Thanked in
    1,652 Posts

    Default

    Quote Originally Posted by djwlindenaar View Post
    Hi tuners,
    I'm looking into tuning my car and was expecting to be able to flash adapted data using the BMW standard tools WinKFP program. I am able to flash .0da files supplied by BMW without issue, but when I flash a changed file I get "security access denied" in WinKFP. After this I'm still able to flash back the original file, again without issue.
    The changed file has been checksum corrected with 'checksum corrector' tool as well as WinOLS, both delivering the same checksum at the end of the file, so I'm guessing that's not the issue.

    Procedure followed:
    • Generate a bin file based on the original .0da file, using my own written python code (DDE509/U7812338.0da)
    • Edit the bin file (in this test, changed the hysteresis map for the EGR actuation)
    • Fix the checksums
    • Generate a 0da file based on the changed bin file, again using my own written python code
    • Fix the 0da file checksum using NCSDummy
    • write to the car using WinKFP


    U7812338.0da.zip
    U7812338.0da.egroff2.zip
    WinOLS EGR off2.zip
    7812338.zip

    Is anyone able to shed some light on what I might be doing wrong..?

    Thanks
    Daniel
    Mate, great job!
    I think you did not do the highlited step correctly...
    Look on the picture... the upper file is after NCSDummy

    after NCS_Dummy.jpg
    Last edited by bobolin4o; 27th May, 2016 at 06:45 AM.
    NO PASSWORDS FOR ANYONE, EXCEPT THE RECIPIENT OF THE FILE !!!
    If your PM box is full, clean it right now...
    Otherwise, your requested file will be deleted... for ever!

  11. The Following 3 Users Say Thank You to bobolin4o For This Useful Post:

    djwlindenaar (27th May, 2016), morfej (27th May, 2016), teamtuner (28th May, 2016)

  12. #9
    Junior Member

    Join Date
    Jan 2015
    Posts
    20
    Thanks Thanks Given 
    1
    Thanks Thanks Received 
    6
    Thanked in
    6 Posts

    Default

    The ECU checks the updated file against an RSA key in the ECU. If the key is invalid, WinKFP fails with an error message like you've stated after flashing completes. As far as the actual file checksum is concerned, NCSDummy only fixes it in such a way to allow WinKFP to open it in the first place. It doesn't help with the required RSA key that the ECU checks after a write to flash.

  13. The Following User Says Thank You to Gbyleveldt For This Useful Post:

    djwlindenaar (27th May, 2016)

  14. #10
    DK Veteran
    morfej's Avatar
    Join Date
    Dec 2008
    Posts
    2,549
    Thanks Thanks Given 
    203
    Thanks Thanks Received 
    996
    Thanked in
    527 Posts

    Default

    Gbyleveldt ... I would belive that RSA signature is checked by EDC17 ecus not the one that is talked about here Jetronic/Motronic M5.2.1.

  15. #11
    V.I.P. Member
    bobolin4o's Avatar
    Join Date
    Apr 2010
    Location
    Bulgaria, V. Tarnovo
    Posts
    3,451
    Thanks Thanks Given 
    1,043
    Thanks Thanks Received 
    2,769
    Thanked in
    1,652 Posts

    Default

    Quote Originally Posted by morfej View Post
    Gbyleveldt ... I would belive that RSA signature is checked by EDC17 ecus not the one that is talked about here Jetronic/Motronic M5.2.1.
    I think... we talk about EDC16C31 here...
    But WinOls don't tell that there is RSA in the file.
    NO PASSWORDS FOR ANYONE, EXCEPT THE RECIPIENT OF THE FILE !!!
    If your PM box is full, clean it right now...
    Otherwise, your requested file will be deleted... for ever!

  16. #12
    Junior Member

    Join Date
    Jan 2015
    Posts
    20
    Thanks Thanks Given 
    1
    Thanks Thanks Received 
    6
    Thanked in
    6 Posts

    Default

    Aaaah I see. You are correct, my experiences is based on Tricore ECUs not the Motorola ones.

  17. #13
    Junior Member

    Join Date
    Jan 2015
    Posts
    20
    Thanks Thanks Given 
    1
    Thanks Thanks Received 
    6
    Thanked in
    6 Posts

    Default

    Come to think of it, doesn't WinKFP (or the ECU) check the new file against a signature on the older ECUs? There's a 'Flash_pruefen_signature' job for many of the ecus. I'm not in front of my PC to check this on an older ecu.

  18. The Following User Says Thank You to Gbyleveldt For This Useful Post:

    djwlindenaar (27th May, 2016)

  19. #14
    Junior Member
    Join Date
    Feb 2016
    Posts
    25
    Thanks Thanks Given 
    9
    Thanks Thanks Received 
    6
    Thanked in
    4 Posts

    Default

    Quote Originally Posted by bobolin4o View Post
    Mate, great job!
    I think you did not do the highlited step correctly...
    Look on the picture... the upper file is after NCSDummy
    AH, yes, it seems I've uploaded the wrong file; I've actually tried the flash with the correct file and the issue is the same. I guess the step with NCSDummy is not actually necessary if you disable checksum checking in WinKFP...

    Thanks for looking into it, though.

  20. #15
    Junior Member
    Join Date
    Feb 2016
    Posts
    25
    Thanks Thanks Given 
    9
    Thanks Thanks Received 
    6
    Thanked in
    4 Posts

    Default

    Quote Originally Posted by Gbyleveldt View Post
    Come to think of it, doesn't WinKFP (or the ECU) check the new file against a signature on the older ECUs? There's a 'Flash_pruefen_signature' job for many of the ecus. I'm not in front of my PC to check this on an older ecu.
    Interesting thought. I've had a look at the jobs in Ediabas for this ECU. I've found something called "Job: PRUEFSTEMPEL_LESEN" and "Job: PRUEFSTEMPEL_SCHREIBEN". Does this have anything to do with it? If so, how do I determine the parameters for the SCHREIBEN job?

    Then there's this: Job: PRUEFCODE_LESEN ; Comment: Indentifikation, FS_Codes ShadowFS_Codes, ShadowFS_lang, AIF

    Then there's a "special" SGBD called 09FLASH.PRG, which has this "Job: FLASH_SIGNATUR_PRUEFEN";

    That last one looks like the one you were referring to, could that be it; just run that job for the ECU to start recognising the correct checksum?
    - I'm a bit hesitant just to try, because if that blocks access, I've just got a big lump of metal... Confirmation would be great. -

    Best regards
    Daniel

    Job: PRUEFSTEMPEL_SCHREIBEN
    Comment: Beschreiben des Pruefstempels
    Comment: Es muessen immer alle drei Argumente im Bereich
    Comment: von 0-255 bzw. 0x00-0xFF uebergeben werden.
    Comment: KWP2000: $2E WriteDataByCommonIdentifier
    Comment: $1000 TestStamp
    Comment: Modus : Default

 

 
Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.