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
已解决! 转到解答。
Is the clock gate enabled in the SIM? Reading or writing the module registers without the clock gate enabled will cause bus faults.