A related question is a question created from another question. When the related question is created, it will be automatically linked to the original question.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Unfortunately there is limited details in your post to accurately diagnose the problem. What is your build / dev environment and what change(s) did you do to the sample BLE 1.4.1 application to encounter this problem? However, based on the error, this looks like a simple coding problem when you added the Char 6 to the Simple Profile.
-added the value read from potmeter to char 4 which worked (however instead of giving the maximum value corresponding to the number of bits, it gives corresponding to 2^7, i suppose it is because of the size of char4)
-added the value of the button 1 to char 4 which worked
-added the value read from potmeter to char 4 again
-created char6 to attribute the value from button 1.
The only error that appears in IAR is the one in the picture, related to the new characteristic (and I don't understand why because it is defined as characteristic4 )...the error in the adc I only see with the debug done and while i connect it to a smartphone with a ble app.