I have application software containing the CAN, ICU, DIO, PWM out, configuration. Here the Can Rx is on interrupt and ICU also have interrupt.
The issue is, as we include the ICU configuration in application the application is stuck in Hard-Fault, when i am sending any CAN message. As we remove the ICU configuration the application works fine. I not able to find any reason for this.
Someone pls help me. Does the interrupt priority create this type of issue?
Thanks
Hi, @RushikeshK_DC,
In general, hardfaults are caused by the lack of enabling the clocks required by each component. This is done in the Mcu tab -> McuModuleConfiguration -> McuModeSettingConf -> McuPeripheral tab, where all peripheral clocks are listed.
Maybe the eMIOS instance you are using does not have the related clock enabled. In the first phase, try to follow existing models configured to work using ICU, which are delivered with the toolbox. If you still cannot get your application to work, you can attach the archive with the model and the related configuration to try to help you solve the problem.
Best regards,
Dragos