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.

TMS320F28377D: configuring spi in cpu02

Part Number: TMS320F28377D

Hi, I tried to configure SPIA from CPU02, without success.  When I go into debug mode and pause the code, the code gets stuck in the while((HWREGH(CLKCFG_BASE + SYSCTL_O_SYSPLLSTS) &
SYSCTL_SYSPLLSTS_LOCKS) == 0U) Not quite sure why this is happening.
 Before this, all of the functions were already tested on CPU01 and ran brilliantly. 

Here are some snippets of the code in core1:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Device_init();
Device_initGPIO();
// GPIO58 is the SPISIMOA.
GPIO_setMasterCore(58, GPIO_CORE_CPU2);
GPIO_setPinConfig(GPIO_58_SPISIMOA);
GPIO_setDirectionMode(58, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(58, GPIO_PIN_TYPE_STD);
// GPIO59 is the SPISOMIA.
GPIO_setMasterCore(59, GPIO_CORE_CPU2);
GPIO_setPinConfig(GPIO_59_SPISOMIA);
GPIO_setDirectionMode(59, GPIO_DIR_MODE_IN);
GPIO_setPadConfig(59, GPIO_PIN_TYPE_STD);
// GPIO60 is the SPICLKA.
GPIO_setMasterCore(60, GPIO_CORE_CPU2);
GPIO_setPinConfig(GPIO_60_SPICLKA);
GPIO_setDirectionMode(60, GPIO_DIR_MODE_IN);
GPIO_setPadConfig(60, GPIO_PIN_TYPE_STD);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX