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/DRV8323R: DRV8323R

Part Number: DRV8323R
Other Parts Discussed in Thread: MOTORWARE, LAUNCHXL-F28069M, DRV8301, DRV832X, INSTASPINUNIVERSALGUI, ,

Tool/software: Code Composer Studio

Hello Recently I purchased a LAUNCHXL-F28069M board and drivers for BLDC motors type DRV8301 and BOOSTXL-DRV8323RX. I tried to identify an engine using motorware_1_01_00_18 and instaspinuniversalgui_v105. For DRV8301 I used the motorware projects without any problems. For DRV8323RX I downloaded the DRV832x Firmware file (InstaSpin) - SLVC705 and proceeded according to InstaSPIN ™ Quick Start Guide SLVUBD3A – March 2018 – Revised March 2018:

Download the software package for the DRV8323RS device. Extract the compressed files to find three file directories . Copy and overwrite the files to the corresponding directories in MotorWare: 1. Copy drvic to \sw\drivers\drvic 2. Copy hal to \sw\modules\hal 3. Copy instaspin_foc to \sw\solutions\instaspin_foc. The projects were then imported into CCS6.2 from: C: \ ti \ motorware \ motorware_1_01_00_18 \ sw \ solutions \ instaspin_foc \ boards \ boostxldrv8323_revA \ f28x \ f2806xF \ projects \ ccs Build command works without errors except for errors except for the most useful project proj_lab02b with the following error:

"C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02b.c", line 283: error #20: identifier "angle_gen" is undefined 

1 error detected in the compilation of "C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02b.c".

gmake: *** [proj_lab02b.obj] Error 1

gmake: Target 'all' not remade because of errors.

 

Where line 283 is:

   datalog.iptr [0] = & angle_gen.Angle_pu; // datalogBuff [0]

 

I tried compiling the project for F2802x as well and it is OK. How can the problem for F2806x be solved?

  • This line code is only used in lab01b or lab01c for debugging. Comment on this line or change the link to other variables used in this lab.

    Or refer to the link below that includes the example labs are workable for F2802xF or F2806xF.

    [FAQ] BOOSTXL-DRV8323RS and BOOSTXL-DRV8323RH InstaSPIN and MotorWare support

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/635499

  • Commenting on this line in lab01b does not result a error at build command. Unfortunately, commenting on this line in the lab02b project

    // datalog.iptr[0] = &angle_gen.Angle_pu;            // datalogBuff[0]

    the following message appears

    undefined     first referenced

    symbol           in file    

    ---------     ----------------

    _DATALOG_init ./proj_lab02b.obj

    _datalog       ./proj_lab02b.obj

    _datalogBuff1 ./proj_lab02b.obj

    _datalogBuff2 ./proj_lab02b.obj

    _datalogBuff3 ./proj_lab02b.obj

    _datalogHandle ./proj_lab02b.obj

     

    error #10234-D: unresolved symbols remain

     

    >> Compilation failure

    makefile:169: recipe for target 'proj_lab02b.out' failed

    error #10010: errors encountered during linking; "proj_lab02b.out" not built

    gmake: *** [proj_lab02b.out] Error 1

    gmake: Target 'all' not remade because of errors.

    what could be the problem and how can it be solved?

  • I found the solution
    I commented on line 283 which gave an error

    I added to the project the file datalog.c from
    C: \ ti \ motorware \ motorware_1_01_00_18 \ SW \ modules \ datalog \ src \ 32b

    To link a folder, follow this procedure:
    1. Right-click on the project and select New → file.
    2. Click on Advanced >>.
    3. Select Link to alternate location (Linked File)

    Another definitive way to add the file is to modify (before importing the project) in the .project file locate to 

    C:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\boards\boostxldrv8323_revA\f28x\f2806xF\projects\ccs\proj_lab02b

    by adding 

    <link>
    <name>datalog.c</name>
    <type>1</type>
    <location>C:/ti/motorware/motorware_1_01_00_18/sw/modules/datalog/src/32b/datalog.c</location>
    </link>

    and there are no more errors

    Rezultatele traducerii

    and there are no more errors