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

SDK 17.0.2 can't be built ,

it show Error[Pe661]: expected an integer constant  ...\components\ble\peer_manager\security_manager.c 444 

how to fill it?

Parents
  • Hello,

    I guess this is because of one of three possible reasons:

    1. You have added that file yourself, without adding it to the path in the compiler/IDE. If that is the case, please add the path to the .h file to your project's include path. If you are not sure how to do this, please let me know what compiler/IDE you are using.

    2. You have moved (copied) the folder that contains the project file. It is important that if you copy and paste a project, because you want to keep the original, that you paste it back so that it has the same number of folders up to the SDK's root folder. Whenever I want to edit a project, while I want to keep the original project, I copy them into a folder that I call "test" which is located in the "examples" folder. This way, the project files is the same number of files down from the SDK.

    3. The path to the file is too long. Try extracting the SDK closer to the hard drive. E.g. the path for my SDK is: C:\Nordicsemi\SDKs\17.0.2\examples... Windows can't handle paths that are about 250 characters long. Since there is a lot of long names, please make sure that the SDK is extracted close to your hard drive (path wise).

    Best regards,

    Edvin

  • I add all the include files,the include file is  ok, i use IAR,and opened :\SDK17.0.2\examples\multiprotocol\ble_ant_app_hrm,

    this error happen in" security_manager.c" file,

Reply Children
Related