This thread has been locked.

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.

Error[Pe146] What is wrong?

  • Hello,

    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.

    Best wishes
  • Hello! The changes I did are:

    -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.
  • I am using the CC2540DK.

    Thanks for your time

  • Which change resulted in the problem? Try googling the error to see if the suggestions match your code change(s).

    Best wishes
  • 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.