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.

Creation of config files using CCV4

hi,

We are using TMS570 Processor and CCS V4 as IDE for the avionics project.

As per the project requirement, we need to program the Flash memory with config data file (2K bytes) that allows
the main program to be configured for the functionality required by a specific unit with up to 32 aircraft settings
available.

Is there any tool in the CCV4 which allows to program flash memory and creates a out/hex file which can be loaded to target using nowflash ?
Or
Please suggest me if i can do task using CCV4.

suggestions are wecome.

  • Hi Bindu,

    we provide a post build option/setup for you to output a hex file in both CCS v4 and v5.

    Please see the screenshot below.  This option is found in Project->Properties->General ...

    I hope this helps.  Please keep us informed.

    Best Regards,
    Lisa

  • Screenshot ...

     

  • The option that you have showed in the screen shot explains that conversion of ELF or COFF output to hex file. but i am looking to program the flash memory

    with config data but not the program in the desired locations.

    My idea is to write a program in CCS V4 which loads the flash memory with desired data depends on the aircraft configuration setting. The output of the

    program ELF or COEF contains  data and program. This can be converted to hex file using utilities provided in the CCV4 tool directory. I would like to remove

    the program memory form the hex files and keep the config data only. Is it possible ?

    Or is there any way to program the flash memory with data only ?

  • Any update on this ?

  • Hi Bindu,

    I appologise for my lack of response so far.   I am still looking into this and awaiting feedback from a couple colleagues here.  I will let you know as soon as I have a definite answer for you.

    Best Regards,
    Lisa

  • Hi Bindu,

    in the mean time, I meant to let you know about this flash programming utility ...

     

    http://www.ti.com/tool/nowFlash

    Have a look and see whether this is an easy way to do what you require.

    Best Regards,
    Lisa

  • Bindu Tanguturi said:
    Or is there any way to program the flash memory with data only ?

    The hex utility has an option --exclude which tells it to ignore those sections.  You might be able to use it to ignore the code sections.  Details are in the ARM Assembly Language Tools User's Guide.

    Thanks and regards,

    -George

  • Hi Georgem and Lias,

     

    Thanks for the response. The reply given by Georgem should help me after creating a hex file. I would like to repeat my question below. Please respond.

     

    My requirement : I need to write a program in CCS V4 to load the flash memory with the 127K of configuration data [starting address as 0x00080000.]

     

     

    Is it possible to program flash (data storing) with CCS program ? Program in CCS V4 : My idea is to create a C struture which reflects the configuration data structure. Load this struture with the required configuration data. Copy this loaded struture to required flash location. The CCS created hex file for this program will loaded to target using nowFlash or CCS. After running this program, the flash should be loaded withnrequired data. Then erase the program memory only. Then load the program which actually uses this configuration table or data. Is that my approach correct ?

     

    I started doing as above, i am able to point the structure to required memory location, but the flash is not loaded with required data in debugging. This is beacuse flash is readable only. I was able to load the constants values to required flash location, but not the struture.

     

    Let me know how to store the data to Flash during application program (not through the flash loaders). Suggestions are weleocme.

     

    I have read about F035 Flash API library in the TMS570 TRM. Do i need to use this for writing to flash ? If so please provide me more information on usage of this library in the application program.

     

  • Any update please.

  • Hi George and Lias,

    Any update please