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.

TMS320F28379D: Safety Diagnostic Library

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi

Sorry I raised a similar question on other mail chain in e2e forum. However. I were busy on other stuff in pass few months. It is freezes I thought, so create new question about it.

I was using F28379D in my product development (EADI). It is necessary to change TI safety diagnostic library from COFF to AEDI. TI team suggested to use f2837xd_test_application as starting point for conversion.

I did some steps before conversion

Tools

1. Hardware : Lunchpad-F28379D, 2. CCS : 12.7/0.000007

Steps:

a. Import the project to CCS

b. Change UART port from A to B since original project send a message to UART A. It is because launchpad does not have pin for UART A in these connector pins as below

void STA_Comm_configSCIA(void)
{
#if !LAUNCHPAD
    //
    // GPIO28 is the SCI Rx pin.
    //
    GPIO_setMasterCore(55, GPIO_CORE_CPU1);
    GPIO_setPinConfig(GPIO_55_SCIRXDB);
    GPIO_setPadConfig(55, GPIO_PIN_TYPE_STD);
    GPIO_setDirectionMode(55, GPIO_DIR_MODE_IN);
    GPIO_setQualificationMode(55, GPIO_QUAL_ASYNC);

    //
    // GPIO29 is the SCI Tx pin.
    //
    GPIO_setMasterCore(54, GPIO_CORE_CPU1);
    GPIO_setPinConfig(GPIO_54_SCITXDB);
    GPIO_setPadConfig(54, GPIO_PIN_TYPE_STD);
    GPIO_setDirectionMode(54, GPIO_DIR_MODE_OUT);
    GPIO_setQualificationMode(54, GPIO_QUAL_ASYNC);
#else
    //
    // GPIO85 is the SCI Rx pin.
    //
    GPIO_setMasterCore(85, GPIO_CORE_CPU1);
    GPIO_setPinConfig(GPIO_85_SCIRXDA);
    GPIO_setPadConfig(85, GPIO_PIN_TYPE_STD);
    GPIO_setDirectionMode(85, GPIO_DIR_MODE_IN);
    GPIO_setQualificationMode(85, GPIO_QUAL_ASYNC);

    //
    // GPIO84 is the SCI Tx pin.
    //
    GPIO_setMasterCore(84, GPIO_CORE_CPU1);
    GPIO_setPinConfig(GPIO_84_SCITXDA);
    GPIO_setPadConfig(84, GPIO_PIN_TYPE_STD);
    GPIO_setDirectionMode(84, GPIO_DIR_MODE_OUT);
    GPIO_setQualificationMode(84, GPIO_QUAL_ASYNC);
#endif

    //
    // Initialize SCIA and its FIFO.
    //
    SCI_performSoftwareReset(SCIB_BASE);

    SCI_setConfig(SCIB_BASE, SysCtl_getLowSpeedClock(DEVICE_OSCSRC_FREQ), 9600,
                                                      (SCI_CONFIG_WLEN_8 |
                                                      SCI_CONFIG_STOP_ONE |
                                                      SCI_CONFIG_PAR_NONE));
    SCI_resetChannels(SCIB_BASE);
    SCI_resetTxFIFO(SCIB_BASE);
    SCI_clearInterruptStatus(SCIB_BASE, SCI_INT_TXFF | SCI_INT_RXFF);
    SCI_enableFIFO(SCIB_BASE);
    SCI_enableModule(SCIB_BASE);
    SCI_performSoftwareReset(SCIB_BASE);
}

c. Set active configuration from RAM to RAM RELEASE because there is error if use RAM configuration

Result.

1. There is no any message send out from UART B

2. The value of "STA_Tests_passCount" is 28. However a number of test case should be 38.

Please advise how to fix it.

