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
  • Take a look at the disassembly. Is the function being inlined? Looking at your source, the function seems to be just a memcpy() call, then a call to another function, which could be optimized away to save the extra branches.

    Try lowering optimization level whilst debugging.

Reply
  • Take a look at the disassembly. Is the function being inlined? Looking at your source, the function seems to be just a memcpy() call, then a call to another function, which could be optimized away to save the extra branches.

    Try lowering optimization level whilst debugging.

Children