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.

Energia Msp432 Change Pins (Add HW UART)

Other Parts Discussed in Thread: ENERGIA

Hello ,

i have a msp432 launchpad board, and i am using with ccs ide and energia ide.

in energia ide , msp432 hardware serial pins are p1_2,p1_3 and p3_2,p3_3.

but msp432p401r also have a two more hardware serial ports. p2_2,p2_3 and p9_6,p9_7.

if we look at the hardwareSerial.cpp file , last 2 lines 

HardwareSerial Serial(0);
HardwareSerial Serial1(1); 

and if we look hardware\msp432\variants\MSP_EXP432P401R\board_init.c file there is just 2 uart implemented with ti driverlib.

but if we write Board_init.c: Board_initUART function like

/* Set P1.2 & P1.3 in UART mode */
MAP_GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P1,
GPIO_PIN2 | GPIO_PIN3,
GPIO_PRIMARY_MODULE_FUNCTION);

/* Set P3.2 & P3.3 in UART mode */
MAP_GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P3,
GPIO_PIN2 | GPIO_PIN3,
GPIO_PRIMARY_MODULE_FUNCTION);

/* Set P2.2 & P2.3 in UART mode */
MAP_GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P2,
GPIO_PIN2 | GPIO_PIN3,
GPIO_PRIMARY_MODULE_FUNCTION);

and i also add other uart definations to above the Board_initUART function.

but thats not working. so i discovery something.

if we just delete something in board_init.c file , purpose of syntax error. like i am deleting ";' charecter one line of code , energia still compile the sketch.

so energia doesn't compile board_init.c file. and i don't know how to compile it. there is makefile file but its not working for me. and i am bad compiling things.

so how i can edit energia msp432 hardware/firmware ? do you have a any idea ? 

thanks cevat.

**Attention** This is a public forum