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.
Part Number: MSP432P401R
Tool/software: Code Composer Studio
Hi,
I am learning how to program msp432401r launchpad using CCS studio, my CCS version is 6.1.2. I would like to do some interrupt examples. But I didn't do one yet, so anybody please give me atleast a button interrupt example. My compiler version is TI v5.2.5. If you don't have one can u wrote one simple button interrupt led toggle example for me.
Thank you.
Hi Keith,
When I tried to do a simple gpio_input_toggle example in IAR it shows this much errors.
Error[Pe020]: identifier "REF_A_CTL0_VSEL_3" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 86
Error[Pe020]: identifier "ADC14_CTL0_SSEL_3" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 91
Error[Pe020]: identifier "ADC14_CTL0_PDIV_0" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 91
Error[Pe020]: identifier "ADC14_CTL0_DIV_0" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 91
Error[Pe020]: identifier "ADC14_MCTLN_VRSEL_1" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 106
Error[Pe020]: identifier "ADC14_MCTLN_INCH_0" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 107
Error[Pe020]: identifier "ADC14_MCTLN_INCH_1" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 110
Error[Pe020]: identifier "ADC14_MCTLN_INCH_2" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 113
Error[Pe020]: identifier "ADC14_MCTLN_INCH_3" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 116
Error[Pe020]: identifier "ADC14_MCTLN_INCH_4" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 119
Error[Pe020]: identifier "ADC14_MCTLN_INCH_5" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 122
Error[Pe020]: identifier "ADC14_MCTLN_INCH_6" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 125
Error[Pe020]: identifier "ADC14_MCTLN_INCH_7" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 128
Error[Pe020]: identifier "ADC14_IER0_IE7" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 132
Error[Pe020]: identifier "ADC14_CTL0_MSC" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 141
Error[Pe020]: identifier "ADC14_IER0_IE7" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\adc14_multiple_channel_no_repeat.c 164
Error while running C/C++ Compiler
system_msp432p401r.c
Warning[Pe1105]: #warning directive: MSP432 software will be updated to use CMSIS-Core in March 2016. This update will allow your MSP432 software to be CMSIS compliant, but require C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.3\arm\inc\TexasInstruments\msp432p401r.h 69
modification to your existing MSP432 code. A beta release is available if you want to start converting your code today. Refer to http://www.ti.com/MSP432CMSIS for detailed changes, conversion
guide and background information.
Error[Pe136]: struct "<unnamed>" has no field "CTL1" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 113
Error[Pe020]: identifier "CS_CTL1_DIVM_MASK" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 113
Error[Pe020]: identifier "CS_CTL1_DIVM_OFS" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 113
Error[Pe136]: struct "<unnamed>" has no field "CTL1" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 115
Error[Pe020]: identifier "CS_CTL1_SELM_MASK" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 115
Error[Pe020]: identifier "CS_CTL1_SELM__LFXTCLK" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 119
Error[Pe136]: struct "<unnamed>" has no field "IFG" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 120
Error[Pe020]: identifier "CS_IFG_LFXTIFG_OFS" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 120
Error[Pe136]: struct "<unnamed>" has no field "KEY" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 123
Error[Pe020]: identifier "CS_KEY_VAL" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 123
Error[Pe136]: struct "<unnamed>" has no field "CLRIFG" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 124
Error[Pe020]: identifier "CS_CLRIFG_CLR_LFXTIFG" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 124
Error[Pe136]: struct "<unnamed>" has no field "KEY" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 125
Error[Pe136]: struct "<unnamed>" has no field "IFG" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 127
Error[Pe136]: struct "<unnamed>" has no field "CLKEN" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 129
Error[Pe020]: identifier "CS_CLKEN_REFOFSEL_OFS" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 129
Error[Pe020]: identifier "CS_CTL1_SELM__VLOCLK" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 148
Error[Pe020]: identifier "CS_CTL1_SELM__REFOCLK" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 151
Error[Pe136]: struct "<unnamed>" has no field "CLKEN" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 152
Error[Pe020]: identifier "CS_CLKEN_REFOFSEL_OFS" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 152
Error[Pe020]: identifier "CS_CTL1_SELM__DCOCLK" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 161
Error[Pe136]: struct "<unnamed>" has no field "CTL0" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 162
Error[Pe020]: identifier "CS_CTL0_DCOTUNE_MASK" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 162
Error[Pe020]: identifier "CS_CTL0_DCOTUNE_OFS" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 162
Error[Pe136]: struct "<unnamed>" has no field "CTL0" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 164
Error[Pe020]: identifier "CS_CTL0_DCORSEL_MASK" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 164
Error[Pe020]: identifier "CS_CTL0_DCORSEL_0" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 166
Error[Pe020]: identifier "CS_CTL0_DCORSEL_1" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 169
Error[Pe020]: identifier "CS_CTL0_DCORSEL_2" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 172
Error[Pe020]: identifier "CS_CTL0_DCORSEL_3" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 175
Error[Pe020]: identifier "CS_CTL0_DCORSEL_4" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 178
Error[Pe020]: identifier "CS_CTL0_DCORSEL_5" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 181
Error[Pe136]: struct "<unnamed>" has no field "CTL0" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 198
Error[Pe020]: identifier "CS_CTL0_DCORES_OFS" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 198
Error[Pe136]: struct "<unnamed>" has no field "DCOER_CONSTK_RSEL04" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 200
Error[Pe136]: struct "<unnamed>" has no field "DCOER_FCAL_RSEL04" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 201
Error[Pe136]: struct "<unnamed>" has no field "DCOIR_CONSTK_RSEL04" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 206
Error[Pe136]: struct "<unnamed>" has no field "DCOIR_FCAL_RSEL04" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 207
Error[Pe020]: identifier "CS_CTL1_SELM__MODOSC" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 216
Error[Pe020]: identifier "CS_CTL1_SELM__HFXTCLK" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 219
Error[Pe136]: struct "<unnamed>" has no field "IFG" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 220
Error[Pe020]: identifier "CS_IFG_HFXTIFG_OFS" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 220
Error[Pe136]: struct "<unnamed>" has no field "KEY" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 223
Error[Pe020]: identifier "CS_KEY_VAL" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 223
Error[Pe136]: struct "<unnamed>" has no field "CLRIFG" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 224
Error[Pe020]: identifier "CS_CLRIFG_CLR_HFXTIFG" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 224
Error[Pe136]: struct "<unnamed>" has no field "KEY" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 225
Error[Pe136]: struct "<unnamed>" has no field "IFG" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 227
Error[Pe136]: struct "<unnamed>" has no field "CLKEN" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 229
Error[Pe020]: identifier "CS_CLKEN_REFOFSEL_OFS" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 229
Error[Pe136]: struct "<unnamed>" has no field "CTL" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 277
Error[Pe020]: identifier "WDT_A_CTL_PW" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 277
Error[Pe020]: identifier "WDT_A_CTL_HOLD" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 277
Error[Pe136]: struct "<unnamed>" has no field "SRAM_BANKEN" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 280
Error[Pe136]: struct "<unnamed>" has no field "KEY" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 317
Error[Pe020]: identifier "CS_KEY_VAL" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 317
Error[Pe136]: struct "<unnamed>" has no field "CTL0" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 318
Error[Pe020]: identifier "CS_CTL0_DCORSEL_1" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 318
Error[Pe136]: struct "<unnamed>" has no field "CTL1" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 319
Error[Pe020]: identifier "CS_CTL1_SELM_MASK" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 319
Error[Pe020]: identifier "CS_CTL1_DIVM_MASK" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 319
Error[Pe020]: identifier "CS_CTL1_SELM__DCOCLK" is undefined C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 319
Error[Pe136]: struct "<unnamed>" has no field "KEY" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 320
Error[Pe136]: struct "<unnamed>" has no field "BANK0_RDCTL" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 323
Error[Pe136]: struct "<unnamed>" has no field "BANK1_RDCTL" C:\ti\msp432_driverlib_3_21_00_05\examples\MSP432P4xx\adc14\adc14_multiple_channel_no_repeat\system_msp432p401r.c 324
**Attention** This is a public forum