Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RTOS/MSP432E401Y: Receive I2C signal on port even when debugger is halted

$
0
0

Part Number: MSP432E401Y

Tool/software: TI-RTOS

Hello,

I am working on MSP432#401Y Launchpad. I have loaded i2c example program which reads the temperature from on board sensor.

The example code suppose to measure the temperature and display.

However, I observed that even when the program is halted at a specific break point and I try capturing the data on pins I2CMSP432E4_PN5_I2C2SCL and I2CMSP432E4_PN4_I2C2SDA.

It displays some data on the both the pins.

As per my understanding there should not be any data when its program is halted it could be at max either continue to be HIGH or LOW

Should there be some data when debugger is halted?

Also, I want to use I2C0 instead of I2C2 port used in example code.

Is that enough if I update the struct parameter in below struct for using I2C0 port or need to change some other code piece as well?

I could not trace any other place than the below struct where I2C port is been mentioned in example code

/* MSP_EXP432E401Y.c */
const I2CMSP432E4_HWAttrs i2cMSP432E4HWAttrs[MSP_EXP432E401Y_I2CCOUNT] = {
    {
#if 1		//This is what I want
        .baseAddr = I2C0_BASE,
        .intNum = INT_I2C0,
        .intPriority = (~0),
        .sclPin = I2CMSP432E4_PB2_I2C0SCL,
        .sdaPin = I2CMSP432E4_PB3_I2C0SDA,
        .masterCode = 0x08
#else		//Example code
        .baseAddr = I2C2_BASE,
        .intNum = INT_I2C2,
        .intPriority = (~0),
        .sclPin = I2CMSP432E4_PN5_I2C2SCL,
        .sdaPin = I2CMSP432E4_PN4_I2C2SDA,
        .masterCode = 0x08
#endif

    }
};

Thanks

/Hp


Viewing all articles
Browse latest Browse all 262198

Trending Articles