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/TM4C1294NCPDT: CRC BASE macro definition incorrect in TivaWare manual

Part Number: TM4C1294NCPDT

Tool/software: Code Composer Studio

An old and locked post had already pointed this out...

However, a few versions of Tivaware were published since then, and the manual remains incorrect, so it might be the case of "reminding" TI.

e2e.ti.com/.../360408

User guide "programming example", chapter 7.3, refers to the CRC base as EC_BASE, while the correct is CCM0_BASE.

Regards

Bruno

  • Hi Bruno,

     I just checked and you are correct and I apologize that the mistake remains.

    main(void)
    {
    //
    // Enable the CRC module.
    //
    SysCtlPeripheralEnable(SYSCTL_PERIPH_CCM0);
    //
    // Wait for the CRC module to be ready.
    //
    while(!SysCtlPeripheralReady(SYSCTL_PERIPH_CCM0))
    {
    }
    //
    // Configure the CRC module.
    //
    CRCConfigSet(EC_BASE,
    CRC_CFG_INIT_SEED |
    CRC_CFG_TYPE_P4C11DB7 |
    CRC_CFG_SIZE_32BIT);
    //
    // Set the seed value.
    //
    CRCSeedSet(EC_BASE, 0x5a5a5a5a);
    //
    // Process the data and get the result. The result should be
    // 0x75fd6f5c.
    //
    g_ui32Result = CRCDataProcess(EC_BASE, g_ui32RandomData, 16, false);
    }