Thanks

  • I think the LaunchPad supports using the USB/UART through SCI A on GPIOs 43 and 42. Did you try that? See LP User's Guide: https://www.ti.com/lit/pdf/sprui77

    Another difference between the LaunchPad and controlCARD to look out for is the difference in external oscillator speed that will affect the SYSCLK configuration. I believe there's a #ifdef in device.h to handle the change if you put _LAUNCHXL_F28379D in your project predefined symbols.

    Whitney

  • Hi Whitney

    Thanks for your advance. Messages shows on Serial Terminal. Please find below log data

    Begin Test


     Starting Test Loop


     TEST FAIL: Boot ROM CPU1 Test!
     TEST FAIL: Boot ROM CPU2 Test
     TEST PASS: Boot ROM CRC Test
     No Test Specified
     No Test Specified
     No Test Specified
     TEST PASS: CLA MICRO Test!
     TEST PASS: CLA FULL Test!
     TEST PASS: DEVCFG Test!
     TEST PASS: PER REG Test!
     TEST FAIL: Error Status Pin Test!
     TEST PASS: PIE RAM Test!
     TEST PASS: PIE RAM Handler Test!
     TEST PASS: OSC TIMER 2 Test!
     TEST PASS: Oscillator HRPWM Test!
     TEST PASS: CPU TIMER POST!
     TEST PASS: CPU TIMER PEST!
     TEST PASS: Missing Clock Detection!
     TEST PASS: WD Test!
     TEST PASS: Interrupt Timing Monitoring Test!W▒D
     TEST PASS: SCI Monitoring Test!
     TEST PASS: SCI Loopback Test!
     TEST PASS: SPI Loopback Test!
     TEST PASS: I2C Loopback Test!
     TEST PASS: MCBSP Loopback Test!
     TEST PASS: CAN Loopback Test!
     TEST PASS: SP Test!
     TEST PASS: Flash ECC Logic Test!
     TEST PASS: Flash ECC Detect Test!
     TEST PASS: Flash CRC Test!
     TEST PASS: RAM Error Logic Test!
     TEST PASS: RAM Error Detect Test!
     TEST PASS: March13N No Copy Test!
     TEST PASS: March13N Copy Test!
     TEST PASS: GPIO Input Test!
     TEST PASS: GPIO Output Test!
     TEST PASS: PWM Trip Duty Cycle Test!
     TEST FAIL: eQEP Test!
     TEST FAIL: SDFM Test!
     TEST FAIL: ADC/DAC 12-Bit Test!
     TEST FAIL: ADC/DAC 12-Bit DMA Test!
     TEST FAIL: ADC/DAC 16-Bit Test!
     TEST FAIL: ADC/DAC 16-Bit DMA Test!
     31 out of 43 tests PASS

    You can see that some tests are FAIL. I reviewed the code, the tests in FAIL which does not inject any error to it.

    Thanks

  • Off the top of my head I can't think of any particular reason porting these to the LaunchPad would cause failures. For the failing tests that require external connections on the board, I'd double check the GPIO configurations and that the correct pins were connected.

    If you've already checked those, you'll need to do some debugging to get more info about how the tests are failing. For example, if you look at the ADC tests, are you getting valid ADC results? Do you just need to expand the allowed error margin a bit or are they dramatically incorrect?

    Whitney

  • Hi Whitney

    Thanks for your reply. Are you say that for ADC testing, it is necessary to let a analogy signal to each ADC module input pin?

    Actually...I want to create a library in EABI format. My idea is to run TI test application in COFF as a based reference so that I can use it to compare the result from EABI

  • Are you say that for ADC testing, it is necessary to let a analogy signal to each ADC module input pin?

    Yes, if you look at the Self-Test Application User's Guide, there's a section about hardware setup that tells you what connections you need to make for each test.

    My idea is to run TI test application in COFF as a based reference so that I can use it to compare the result from EABI

    I think that's a good idea to get the STA working on your board for COFF so you'll have a working baseline to check your EABI port.

    Whitney

  • Hi Whitney

    I have a problem during convert the library from COFF to EABI. Please find a log file which shows the error.

    Description	Resource	Path	Location	Type
    unresolved symbol Seg25LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg25LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg24LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg24LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg23LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg23LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg22LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg22LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg21LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg21LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg20LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg20LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg19LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg19LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg18LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg18LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg17LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg17LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg16LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg16LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg15Return2LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg15Return2LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg15Return1LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg15Return1LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg15LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg15LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg14LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg14LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg13LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg13LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg12LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg12LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg11LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg11LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg10LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg10LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg09LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg09LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg08LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg08LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg07LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg07LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg06LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg06LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg05LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg05LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg04LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg04LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg03LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg03LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg02LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg02LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg01LoadStart, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol Seg01LoadSize, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol MemCfg_setLSRAMMasterSel, first referenced in C:/ti/c2000/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/lib/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol GPIO_setMasterCore, first referenced in ./sta_comm.obj	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_HWBIST_restoreContext	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg25Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg24Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg23Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg22Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg21Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg20Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg19Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg18Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg17Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg16Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg15Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg14Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg13Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg12Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg11Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg10Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg09Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg08Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg07Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg06Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg05Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg04Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg03Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg02Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STL_CLA_seg01Start	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _stack, first referenced in ./sta_tests.obj	f2837xd_test_EABI_application		 	C/C++ Problem
    unresolved symbol _STACK_END, first referenced in ./sta_tests.obj	f2837xd_test_EABI_application		 	C/C++ Problem
    gmake[1]: *** [f2837xd_test_EABI_application.out] Error 1	f2837xd_test_EABI_application		 	C/C++ Problem
    gmake: *** [all] Error 2	f2837xd_test_EABI_application		 	C/C++ Problem
    <a href="file:/C:/ti/ccs1260/ccs/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain	f2837xd_test_EABI_application		 	C/C++ Problem
    #10010 errors encountered during linking; "f2837xd_test_EABI_application.out" not built	f2837xd_test_EABI_application		 	C/C++ Problem
    #10456-D You must specify the page for the specific placement of "UNION_3" when not using unified memory model.	STA_F2837xD_RAM_CPU1_CLASWBIST.cmd	/f2837xd_test_EABI_application	line 34	C/C++ Problem
    

    Please find attached file for your reference and advance how to fix it.

    Thanks

  • Hi Whitney

    I fixed the problem by delete a "_" inside STA_F283FxD_FLASHH_CPU1.cmd from the test_application project as below

          STL_CLA_seg01    : LOAD = FLASHK | FLASHL | FLASHM,
                             LOAD_START(Seg01LoadStart),
                             LOAD_SIZE(Seg01LoadSize),
                             LOAD_END(Seg01LoadEnd),
                             ALIGN(4)

    Right now, I got a new error message as attached log file

    Description	Resource	Path	Location	Type
    #10008-D cannot find file "sfra_f32_tmu_eabi.lib"	2837xD_FLASH_lnk_cpu1.cmd	/f2837xd_EADI_test_application	line 125	C/C++ Problem
    #10010 errors encountered during linking; "f2837xd_EADI_test_application.out" not built	f2837xd_EADI_test_application		 	C/C++ Problem
    <a href="file:/C:/ti/ccs1260/ccs/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain	f2837xd_EADI_test_application		 	C/C++ Problem
    gmake: *** [all] Error 2	f2837xd_EADI_test_application		 	C/C++ Problem
    gmake[1]: *** [f2837xd_EADI_test_application.out] Error 1	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol _STACK_END, first referenced in ./sta_tests.obj	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol _stack, first referenced in ./sta_tests.obj	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol GPIO_setMasterCore, first referenced in ./sta_comm.obj	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol HwbistLoadSize, first referenced in ./sta_main.obj	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol HwbistLoadStart, first referenced in ./sta_main.obj	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol HwbistRunStart, first referenced in ./sta_main.obj	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol MemCfg_setLSRAMMasterSel, first referenced in C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_diagnostic_EADI_library/CPU1_DEBUG/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol STL_Util_getST1, first referenced in C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_diagnostic_EADI_library/CPU1_DEBUG/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_pie.obj>	f2837xd_EADI_test_application		 	C/C++ Problem
    #10068-D no matching section	2837xD_FLASH_lnk_cpu1.cmd	/f2837xd_EADI_test_application	line 124	C/C++ Problem
    #10247-D creating output section "d1ram" without a SECTIONS specification	f2837xd_EADI_test_application		 	C/C++ Problem
    #10247-D creating output section "dmatest" without a SECTIONS specification	f2837xd_EADI_test_application		 	C/C++ Problem
    #10247-D creating output section "ls3ram" without a SECTIONS specification	f2837xd_EADI_test_application		 	C/C++ Problem
    #10456-D You must specify the page for the specific placement of "UNION_7" when not using unified memory model.	STA_F2837xD_FLASH_CPU1_CLASWBIST.cmd	/f2837xd_EADI_test_application	line 33	C/C++ Problem
    

    Please advise how to fix it.

    I have other question. If the EABI library created successfully. Does it can be used in C2000Ware_5_02_00_00?

  • Hi Whitney

    I fixed the problem by delete a "_" inside STA_F283FxD_FLASHH_CPU1.cmd from the test_application project as below

          STL_CLA_seg01    : LOAD = FLASHK | FLASHL | FLASHM,
                             LOAD_START(Seg01LoadStart),
                             LOAD_SIZE(Seg01LoadSize),
                             LOAD_END(Seg01LoadEnd),
                             ALIGN(4)

    Right now, I got a new error message as attached log file.

    Description	Resource	Path	Location	Type
    #10008-D cannot find file "sfra_f32_tmu_eabi.lib"	2837xD_FLASH_lnk_cpu1.cmd	/f2837xd_EADI_test_application	line 125	C/C++ Problem
    #10010 errors encountered during linking; "f2837xd_EADI_test_application.out" not built	f2837xd_EADI_test_application		 	C/C++ Problem
    <a href="file:/C:/ti/ccs1260/ccs/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain	f2837xd_EADI_test_application		 	C/C++ Problem
    gmake: *** [all] Error 2	f2837xd_EADI_test_application		 	C/C++ Problem
    gmake[1]: *** [f2837xd_EADI_test_application.out] Error 1	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol _STACK_END, first referenced in ./sta_tests.obj	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol _stack, first referenced in ./sta_tests.obj	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol GPIO_setMasterCore, first referenced in ./sta_comm.obj	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol HwbistLoadSize, first referenced in ./sta_main.obj	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol HwbistLoadStart, first referenced in ./sta_main.obj	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol HwbistRunStart, first referenced in ./sta_main.obj	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol MemCfg_setLSRAMMasterSel, first referenced in C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_diagnostic_EADI_library/CPU1_DEBUG/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_cla.obj>	f2837xd_EADI_test_application		 	C/C++ Problem
    unresolved symbol STL_Util_getST1, first referenced in C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_diagnostic_EADI_library/CPU1_DEBUG/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib<stl_pie.obj>	f2837xd_EADI_test_application		 	C/C++ Problem
    #10068-D no matching section	2837xD_FLASH_lnk_cpu1.cmd	/f2837xd_EADI_test_application	line 124	C/C++ Problem
    #10247-D creating output section "d1ram" without a SECTIONS specification	f2837xd_EADI_test_application		 	C/C++ Problem
    #10247-D creating output section "dmatest" without a SECTIONS specification	f2837xd_EADI_test_application		 	C/C++ Problem
    #10247-D creating output section "ls3ram" without a SECTIONS specification	f2837xd_EADI_test_application		 	C/C++ Problem
    #10456-D You must specify the page for the specific placement of "UNION_7" when not using unified memory model.	STA_F2837xD_FLASH_CPU1_CLASWBIST.cmd	/f2837xd_EADI_test_application	line 33	C/C++ Problem
    

    Please advise how to fix it. FYI, I am using C2000Ware_5_02_00_00 in my product development

    I have other question. If the EABI library created successfully. Does it can be used in C2000Ware_5_02_00_00?

  • _stack and _STACK_END should be changed to __stack and __TI_STACK_END respectively:

                STA_User_spObj.startAddress = (uint32_t)_symval(&__stack);
                STA_User_spObj.endAddress = (uint32_t)_symval(&__TI_STACK_END);

    For the HwbistLoad*/HwbistRun* issues, you need to remove underscores from your cmd file like you did for the CLA "Seg" sections.

    The STL_Util_getST1 issue may be another underscore related issue. You'll need to edit stl_util_s.asm either to remove the underscore or to map the old name to the new one like below:

        .if $defined(__TI_EABI__)
            .asg    STL_Util_getST1, _STL_Util_getST1
        .endif

    In addition to porting to EABI, are you using the SDL within a newer version of C2000Ware? What version are you using? Are you also using EABI versions of driverlib and the SFO library?

    Whitney

  • Ah sorry, just realized you already mentioned your C2000Ware version. Yes, you can use it with C2000Ware 5.02.00 with a few minor changes. I think the GPIO_setMasterCore and MemCfg_setLSRAMMasterSel functions were renamed to GPIO_setControllerCore and MemCfg_setLSRAMControllerSel respectively.

    Whitney

  • Hi Whitney

    I did a following steps in Library / Test application projects

    Library

    1. Renamed GPIO_setMasterCode -> GPIO_setControllerCore

    2. Renamed MemCfg_setLSRAMMasterSet -> MemCfg_setLSRAMControllerSet

    3. Deleted "_" from .cmd and .asm file

    4. All includes pointer Diagnostic library as below

    Result : Just warning as below. I think that the warning should be ok. It is library project does not have these functions

    Description    Resource    Path    Location    Type
    <a href="file:/C:/ti/ccs1260/ccs/tools/compiler/dmed/HTML/225.html">#225-D</a>  function "GPIO_setControllerCore" declared implicitly    stl_error.c    /f2837xd_diagnostic_EABI_library    line 123    C/C++ Problem
    <a href="file:/C:/ti/ccs1260/ccs/tools/compiler/dmed/HTML/225.html">#225-D</a>  function "GPIO_setControllerCore" declared implicitly    stl_gpio.c    /f2837xd_diagnostic_EABI_library    line 99    C/C++ Problem
    <a href="file:/C:/ti/ccs1260/ccs/tools/compiler/dmed/HTML/225.html">#225-D</a>  function "GPIO_setControllerCore" declared implicitly    stl_gpio.c    /f2837xd_diagnostic_EABI_library    line 175    C/C++ Problem
    <a href="file:/C:/ti/ccs1260/ccs/tools/compiler/dmed/HTML/225.html">#225-D</a>  function "MemCfg_setLSRAMControllerSel" declared implicitly    stl_cla.c    /f2837xd_diagnostic_EABI_library    line 320    C/C++ Problem

    Test application

    1. Copy device.c and device.h from C2000Ware5_2_0.0 to the project

    2. Copy F2837xD_CodeStartbranch.asm/F2837xD_GlobalVariable.c from C2000Ware5_2_0_0 to the project

    3.Includes setting as below

    Result : as below


    **** Clean-only build of configuration FLASH for project f2837xd_test_application ****

    "C:\\ti\\ccs1260\\ccs\\utils\\bin\\gmake" -k -j 20 clean -O
     
    DEL /F  "f2837xd_test_application.out"
    DEL /F "F2837xD_CodeStartBranch.obj" "F2837xD_GlobalVariableDefs.obj" "device.obj" "sta_comm.obj" "sta_defaultisr.obj" "sta_main.obj" "sta_pievect.obj" "sta_tests.obj" "sta_timer.obj" "sta_user.obj" "sta_util.obj"
    DEL /F "F2837xD_GlobalVariableDefs.d" "device.d" "sta_comm.d" "sta_defaultisr.d" "sta_main.d" "sta_pievect.d" "sta_tests.d" "sta_timer.d" "sta_user.d" "sta_util.d"
    DEL /F "F2837xD_CodeStartBranch.d"
    Could Not Find C:\Users\hkwoo\Documents\Projects\Titan\f2837xd_test_application\FLASH\f2837xd_test_application.out
    Could Not Find C:\Users\hkwoo\Documents\Projects\Titan\f2837xd_test_application\FLASH\F2837xD_CodeStartBranch.d
    Finished clean
     

    **** Build Finished ****

    **** Build of configuration FLASH for project f2837xd_test_application ****

    "C:\\ti\\ccs1260\\ccs\\utils\\bin\\gmake" -k -j 20 all -O
     
    Building file: "../F2837xD_CodeStartBranch.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/calibration/hrpwm/f2837xd/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/include" --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/examples/cpu1/test_application/include" --include_path="C:/ti/C2000Ware_5_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/flash_api/f2837xd/include" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=_FLASH --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="F2837xD_CodeStartBranch.d_raw"  "../F2837xD_CodeStartBranch.asm"
    Finished building: "../F2837xD_CodeStartBranch.asm"
     
    Building file: "../sta_pievect.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/calibration/hrpwm/f2837xd/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/include" --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/examples/cpu1/test_application/include" --include_path="C:/ti/C2000Ware_5_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/flash_api/f2837xd/include" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=_FLASH --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sta_pievect.d_raw"  "../sta_pievect.c"
    Finished building: "../sta_pievect.c"
     
    Building file: "../sta_user.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/calibration/hrpwm/f2837xd/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/include" --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/examples/cpu1/test_application/include" --include_path="C:/ti/C2000Ware_5_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/flash_api/f2837xd/include" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=_FLASH --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sta_user.d_raw"  "../sta_user.c"
     
    >> Compilation failure
    subdir_rules.mk:16: recipe for target 'sta_user.obj' failed
    "C:\ti\C2000Ware_5_01_00_00\libraries\flash_api\f2837xd\include\Types.h", line 129: error #18: expected a ")"
    "C:\ti\C2000Ware_5_01_00_00\libraries\flash_api\f2837xd\include\Types.h", line 132: error #18: expected a ")"
    "C:\ti\C2000Ware_5_01_00_00\libraries\flash_api\f2837xd\include\Types.h", line 133: warning #48-D: incompatible redefinition of macro "true" (declared at line 46 of "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include/stdbool.h")
    2 errors detected in the compilation of "../sta_user.c".
    gmake: *** [sta_user.obj] Error 1
    Building file: "../sta_defaultisr.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/calibration/hrpwm/f2837xd/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/include" --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/examples/cpu1/test_application/include" --include_path="C:/ti/C2000Ware_5_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/flash_api/f2837xd/include" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=_FLASH --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sta_defaultisr.d_raw"  "../sta_defaultisr.c"
    Finished building: "../sta_defaultisr.c"
     
    Building file: "../sta_tests.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/calibration/hrpwm/f2837xd/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/include" --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/examples/cpu1/test_application/include" --include_path="C:/ti/C2000Ware_5_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/flash_api/f2837xd/include" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=_FLASH --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sta_tests.d_raw"  "../sta_tests.c"
     
    >> Compilation failure
    subdir_rules.mk:16: recipe for target 'sta_tests.obj' failed
    "C:\ti\C2000Ware_5_01_00_00\libraries\flash_api\f2837xd\include\Types.h", line 129: error #18: expected a ")"
    "C:\ti\C2000Ware_5_01_00_00\libraries\flash_api\f2837xd\include\Types.h", line 132: error #18: expected a ")"
    "C:\ti\C2000Ware_5_01_00_00\libraries\flash_api\f2837xd\include\Types.h", line 133: warning #48-D: incompatible redefinition of macro "true" (declared at line 46 of "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include/stdbool.h")
    2 errors detected in the compilation of "../sta_tests.c".
    gmake: *** [sta_tests.obj] Error 1
    Building file: "../sta_comm.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/calibration/hrpwm/f2837xd/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/include" --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/examples/cpu1/test_application/include" --include_path="C:/ti/C2000Ware_5_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/flash_api/f2837xd/include" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=_FLASH --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sta_comm.d_raw"  "../sta_comm.c"
    Finished building: "../sta_comm.c"
     
    Building file: "../device.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/calibration/hrpwm/f2837xd/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/include" --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/examples/cpu1/test_application/include" --include_path="C:/ti/C2000Ware_5_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/flash_api/f2837xd/include" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=_FLASH --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="device.d_raw"  "../device.c"
    Finished building: "../device.c"
     
    Building file: "../sta_main.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/calibration/hrpwm/f2837xd/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/include" --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/examples/cpu1/test_application/include" --include_path="C:/ti/C2000Ware_5_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/flash_api/f2837xd/include" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=_FLASH --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sta_main.d_raw"  "../sta_main.c"
     
    >> Compilation failure
    subdir_rules.mk:16: recipe for target 'sta_main.obj' failed
    "C:\ti\C2000Ware_5_01_00_00\libraries\flash_api\f2837xd\include\Types.h", line 129: error #18: expected a ")"
    "C:\ti\C2000Ware_5_01_00_00\libraries\flash_api\f2837xd\include\Types.h", line 132: error #18: expected a ")"
    "C:\ti\C2000Ware_5_01_00_00\libraries\flash_api\f2837xd\include\Types.h", line 133: warning #48-D: incompatible redefinition of macro "true" (declared at line 46 of "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include/stdbool.h")
    2 errors detected in the compilation of "../sta_main.c".
    gmake: *** [sta_main.obj] Error 1
    Building file: "../sta_timer.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/calibration/hrpwm/f2837xd/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/include" --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/examples/cpu1/test_application/include" --include_path="C:/ti/C2000Ware_5_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/flash_api/f2837xd/include" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=_FLASH --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sta_timer.d_raw"  "../sta_timer.c"
    Finished building: "../sta_timer.c"
     
    Building file: "../sta_util.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/calibration/hrpwm/f2837xd/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/include" --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/examples/cpu1/test_application/include" --include_path="C:/ti/C2000Ware_5_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/flash_api/f2837xd/include" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=_FLASH --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sta_util.d_raw"  "../sta_util.c"
    "C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/include/stl_util.h", line 246 (col. 62): advice #2614-D: (Performance) Use --fp_mode=relaxed to enable TMU hardware support for FP division.
    Finished building: "../sta_util.c"
     
    Building file: "../F2837xD_GlobalVariableDefs.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/calibration/hrpwm/f2837xd/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/include" --include_path="C:/Users/hkwoo/Documents/Projects/Titan/f2837xd_test_application/include" --include_path="C:/ti/C2000Ware_1_00_01_00/libraries/diagnostic/f2837xd/examples/cpu1/test_application/include" --include_path="C:/ti/C2000Ware_5_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/C2000Ware_5_01_00_00/libraries/flash_api/f2837xd/include" --include_path="C:/ti/C2000Ware_5_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=_FLASH --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="F2837xD_GlobalVariableDefs.d_raw"  "../F2837xD_GlobalVariableDefs.c"
    Finished building: "../F2837xD_GlobalVariableDefs.c"
     
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

    It always prompt Type.h as problem

    Please advice how to fix it.

  • Those "declared implicitly" warnings usually mean there's a missing #include somewhere.

    The Type.h issue appears to be a conflict between the driverlib hw_types.h and the Flash API Types.h files. The way TRUE and FALSE are defined in hw_types.h isn't compatible with the way Types.h uses the TRUE and FALSE values. I think you can probably remove the TRUE/FALSE code from Types.h for now. I'll report this conflict to our C2000Ware team though to see if we can resolve it in a future release.

    Whitney

  • HI Whitney

    I commented line 129 - 134 in Types.h, however still had same problem

  • Commenting them out worked for me. It doesn't make sense that you'd get those errors on lines that were commented. Are you seeing the same "error #18: expected a ')'" error or something new?

    Whitney

  • Hi Whitney

    I found that problem is due to a special character exists in Types.h as below

    #if ((defined(__TMS470__) || defined(__TI_ARM__)) && (__TI_COMPILER_VERSION__ < 5002000))
    #if !defined(__GNUC__)
    #error “F021 Flash API requires GCC language extensions. Use the –gcc option.â€
    #endif
    #endif

    The line started with #error contains a special character and cause the problem.

    I opened it with other editor, I don't see it. Then I deleted it. The error 'error #18: expected a ")"' is fixed, but still has some minor warning as below


    **** Build of configuration FLASH for project f2837xd_test_application ****

    "C:\\ti\\ccs1260\\ccs\\utils\\bin\\gmake" -k -j 22 all -O
     
    Building target: "f2837xd_test_application.out"
    Invoking: C2000 Linker
    "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --define=_FLASH --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi -z -m"f2837xd_test_application.map" --heap_size=0x200 --stack_size=0x400 --warn_sections -i"C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/lib" -i"C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="f2837xd_test_application_linkInfo.xml" --rom_model -o "f2837xd_test_application.out" "./F2837xD_CodeStartBranch.obj" "./F2837xD_GlobalVariableDefs.obj" "./device.obj" "./sta_comm.obj" "./sta_defaultisr.obj" "./sta_main.obj" "./sta_pievect.obj" "./sta_tests.obj" "./sta_timer.obj" "./sta_user.obj" "./sta_util.obj" "C:/ti/C2000Ware_5_01_00_00/libraries/flash_api/f2837xd/lib/F021_API_F2837xD_FPU32_EABI.lib" "C:/Users/hkwoo/OneDrive/Documents/Projects/Safety_Function/f2837xd_diagnostic_library/CPU1_DEBUG/F2837xD_Diagnostic_STL_CPU1_DEBUG.lib" "../F2837xD_Headers_nonBIOS_cpu1.cmd" "C:/ti/C2000Ware_5_01_00_00/libraries/calibration/hrpwm/f2837xd/lib/SFO_v8_fpu_lib_build_c28_eabi.lib" "../STA_F2837xD_FLASH_CPU1.cmd" "../STA_F2837xD_FLASH_CPU1_CLASWBIST.cmd" "../driverlib_eabi.lib"  -llibc.a
    <Linking>
    "../STA_F2837xD_FLASH_CPU1_CLASWBIST.cmd", line 33: warning #10456-D: You must specify the page for the specific placement of "UNION_3" when not using unified memory model.
    Finished building target: "f2837xd_test_application.out"

    You can find a .cmd file line 33 as below


    SECTIONS
    {
       UNION: run = 0x8000    //Line 33
       {
          STL_CLA_seg01    : LOAD = FLASHK | FLASHL | FLASHM,
                             LOAD_START(Seg01LoadStart),
                             LOAD_SIZE(Seg01LoadSize),
                             LOAD_END(Seg01LoadEnd),
                             ALIGN(4)

    Please advise how to fix it as well

  • I think it wants you to specify a page something like this:

       UNION: run = 0x8000, PAGE = 0
       {
          STL_CLA_seg01    : LOAD = FLASHK | FLASHL | FLASHM,
                             LOAD_START(Seg01LoadStart),
                             LOAD_SIZE(Seg01LoadSize),
                             LOAD_END(Seg01LoadEnd),
                             ALIGN(4)

    Whitney