This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem in function pointer variable

Hello,
I have faced a problem with a function pointer variable. I have separated the uart module in two parts: HAL, which abstracts the hardware, and Service, which provides the uart service to the application. The interrupt routine is in HAL module, which has a function pointer variable that is called into the interrupt routine as interrupt handler. The actual interrupt handler function is in Service module. This function is assigned to the function pointer variable through a install function in the init routine.
It works in debug simulation, but when I load the hex file to the microcontroller the application does not work. Anyone can help me?

0