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.
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.
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.
Sir,
I erased the changes I had made and now it is as default. But now also it is showing some errors.
Have you tried to do a full chip erase? That can be done for instance using nRF Connect Programmer or nrfjprog with "nrfjprog -e".
Yes, full chip erase is done in Keil uVision itself.
OK. Kan you try programming from nRF Connect Programmer or nrfjprog and see if that works?
I am using a custom MDBT50Q board and flashing using ST-Link. Is nRF Connect Programmer or nrfjprog works with that??
Aha, that was a very important piece of information. Everything we have discussed so far assumes that you use a J-Link programmer of some sort. I do not have any experience with ST-Link nor is it explicitly supported by Nordic, but it should be possible to use it.
I assume you have configured the Keil project properly for using the ST-Link debugger? If you still cannot get it to work then I recommend searching this forum for threads about using ST-Link with the nRF52840.The best would probably be to obtain a J-Link (for instance in the form of a nRF52840 DK), as all nRF tools are based on it.
Aha, that was a very important piece of information. Everything we have discussed so far assumes that you use a J-Link programmer of some sort. I do not have any experience with ST-Link nor is it explicitly supported by Nordic, but it should be possible to use it.
I assume you have configured the Keil project properly for using the ST-Link debugger? If you still cannot get it to work then I recommend searching this forum for threads about using ST-Link with the nRF52840.The best would probably be to obtain a J-Link (for instance in the form of a nRF52840 DK), as all nRF tools are based on it.
Thank you sir,
But I need the ST-Link to flash. Can you please any other who know about the ST-link debugging.
I recommend you search the DevZone and look at the threads that discuss it. If you are still stuck then I suggest you create a new question where you explicitly ask about the problems you are having with programming using an ST Link, as this is quite off topic compared to your original question in this thread.