Part Number: TMS320F28377D
Tool/software:
I have 1+ machines which are hot-swappable and sharing the CAN bus.
When new machine plugs in and its MCU wake up, there was a very short low pulse occurred. It might affect the data which existing machines is transferring.
I try to fix it by writing pin DAT before config the CANTX pin as below:
Before:
GPIO_SetupPinOptions(MONITOR_CAN_GPIO_TX, GPIO_OUTPUT, GPIO_PUSHPULL);
GPIO_SetupPinMux(MONITOR_CAN_GPIO_TX, GPIO_MUX_CPU1, 3);

After:
GPIO_WritePin(MONITOR_CAN_GPIO_TX, true);
GPIO_SetupPinOptions(MONITOR_CAN_GPIO_TX, GPIO_OUTPUT, GPIO_PUSHPULL);
GPIO_SetupPinMux(MONITOR_CAN_GPIO_TX, GPIO_MUX_CPU1, 3);

Question:
- Is the right way to fix the low pulse?
- Is there a sequence shall be followed among WritePin, SetDirecetion, and SetMux?