Hi expert,
We are modifying example project "cm_common_config_c28x.c" to pass control of CAN peripheral to CPU2 and we are targeting to let CPU2 use CANB. We configured like this but seems not success. (CPU2 CANB initialization failed).
1. Do we offer any example show case of how to assign peripheral from CPU1 to CPU2 correctly? It seems using differnent API against passing peripheral to CM core.
2. Could you let us know if we did it correctly? If not, could you help us to do it right? (As shown below)
#ifdef CANB
//
// Configuring the GPIOs for CAN B.
//
GPIO_setPinConfig(DEVICE_GPIO_CFG_CANRXB);
GPIO_setPinConfig(DEVICE_GPIO_CFG_CANTXB);
//
// Allocate Shared Peripheral CAN B to the CM Side.
//
//SysCtl_allocateSharedPeripheral(SYSCTL_PALLOCATE_CAN_B,0x1U);
SysCtl_selectCPUForPeripheral(SYSCTL_CPUSEL8_CAN,1,SYSCTL_CPUSEL_CPU2);
#endif
Thanks
Sheldon