I'm working on an RX130 based project, and I need to have a custom serial receive ISR for the serial port. I've enabled the SCI module on the Smart Configurator and then I added my functions in the user area delimited by the comments in Config_SCI0_User.c. Between these function there is my custom serial receive ISR, named r_Config_SCI0_receive_interrupt() like the one generated by Smart Configurator, marked as an ISR using the pragma directive.The problem is that every time the Smart Configurator decides to re-generate the files, it adds back the default ISR, causing a compiler error for duplicate function, and the only way to solve that is to manually delete the default ISR.
Is there a way to tell Smart Configurator to not generate that ISR? I've also taught about changing the function name, but I don't know what the compiler will do if it sees two functions marked with #pragma on the same interrupt vector.
I'm not an RX user though so I'm not fully familiar on how to modify things like this. But I've tried it and it seems like there's a way for the Smart Configurator not to generate the interrupt…
I'm not an RX user though so I'm not fully familiar on how to modify things like this. But I've tried it and it seems like there's a way for the Smart Configurator not to generate the interrupt functions at all. However, only the initialization function will be generated. If you're okay with that, then you can right click the component and then click "Output only initialization API":
Just manually copy the other functions such as the R_Config_SCI0_Start(), R_Config_SCI0_Stop(), R_Config_SCI0_Serial_Receive(), R_Config_SCI0_Serial_Send(), etc., inside the comment generated by the code generator that is not be affected by the Smart Configurator. This way you can manually add your custom ISRs.
JBIf this response, or one provided by another user, answers your question, please verify the answer. Thank you!Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
Oh wow this is it! Yeah I just copied the functions generated earlier and bum, it works!
Thank you very much!
Glad that worked for you. You're welcome!