Other Parts Discussed in Thread: MMWAVE-SDK,
Tool/software: Code Composer Studio
Hi,
In the mmw demo code it has a section called mmwave demo task where GPIO is initialised. However, when i try to use GPIO_write(SOC_XWR14XX_GPIO_0 ,1) to set the GPIO_0 high, it gives me this error:
[Cortex_R4_0] Debug: Launched the Initialization Task
Debug: HWA has been initialized
Debug: EDMA instance 0 has been initialized
{module#8}: "src/gpio.c", line 925: error {id:0x10000, args:[0x1a558, 0x1a558]}
xdc.runtime.Error.raise: terminating execution
Im not sure why my gpio pin isnt high when i test it while the demo is running. Any help would be appreciated.
Thanks
void MmwDemo_initTask(UArg arg0, UArg arg1) { int32_t errCode; MMWave_InitCfg initCfg; UART_Params uartParams; Task_Params taskParams; /* Debug Message: */ System_printf("Debug: Launched the Initialization Task\n"); /***************************************************************************** * Initialize the mmWave SDK components: *****************************************************************************/ /* Initialize the UART */ UART_init(); /* Initialize the Mailbox */ Mailbox_init(MAILBOX_TYPE_MSS); /* Initialize the GPIO */ GPIO_init (); /* Initialize the Data Path: */ MmwDemo_dataPathInit(&gMmwMCB.dataPathObj); /***************************************************************************** * Open & configure the drivers: *****************************************************************************/ GPIO_setConfig(SOC_XWR14XX_GPIO_0, GPIO_CFG_OUTPUT); GPIO_write(SOC_XWR14XX_GPIO_0,1); ..........
Saad