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.

TMS320F28388D: memmap.h TMS320F28388D

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE


**** Build of configuration Debug for project amigo ****

I need help with the error. cannot find this memmap.h in device support, but in driver lib. 

Regards,
Yousef

"C:\\ti\\ccs1100\\ccs\\utils\\bin\\gmake" -k -j 4 all -O

Building file: "../main.c"
Invoking: Arm Compiler
"C:/ti/ccs1100/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me --include_path="C:/Users/Zahid/workspace_v11/amigo" --include_path="F:/box/SSTSimulation/C2000Ware_4_03_00_00/device_support/f2838x/common/include" --include_path="F:/box/SSTSimulation/C2000Ware_4_03_00_00/driverlib/f2838x/driverlib/inc" --include_path="F:/box/SSTSimulation/C2000Ware_4_03_00_00/device_support" --include_path="F:/box/SSTSimulation/C2000Ware_4_03_00_00/driverlib/f2838x/driverlib_cm/inc" --include_path="F:/box/SSTSimulation/C2000Ware_4_03_00_00/device_support/f2838x/headers/include" --include_path="F:/box/SSTSimulation/C2000Ware_4_03_00_00/libraries/communications/Ethercat/f2838x/include" --include_path="C:/ti/ccs1100/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'main.obj' failed
"F:\box\SSTSimulation\C2000Ware_4_03_00_00\device_support\f2838x\common\include\driverlib.h", line 45: fatal error #1965: cannot open source file "inc/hw_memmap.h"
1 catastrophic error detected in the compilation of "../main.c".
Compilation terminated.
gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • Yousef, 

    What application are you running here? Is it a C2000ware example or a custom example?

    Thanks.

  • It is a c2000ware example that I am trying to run. 

    posted below for clarification.

    //###########################################################################
    //
    // FILE: pdi_test_app.c
    //
    // TITLE: EtherCAT PDI (Processor Data Interface) example for F2838x CPU1
    //
    // F2838x CPU1 PDI Interface Test App
    //
    // This example tests the F2838x CPU1 EtherCAT PDI and demonstrates usage of
    // the EtherCAT CPU1 HAL drivers. The example should be run on a F2838x
    // controlCARD.
    //
    // External Connections
    // The controlCARD RJ45 port 0 is connected to PC running TwinCAT master
    //
    // Watch Variables
    // ESC_escRegs (ESC stands for EtherCAT Slave Controller) data structure will
    // be constantly updated to show the latest values of the specified ESC
    // registers
    //
    //#############################################################################
    // $TI Release: F2838x EtherCAT Software v2.02.00.00 $
    // $Release Date: Thu Feb 2 20:33:55 IST 2023 $
    // $Copyright:
    // Copyright (C) 2023 Texas Instruments Incorporated - http://www.ti.com/
    //
    // Redistribution and use in source and binary forms, with or without
    // modification, are permitted provided that the following conditions
    // are met:
    //
    // Redistributions of source code must retain the above copyright
    // notice, this list of conditions and the following disclaimer.
    //
    // Redistributions in binary form must reproduce the above copyright
    // notice, this list of conditions and the following disclaimer in the
    // documentation and/or other materials provided with the
    // distribution.
    //
    // Neither the name of Texas Instruments Incorporated nor the names of
    // its contributors may be used to endorse or promote products derived
    // from this software without specific prior written permission.
    //
    // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    // $
    //#############################################################################

    //
    // Included Files
    //
    #include "ethercat_slave_cpu1_hal.h"

    //
    // Main
    //
    void main()
    {
    uint16_t initStatus;

    //
    // Initialize CPU1 and HAL interface
    //
    initStatus = ESC_initHW();

    //
    // Loop and signal error if initHW returns failure
    //
    if(initStatus == ESC_HW_INIT_FAIL)
    {
    while(1)
    {
    //
    // Toggle Error
    //
    ESC_signalFail();
    }C2000Ware_4_03_00_00\device_support\f2838x\common\include\C2000Ware_4_03_00_00\device_support\f2838x\common\include\C2000Ware_4_03_00_00\device_support\f2838x\common\include\C2000Ware_4_03_00_00\device_support\f2838x\common\include
    }

    //
    // Setup and perform PDI Test
    //
    ESC_setupPDITestInterface();

    //
    // Update local RAM with ESC register values for debugging
    //
    while(1)
    {
    ESC_debugUpdateESCRegLogs();
    DEVICE_DELAY_US((uint32_t)(50000));
    }
    }

    //
    // End of File
    //

  • Yousef, 

    Please let me know if you have made any changes to the C2000ware example. I have tested the example on our internal setup and it is building without any issues.

    F:\box\SSTSimulation\C2000Ware_4_03_00_00\device_support\f2838x\common\includeF:\box\SSTSimulation\C2000Ware_4_03_00_00\device_support\f2838x\common\includeF:\box\SSTSimulation\C2000Ware_4_03_00_00\device_support\f2838x\common\includeF:\box\SSTSimulation\C2000Ware_4_03_00_00\device_support\f2838x\common\include

    Why has this snippet been copied here?

    Thanks.