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.
Hello,
I am using TMS570LS0432 For Timer and SPI i referred example in HALCoGen folder for SPI and timer Interrupt mode setting.
When i call the SpiSendandGetData function in main function then i receive correct data from my slave device but when i call the same spi function in 100ms rtinotificaion then i am getting incorrect data
please give me solution if i am wrong with setting of interrupt selection.
Both timer and spi interrupts are IRQ interrupt .
Thanks & Regards
Thank you for your quick reply
For both RTI and SPI in IRQ interrupt mode it is not working.
In datasheet i read that it is not possible to call IRQ interrupt in another IRQ interrupt. that's why i think it is not working
but when i set SPI in FIQ interrupt and RTI in IRQ interrupt then i will get correct data on SPI port
but i want another interrupt on highest priority other than the SPI and RTI then how to set the priority of interrupt.
Can you give any info related to re-entrant interrupt handling or any sample code for how i can create re-entrant interrupt for HALCoGen .
Thanking you...
Hi Sameer,
Interrupt Nesting is strongly not recommended for Safety Application.
Is your application targeting any Safety?
Typically ISR's must be very quick, hence it should be of minimal code as possible.
The CPU will automatically disable IRQ as soon as it enters in IRQ mode to avoid nested IRQ.
It is possible within the IRQ service routine to re-enable IRQ. But I won't recommend this step unless as user you know what all context has to be taken care..