I have a new RX140 project that that I used the smart configurator to create the MTU0, MTU1, MTU2 timer functions as well as SCI12 SPI functions; all of which include interrupts. When I build the project, I get no errors but I am concerned about the warnings I am getting. Every interrupt has a warning associated with it. The warning is "Unused static function". I see the call to create the interrupt functions in: void R_Systeminit(void) and I added R_Config_MTU0_Start(); and the other interrupt start functions to my code. Additionally I set a variable to increment in one of the interrupts so as not to be empty. Still they all have warnings. Am I missing something like setting the "I" bit? Is it something to do with using 2 stacks?
I used e2 studio 7.5 several years back and don't recall needing to do anything further to get the interrupts working. I hope to resolve the warnings and begin entering code into those interrupts so when my target board arrives I am ready for it.
I would be grateful for any suggestions,
I'm not sure if my assumption is correct but probably it's not the MCU and interrupts issue, but a gcc compiler issue.The compiler notices the ISR functions that are not invoked from anywhere…
Thank you, I will be able to check that out in the next day or two.
I'm not sure if my assumption is correct but probably it's not the MCU and interrupts issue, but a gcc compiler issue.The compiler notices the ISR functions that are not invoked from anywhere and rises this warning.
At least this warning happens not only in the RX-related applications. Maybe you need to select another C standard in the project properties (for instance switch from ISO to GNU, or try different C versions).
If this response, or one provided by another user, answers your question, please verify the answer. Thank you!RenesasRulz Forum Moderatorhttps://renesasrulz.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
I got my target in and interrupts are working correctly. You were/are correct it is just warning me because they ares not invoked anywhere in code.