Kneron

Troubleshooting & Error Codes

A comprehensive reference for resolving common toolchain and runtime errors.

Error Code Table

CodeMeaningResolution
1002Device Not FoundCheck USB connection. Ensure user has dialout/usb group permissions.
2005Model Load FailedFile path is incorrect or the `.nef` file is corrupted. Re-compile.
3001Unsupported OperatorThe ONNX model contains an op not in the support list. Use kneron optimize or implement a custom op.
4004Memory OverflowThe model is too large for the NPU SRAM. Reduce input size or use model splitting.

Common Scenarios

This is often a power supply issue.

  • Ensure you are using a USB 3.0 port (Blue).
  • If using a hub, ensure it is powered.
  • Try a shorter, high-quality USB-C cable.

Check your pre-processing pipeline.

  • Normalization: Did you divide by 255? Did you subtract mean?
  • Color Space: Is the model trained on RGB or BGR? OpenCV loads BGR by default.
  • Layout: NCHW vs NHWC.