This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Dear,
My application is EV Air Conditioner,In old version, we use CAN to communicate and it is OK. But ctm need us to change Lin protocol in new version and we meet some trouble in code, Pls help give some advice.
As ADC_Isr_User() need too much time to process,in order not to influence Lin communite, we use nested functions(KAdc_IrqNestAllow_Flg default 1)
no matter we set KAdc_IrqNestAllow_Flg as 1 or 0, code is OK to run, but Lin communition will be influenced,
So my question is when we start nested functions and run Lin protocol, Code will run to F2806x_DefaultIsr.c and that is not enable. Pls help comfirm if my nested functions(KAdc_IrqNestAllow_Flg default)is not OK? Great thx.
I think the issue is caused by manipulating the PIEIER register for group 9 inside the ISR for group 1. This is contrary to rule 2b in the reference manual (see section 1.6.3.1 on p.170).
Please see the s/w prioritized interrupts example in the header files, as well as the steps in section 1.6.3.2 for examples of how to prioritise interrupts in this way.
Regards,
Richard