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 .
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 .
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.
The solution for this is to edit the Keil UVCC.ini file as described here. This will allow the compiler to ignore the "error" and you won't get the annoying red X next to the headers.