I have a new RX140 project 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 ...Read more
I have a new RX140 project 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?
Details:
- e2 Studio 2022-04
- RX140 (R5F51403ADFM)
- 2 stacks (user and interrupt)
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. This warning happens not only in the RX-related applications. Maybe you need to select another C standard in the project propertRead more
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.
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).
See less