This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to Flash Image?

Other Parts Discussed in Thread: CONTROLSUITE, TMS320F28069

I try to copy the code about firmware flash request message in "PRIME Host Message Protocol Specification".

MSG_TYP = 0x14;   //GET_INFO

MSG_ORG = '1';    //originated from PLC

MSG_RPY = '0';     //need reply message

MSG_BDY = uint16_t blob_id;     // blob id to identify the blob

                      uint16_t blob_len;     // length in bytes of blob to read

                      uint16_t blob_addr;     //start address of the blob, only exist when blob_id=4

And to get information in F28069.

But I don't know what is the next step after coding?

Is using the C2prog to flash the code into F28069?

Best regards,

Wayne

  • Hi Wayne,

    wayne lu1 said:
    But I don't know what is the next step after coding?

    Do you've the out file that you get after building the project?

    Regards,

    Gautam

  • Hi, everyone.

    For this task there are the following ways:

    - using embedded flasher of Code Composer Studio;

    - using C2Prog or PLC Quality Monitor (refer to this manual 7433.Flashing_TMDSPLCKIT-V3_1v1.pdf).

    Regards,

    Igor

  • Hi Gautam,

    I think these code is not complete so that I can not build the project.

    But I don't know what else I should write into the code.

    Is there any example that I can refer?

    Thanks,

    Wayne

  • Hi Igor,

    Your file I already read before.

    But I stuck on option 1's .hex file or option 2's .srec file

    If my code is more complete that can build the project.

    I think I might get the .hex file to flash.

    If you have any information that can give me just let me know.

    I would appreciate.

    Thanks,

    Wayne

  • Wayne,

    if I understand you right then your problem is technology problem of building project & loading to flash, i.e. your issue is abstracted from the PLC technology itself. Thus I would recommend you to try begin from sample example projects for TMS320F28069 from controlSuite ("cpu_timer" for example). You can import all examples from controlSuite into Code Composer Studio and then edit & load into flash of TMDSPLCKIT-V3. You can load executable .OUT files with the embedded flasher of CCS. Also under CCS environment you can create executable .HEX files as well and then use C2Prog for loading.

    Regards,

    Igor 

  • Hi Igor,

    Thanks for your advice.

    I had run two projects but I could not find the .hex file.

    And I still can not sure my code which I ask at the first is right or not?

    Cause I don't think my code is complete enough.

    Is there any similar example that I can refer?

    Regards,

    Wayne

  • Wayne,

    for building .HEX format refer to this menu of Project's propertries (Apply Predefined Step):

    After this setting you will find .hex file into "bin" folder of your project.

    Regards,

    Igor