Other Parts Discussed in Thread: TMS570LS0432, , TMS570LS3137
Tool/software:
Following the question asked in a previous topic:
Still we haven't been able to find a solution about the issue with disabling the DCAN2 peripheral, during a live debugging session, it was found that DCAN2 can be disabled while the CLKCNT->PENA bit is clear, once the bit is set, for some reason all the other peripherals can be disabled but DCAN2.
During the session, the following things were noticed:
At the very beginning, before running the periphInit() routine, the DCAN2 as well as other peripherals are disabled by default:
Then after the PENA bit is set to 1 in the CLKCNT, the DCAN2 can't be disabled anymore, we can disable all the other peripherals but DCAN2:
When trying to clear the PENA bit in the CLKCNT register before disabling the DCAN2 peripheral, it seems we are able to correctly disable it, but once the PENA bit goes to 1 again, DCAN2 bit in the PCR.PSPWRDWNSET1 is clear, meaning that DCAN2 peripheral is not disabled as expected