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.
Hi,
Under CCS V8 (recent installation), it seems that there is a problem with some values in the file C:\ti\simplelink_msp432p4_sdk_2_20_00_12\source\ti\devices\msp432p4xx\inc\msp432p401r_classic.h wihch contains definitions for register's offset, used for example in simple noRTS applications with driverlib, by the #inclufde chaining.
I found the same file in the installation tree with different value, C:\ti\tirtos_msp43x_2_20_00_06\products\msp432_driverlib_3_21_00_05\inc\msp432p401r_classic.h.
For example, the P1IE and P2IE offset (OFS_P1IE and OFS_P2IE) are different in the first file and in the second one.
For me, the second one is ok but older (2015) than the first (2018). Very strange, but may be i'm wrong.
These values are used for example in the driverlib function : uint_fast16_t GPIO_getEnabledInterruptStatus(uint_fast8_t selectedPort) where they are added to baseAdress of even Port (P2 to 8) and odd port (P1 to 9) respectively. As the base_adress in the GPIO_PORT_TO_BASE array are different for P1 and P2 port, 0x40004C00, and 0x40004C01, the offsets to P1IE and P2IE have to be the same. GPIO_PORT_TO_BASE is defined in drivellib.C or gpio.c
Thanks
Chris
Hello Amit
Sorry for my late answer, I was far from my PC...
Many thanks for your answer.
I have noted that there is a new revision of the files, but it seems that the offset datas are not in accordance with the offsets that i found in the Technical reference for MSP432P4XX (slau356h.pdf) revised december 2017.
I was looking at that for teaching pupose, in order to show the link between the low level hardware, and the C software. For now I have not tested to use the port2 interrupt for example but I will try it.
May be I'm wrong with the .h files i'am looking at, and i will check it again carefully.
Regards
Chris
**Attention** This is a public forum