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.

CCS/TMS320F28335: How Flash two CCS project

Part Number: TMS320F28335


Tool/software: Code Composer Studio

I have a project to control motor Boot(to initialize harware...) and operationnel (i boot the hardware also and others functions to control motor). so i would like to flash Boot and after Operationnel, and I can't do the second task without erasing Boot...

I 'm using CCS6

Can some one help me please

  • Hello, Ibrahima.

    This seems to be a strange idea.

    Because when you build a project, it will have much more, then just your "main()" function. It will have special initializations from RTC, and maybe functions from standard TI files. So in two projects you will have the same code - at least function _c_int00(). You will have also to change linker scripts in your projects in such way, that projects will use different memory parts for their code and variables.

    So having two project for Peripheral initialization and for running the motor is a bad idea. So I suggest two other solutions:

    1) Combine in one project init-files and operational-files (as you call it). Build the project and flash it. This way is the easiest one. And this is a correct way.

    2) Build one of your projects as a library and add this library to other projects. This is more difficult way, but you for some reason really want to keep INIT and RUN parts of your program in different projects, this may work. But actually, most of the projects usually require different initialization.

    3) I think, that flashing two projects at once is not just a strange idea, but it's impossible at all. Any how there is a way to prevent flash erasing. For this, you have to open Debug Configuration Settings (right click on a project, Debug As -> Debug Configurations..., then in the config for your project open "Target" tab, select "Flash memory options" in in the left part of this tab,  and check needed boxes. Still, i recommend choosing the first way of solving your problem.

  • Thanks Disona for your response
    I will make one of your two solutions at worst, and mostly the second because i don't make same initialization in my Boot and in Operationnel...
    For your last point i define Erasing sector like this: Boot (Sector A) and Operationnel (Sector B to H)...I thought that was the solution but no

    Ibrahima
  • hello, it's possible to do it by proceeding as to you tell in your 3 point and as i tell in my answer. i just have to Flash Boot and after Operationnel by distributing Erase Sector correctly.

    Thans for your help.

    Ibrahima