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.

TMS320F2837xD accessing GPIO by CPU2



Hi,


I'm working with TMS320F2837xD device and I have a question about accessing GPIO pins from CPU2. For CPU1 project I'm using the code structure like this:

   EALLOW;
   	 GpioCtrlRegs.GPAMUX2.bit.GPIO19 = 0x0000;
   	 GpioCtrlRegs.GPADIR.bit.GPIO19 = GpioCtrlRegs.GPADIR.bit.GPIO19 | (1);
   	 GpioDataRegs.GPADAT.bit.GPIO19 = 0;
   EDIS;

This works for CPU1 very well. But for CPU2 the access to GpioCtrlRegs is prohibited. Does it mean that for CPU2  projects I need to re-write this code structure to GPIO_ReadPin/GPIO_WritePin? Or is there any other way how to access GPIO pins from CPU2?

Thank you!

Best regards,

Tomas