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.

TMAG3001EVM: mspm0l1306evm CCS

Part Number: TMAG3001EVM
Other Parts Discussed in Thread: TMAG3001,

Tool/software:

I was debugging TMAG3001 mspm0l1396 and trashed my CCStudiotheia. So I saved my projects, and uninstalled CCStudiotheia. You changed your website. I can't find theia, except with problem solving on E2E.

I had problems with TMAG3001evm mspm0l1306evm with an added UART. Installing a new CCS5 and some code rewrite cleared the problem. I have some new questions. 

1. I am having issues trying to write subroutines. with the CCS downloaded yesterday. Here's an example:

typedef enum {
    MEASURE_X,
    MEAS3URE_Y,
    MEASURE_ANGLE
} MeasurementMode_t;
uini16_t  convert( MeasurementMode_t MEASURE_WHAT);;   CCS5 thinks  I'm trying to change uint16_t
2.iWhat is the way to turn off the AI help when you're writing/correcting code?
3. On TMAG3001evm mspm0l1306evm demo I see the code for SW2 interrupt, but can't fond anything for SW1. here's the code for SW2
void GROUP1_IRQHandler(void)
{
    /*
     * This IRQ is triggered when S2 is pressed on the LaunchPad.
     * IRQ sets a flag that allows the code to track the TMAG3001 interrupt
     */
    switch (DL_Interrupt_getPendingGroup(DL_INTERRUPT_GROUP_1)) {
        case DL_INTERRUPT_GROUP1_IIDX_GPIOA:
            switch (DL_GPIO_getPendingInterrupt(GPIO_GRP_0_PORT)) {
                case GPIO_GRP_0_SW2_IIDX:
                    enableReadFlag = 1;
                    break;
                case GPIO_GRP_0_TMAG_INTB_IIDX:
                    tmagInterrupt = 1;
                    break;
                case GPIO_GRP_0_SW1_IIDX:
                    calFlag = 1;
                default:
                    break;
            }
            break;
        default:
            break;
    }
}
Where is the "increment opMode" instruction?
4. CCS25 occasionally adds an instruction #include<cstdint.h> then can't find cstdint.h, I reloaded CCS yesterday because it couldn't find stdint.h
eric@avidasw.com edulicki@avidasw.com
  • Hi Eric,

    1. It may just be a typo from what you shared here, but if you look at what you shared below, it looks like when declaring the function you typed 'uini16_t' instead of uint16_t.

    uini16_t  convert( MeasurementMode_t MEASURE_WHAT);;   CCS5 thinks  I'm trying to change uint16_t

    2. I am not sure how to turn of the AI help as the version of CCS that I am using does not have it, though to be fair I am using an older version of CCS (12.3.0). 

    3. Regarding your question about the SW1 interrupt, I believe that this line here checks to see if SW1 is pressed:

    case GPIO_GRP_0_SW1_IIDX:

    4. For where opMode gets incremented, it looks like that occurs on line 243, similar to the below:

    Best,

    ~Alicia