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

What we do if there is no soft device for some example program?

Sir,

In some examples I found some of the example programs does not contains Soft Device. What to do???

And when I Flashed the main file alone it shows some errors.

Parents
  • Hi,

    The example you refer to, like most other hardware peripheral examples, does not include a SoftDevice because it doesn't need it nor use it. You can see that it is in a folder named "blank" which is used to indicate that it does not use a SoftDevice. Projects that need a SoftDevice on the other hand are in folder with the SoftDevice name (such as "s132").

    If you read the error message produced by Keil you will see that there are build errors, so no output file is generated. Therefore, programming fails with "cannot open file", which is natural since no binary was generated due to the build error. The serial_uartes example project shipped with SDK 15.2 compiles without any errors, so I assume you have made some changes? You can see form the error message that the problem is that the linker cannot find the listed functions, so they are not compiled for some reason.

Reply
  • Hi,

    The example you refer to, like most other hardware peripheral examples, does not include a SoftDevice because it doesn't need it nor use it. You can see that it is in a folder named "blank" which is used to indicate that it does not use a SoftDevice. Projects that need a SoftDevice on the other hand are in folder with the SoftDevice name (such as "s132").

    If you read the error message produced by Keil you will see that there are build errors, so no output file is generated. Therefore, programming fails with "cannot open file", which is natural since no binary was generated due to the build error. The serial_uartes example project shipped with SDK 15.2 compiles without any errors, so I assume you have made some changes? You can see form the error message that the problem is that the linker cannot find the listed functions, so they are not compiled for some reason.

Children
Related