Other Parts Discussed in Thread: CC3220SF
I am working on a project that started out as the Network Terminal project.
We have some test points on our hardware which I would like to initilize as outpus so we can hang LEDs or logic analyser probes on them so that we can monitor status of code execution.
I was able to reuse the setup for the Launchpad LEDs for our LEDs but on different GPIO pins 10 and 11. After commenting out the conflicting setup for UART and PWM (in the board.h file) I have them working.
Being careful to keep the enumerations on order and the same number, I tried to set up more GIPO as output by duplicating the setup which worked for the LED pins on GPIOCC32XX_GPIO_09, GPIOCC32XX_GPIO_10, and GPIOCC32XX_GPIO_11 in the file CC3220SF_LAUNCHXL.c and CC3220SF_LAUNCHXL.h, but for additional pins. Here they are:
/* ST365 R1 Test points */ //FLE 20190417
GPIOCC32XX_GPIO_00 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW, // TP215
GPIOCC32XX_GPIO_05 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW, // TP216
GPIOCC32XX_GPIO_06 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW, // TP217
GPIOCC32XX_GPIO_07 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW, // TP218
GPIOCC32XX_GPIO_08 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW, // TP219
When I run the project, when the code gets to the write to make the first of the new pins high, the code gets trapped in an interrupt handler.
* ======== Hwi_excHandler ========
*/
Void Hwi_excHandler(UInt *excStack, UInt lr)
{
Hwi_module->excActive[0] = TRUE;
/* spin here if no exception handler is plugged */
while (Hwi_excHandlerFunc == NULL) {
;
}
Hwi_excHandlerFunc(excStack, lr);
}
I conclude that I have not correctly set up the pins or there is a conflicting setup for some other function on those pins but I do not know how to find such a conflict.
Had the comments in the code for GPIOCC32XX_GPIO_10, and GPIOCC32XX_GPIO_11 not warned my about conflicts with UART and PWM pins I would have had no clue. Perhaps I need to identify some similar conflicting changes for the new pins in the board.h file but do not see it.
I will provide fuller code examples in a following posts.
Suggestions for what I should do next?