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

Keil ingnores function when compiling

Hi!

I am implementing new features in an old project. It uses the LL driver, but I programmed this new feature in the newest HAL driver using STMCUBEIDE, my code worked there...

My code compiles without erros but when I debug the code Keil does not allow me to place breakpoints inside the function.

I appreciate the help!

Parents
  • These are two different things. The compiler needs all definitions and references to compile the code. If something's missing it will throw an error. The linker then decides if functions or variables are really used or not and removes them if not. So the linker already seems to remove the function that references the function HAL_UARTEx_RxEventCallback().

Reply
  • These are two different things. The compiler needs all definitions and references to compile the code. If something's missing it will throw an error. The linker then decides if functions or variables are really used or not and removes them if not. So the linker already seems to remove the function that references the function HAL_UARTEx_RxEventCallback().

Children