when I try to take a picture using my Pi Camera this error message is returned:

raspistill -o image.jpg

mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates

How can I solve this problem? And why is this error returned?

The camera is already enabled and memory is already split by 128 in config.txt

  • nobody can you help me Please?
    – skatedan
    Feb 22, 2016 at 9:33
  • I'm not sure, but you may need to 'sudo' that command...
    – BobT
    May 21, 2016 at 20:36
  • 2
    Have you checked the ribbon connectors on the camera and the pi? If they are out of alignment or pulling loose the system should failsafe like this. @BobT sudo is not required for that command. Mar 9, 2017 at 22:37

1 Answer 1


The camera may be running out of GPU memory.

Check config.txt in the /boot/ folder. The gpu_mem option should be at least 128. Alternatively, use the Memory Split option in the Advanced section of raspi-config to set this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.