Error Codes

micro:bit error codes and what they mean

마이크로비트 오류

Your micro:bit may encounter a situation that prevents it from running your code. When this happens, a frowny face will appear on your micro:bit screen followed by an error number.

이런 상황이 생길 때 마다 여러분들은 다음과 같이 해야합니다.

  • Press the reset button on the back of the device to restart your program.
  • Flash the script to your micro:bit again.

If the problem persists please report the issue to us.

Submit a support ticket

Error Numbers

Here is a list of error numbers and what they mean:

Error number     What this means   
10 The micro:bit's I2C bus is not working. The device might be physically damaged.
20 There is no free memory on the micro:bit. Your program might be too complex or contain a lot of large variables. Try reducing your code by making functions out of large sections.
30 Corruption detected in the micro:bit heap space (memory allocated usually for the storage of variables). Try flashing a different .hex file to your device
40 Your micro:bit can't execute your script properly. Flash a different .hex file to it, then try flashing and running your previous script again.
42 Your micro:bit can't execute your script properly. Flash a different .hex file to it, then try flashing and running your previous script again.
43 An error occurred with the micro:bit's radio component.
50 An error occurred with the micro:bit's accelerometer component.
51 An error occurred with the micro:bit's magnetometer component.
98 Assertion failed. A MakeCode error that occurs when the condition in an assert was false.
Selecting this opens external content from our support system, which adheres to their privacy policy.