When I tried to test the drivers of FlexCan with testing tasks ,I found that if FlexCan is disabled,the testing tasks couldn't run any more.The tasks would be interrupted by a unhandled interrupt.
So there was no chance to enabled the FlexCan module. Then I opened the memory window of IAR in order to look for the errors of FlexCan, but I find there is no value in the specified memory.
My english is poor,please forgive me . Thank you!
FlexCan0‘s base address
Flash memory's base address
SPI0's base address
Solved! Go to Solution.
Is the clock gate enabled in the SIM? Reading or writing the module registers without the clock gate enabled will cause bus faults.
Is the clock gate enabled in the SIM? Reading or writing the module registers without the clock gate enabled will cause bus faults.
Think you for your replay.I have found why the FlexCAN can't work.The SIM and OSC is not enabled ,your answer helped me. Thank you very much.