Thread: Converting, pumping Raw C code, Source code

  1. #1
    Registered User
    Join Date
    Jun 2016
    Posts
    3

    Converting, pumping Raw C code, Source code

    Hello all,
    I need help understanding of how to pump Raw source code into an application; for example: if I have raw C code for an ECU in notepad form, what are the steps that I have to take in order to get into the ECU.

    Thank you in advance

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Have you researched this on your own?

    At the bottom of the wiki article are some links that may lead you in the right direction.

    There's also some cautionary advice on a similar thread from a few years ago.

  3. #3
    Registered User
    Join Date
    Jun 2016
    Posts
    3
    Thanks for the quick response.
    yes, I have looked at both; it doesn't help. I understand all about fuel/air ration, timing...etc. It was just an example
    my question is how to turn my raw code into something, how to get my code into a programmable Unit (like ECU). what software do I have to use ? is it called embedded ?

  4. #4
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    I've never messed with an ECU before, so the best I can do is offer some general advice.

    You need to determine what kind of device you will be targeting, and find a toolchain that compiles code for that target.

    You also need to find how to physically program the device. Do you overwrite the entire program in memory (requiring a specific type of programmer)? Does the device have a bootloader that allows you to overwrite certain program memory only (requiring knowledge of the specific protocol)?

    This is a highly specialized application of C targeted to very specific hardware, so you'd probably be better off finding resources specifically for the target in question.

  5. #5
    Registered User
    Join Date
    Jun 2016
    Posts
    3
    Matticus, do you have an email or phone number so I explain more in specific

  6. #6
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    I have both, but I will not be sharing them here.

    Programming an embedded device requires, at minimum:

    • A compiler or entire toolchain targeted for the given device
    • A programmer (hardware)
    • Basic knowledge of the device being programmed


    For ECU programming, there will likely be more requirements and necessary knowledge. As I said, I have never done ECU programming, so I cannot help you any further in this pursuit.

    The best advice I can give is to seek out resources (and possibly forums) dedicated to the target device/board/product.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. is object code the same as assembly source code?
    By c_weed in forum Tech Board
    Replies: 3
    Last Post: 01-05-2012, 07:25 PM
  2. Converting C code to DLX assembly code
    By xyz3 in forum C Programming
    Replies: 2
    Last Post: 05-17-2010, 02:01 PM
  3. C Code for converting generic to binary code
    By vanilla in forum C Programming
    Replies: 5
    Last Post: 11-05-2009, 03:34 AM
  4. Converting C++ code to C
    By alixi in forum C Programming
    Replies: 3
    Last Post: 09-21-2004, 02:23 PM
  5. C source code for int25 or code help
    By Unregistered in forum C Programming
    Replies: 0
    Last Post: 09-26-2001, 02:04 AM

Tags for this Thread