6 months, 2 weeks ago.

[Error: Identifier "MBED_ERROR_CODE_BLE_ILLEGAL_STATE" is undefined] reported at mbedOS 5.11.3

Hello, I imported this project on my compiler, After update "mbed-os" to this version a8d1d26fa7, tag:mbed-os-5.11.3, then I tried to compile "mbed-os-example-ble-BatteryLevel" project, there was an error: Error: Identifier "MBED_ERROR_CODE_BLE_ILLEGAL_STATE" is undefined in "extras/mbed-os.lib/features/FEATURE_BLE/source/generic/GenericGap.cpp", Line: 68, Col: 6

How can I get rid of this error?


Thanks for reporting, we will check.

posted by Martin Kojtal 02 Feb 2019
Comment on this question

1 Answer

6 months, 2 weeks ago.

I have the same error, I think its an OS update bug because this Friday my project worked fine.

I hope someone give us a solution.


Hi, we are investigating. If you use mbed-cli (offline building), it should work.

posted by Martin Kojtal 04 Feb 2019

You need to log in to post a question