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.

TMS570LC4357: DMM gpio not working in FreeRTOS task

Part Number: TMS570LC4357


Tool/software:

In main.c I initialize one pin of the DMM as an output and set it as follows:

#define dmmREG ( ( dmmBASE_t * ) 0xFFFFF700U )

uint32 pinMask = 0;

dmmREG->GLBCTRL = 0x5; // ON/OFF = 0101 in GLBCTRL
pinMask |= ( 1U << 12 );
dmmREG->PC0 &= ~pinMask; // Set to GIO
dmmREG->PC1 |= ( 1U << 12 ); // Set direction
dmmREG->PC4 = ( 1U << 12 ); // Set pin 12 High atomically

and it works!!

My problem is that when I try to set the same pin via a periodic FreeRTOS task I get a memory access protection fault:
dataEntry
b dataEntry

Can I get some help please?