This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

The Keil shows an error when #include "nrf_delay.h"

Hi, The Keil MDK shows an error when I open a example project from nrfSDK. but there is no error when compile.

Could someone please clarify. Thank you .

main.c.png

delay_c.png

delay_h.png

Parents
  • Hi,

    I have the same thing at my computer.

    It seems that this is an issue with the code-completion feature in Keil. The code-completion option does some parsing of the file and it's included headers, and seem to miss this declaration somehow.

    As you point out, there's no compiler-error, so it's safe to ignore.

    Best regards Håkon

  • That is true. However, a professor of user interface design theory would be screaming about this kind of thing. :-) A modern IDE should be presenting the developer with a easier workload and an accurate representation of the current state of the code.

    In some ways this reminds me of not fixing compile warnings. Sure, your code may work, but there may be a real problem hiding in that stream of warnings. If you can't trust your IDE to accurately display if a problem is real or not, potentially you'll miss actual problems in your code that the compiler is trying to warn you about.

Reply
  • That is true. However, a professor of user interface design theory would be screaming about this kind of thing. :-) A modern IDE should be presenting the developer with a easier workload and an accurate representation of the current state of the code.

    In some ways this reminds me of not fixing compile warnings. Sure, your code may work, but there may be a real problem hiding in that stream of warnings. If you can't trust your IDE to accurately display if a problem is real or not, potentially you'll miss actual problems in your code that the compiler is trying to warn you about.

Children
No Data
Related