Hi NXP,
I tried to utilize the STM Timer with AUTOSAR's GPT Module (on S32 Design Studio). Despite multiple attempts of changing the configuration by changing the clock source, removing the notification callbacks etc., but hardfaults always occurs. It occurs while the Stm_Ip_DebugMode() is getting executed and it is calling the API to enter the SchM Exclusive Area for the GPT. Please provide your support to resolve this issue.
Hello @VaneB ,
I am using the 6.0.0 version of the Real time drivers which supports AUTOSAR 4.7 standards.
Hi @a1g1
It seems you might be using an older RTD version. We generally recommend using the latest RTD release, as it includes bug fixes, improvements, and new features.
Could you please try with the latest version and let me know if the issue still persists?
In the meantime, it would also help if you could share the exact RTD version you are currently using so we can better analyze the situation.
BR, VaneB
Hi @a1g1
Thank you for the clarification, and I apologize for the previous confusion.
I have reviewed the .mex file you shared and have a few observations:
For ease of reference, I am attaching the main file and the .mex configuration I used, so you can compare them on your side.
Hello @VaneB ,
Thank you for your support. It is working now. After taking the configuration changes you had suggested, I went thru your code and found that I hadn't been calling that Mcu_SetMode API. This prevented the code from going into hardfault.
Thanks and Best Regards,