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.

TMS320F280021: how to change the microcontroller in universal_motorcontrol_lab project in ccs

Part Number: TMS320F280021
Other Parts Discussed in Thread: TMS320F280025C, , SYSCONFIG

Hi,

I want to create (or duplicate) a project based on universal_motor_control_lab example project.

I need to change the microcontroller from TMS320F280025C (default microcontroller in the project) to TMS320F280021.

As you can see in the picture below, the options are greyed and can not be changed:

What is the best way to change the microcontroller?

With best regards.

  • Hi,

    We're looking into this issue.  Changing the device variant can affect many project settings and options which is perhaps why this is greyed out.

  • Hello Manu36,

    I've determined the root cause of this. In the {MCSDK_Install_Directory}\solutions\universal_motorcontrol_lab\f28002x\ccs\motor_control\universal_motorcontrol_lab.projectspec file, near the very top, you'll see the following line:

    enableSysConfigTool="true"

    Remove this line using any text/code editor (CCS itself, Visual Studio Code, notepad, etc.), import the project again, and you'll be able to change these values. I've been looking for a way to fix this issue with an already imported project, but I'm not finding anything that's letting me remove the SysConfig tool without breaking the project. I'll reply to you again if I find a way to do this that does not involve re-importing the project.

    If you have edited any of the code, make sure to override the newly imported files with your custom code.

    Regards,
    Jason Osborn

  • OK thank you for the support.

    I have one aditionnal question still related to changing TMS230F280025C to TMS320F280021:

    -I was thinking all files with name f28002x can be used for all microcontrollers of the range f28002x but if I'm right f28002x_flash_lib_is.cmd need to be changed because it figure only memory for f280025. 

    Can you confirm?

    Regards.

  • Yes, at a glance, the f28002x_flash_lib_is.cmd file allocates flash memory that only exists on the F280025C per section 8.3.2.1 of the device datasheet. Refer to that section to see about re-allocating memory.

    I would also note that looking at the numbers, you'll likely have  to manually trim down the size of the Universal Lab to get it to fit in the constraints of the F280021 device.

    Regards,
    Jason Osborn