Other Parts Discussed in Thread: SYSCONFIG
Hi TI Team,
We are working on the CAN bus module in BBB (AM335x) SoC. We recognized and configured the pin mux in the library files for the DCAN as required, the pinmux config API seems working fine in the baremetal code however it doesn't work in the RTOS code to configure the pin mux for DCAN.
status = PINMUXModuleConfig(CHIPDB_MOD_ID_DCAN, pCfgDcan->instNum, NULL);
So we used following register access functions to change the pinconfig of the DCAN by writing manually into the control module register.
/* Configure the pin mux */
For DCAN0:
HW_WR_REG32(0x44E1097C, 0x32);
HW_WR_REG32(0x44E10978, 0x32);
For DCAN1:
HW_WR_REG32(0x44E10980, 0x32);
HW_WR_REG32(0x44E10984, 0x32);
Please let us know:
1. Why the PINMUXModuleConfig() function works in baremetal but not in RTOS?
2. Is it fine to modify the control module register manually as shown above with register access functions to configure pinmux mode for DCAN?
Thanks.