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.

TMS320F28069M: Different USER.C files in paths

Part Number: TMS320F28069M
Other Parts Discussed in Thread: MOTORWARE

Hi, just noticed that I wasn't editing the USER.C file that my build used. There are two in the Motorware 17 install that are on include paths. My two paths:

C:\TI\Motorware\motorware_1_01_00_17\sw\solutions\instaspin_motion\src

C:\TI\Motorware\motorware_1_01_00_17\sw\modules\user\src\32b

My build used the second one. A file compare showed that they both have paths in their comments (line 32), however, the paths are switched! The solutions one has a modules path, and vice versa. It would take me a while to investigate the "correct" one. I am inclined to rename or move the one not being used, but perhaps there is a reason for the second USER.c?

Thanks, Bill

  • Bill,

    Which Motorware lab were you using? Or are you working with a project you've created on your end?

    Sean
  • I am using a modified lab 5e. I should have said the two paths are the paths to the user files, which are also on the include paths. It doesn't seem like a great idea to have two files of the same name and the aforementioned comments added to the confusion. The project is working, but my questions are whether there is a need for these separate files, which is better, and shouldn't one be removed from consideration.

  • Hi Bill,

    I see the comments you are referring to and understand the confusion. The "sw\solutions\instaspin_motion\src\user.c" file is deprecated, and will be marked for removal in MW18 if necessary. We will also edit the comment to reflect the correct file path in the next revision.

    The difference is that the "sw\solutions\instaspin_motion\src" version included ctrlQEP.h for use in MOTION labs 12 and 13; instead, the ctrlQEP.c source is now included in these labs, which in turn call the correct header (instead of user.c calling that header).

    For now, please use the "sw\modules\user\src\32b\user.c"

    Sean