Showing results for 
Show  only  | Search instead for 
Did you mean: 

EF 50mm f/1.8 STM Lens Generates "No Lens Attached" Error on EOS 77D



  I am using a Canon 77D. Yesterday, I bought a Canon 50 mm f/1.8 STM. But when I try to change the aperture it is giving me the message "cannot adjust aperture, No lens attached."  I  have no idea why this is happening. I have a canon EFS 55-250 mm lens, with which I can change the aperture and everything works fine. Please help. Thank you.


From personal experience, the mount can be a tiny bit tight when that lens is new. Are you sure it's all the way locked into place? Check out this KnowledgeBase Article for instructions: 

View solution in original post



My 80D is my only camera with the lens retract feature. I also own the EF-S 24mm f/2.8 STM, EF 40mm f/2.8 STM, and EF 50mm f/1.8 STM. None of them cause an error if I remove the lens while the camera is on. 

Try using your 5D Mk IV with another STM lens, or try your EF 50mm f/1.8 STM on another camera with the lens retract feature. The error message should not happen just because you remove the lens with the power on. 

Can you show us a screenshot of the error message?


Mike Sowsun

I doesn't always happen. But it happens every once in awhile. But after updating the camera's firmware I haven't seen it. But when it does happen it's says "Lens communication error". 


Current Gear: EOS 5D Mark IV, EF Trinity, EF 50mm F/1.8 STM, EF 85mm F/1.8 USM, 470EX-AI & 600EX II-RT

Retired Gear: EOS 40D & Sigma 17-50mm F/2.8 EX DC OS HSM
08/18/2023: Canon EOS R5 C training series is released.

07/31/2023: New firmware updates are available.

CR-N700 - Version 1.2.0

CR-N500 - Version 1.3.0

CR-N300 - Version 1.3.0

CR-X300 - Version 1.1.0

06/30/2023: New firmware version is available for EOS-R5 C

05/31/2023: New firmware updates are available.

EOS R6 Mark II - Version 1.1.2

EOS R6 - Version 1.8.2

EOS R7 - Version 1.3.1

05/18/2023: New firmware updates are available.

EOS Rebel T100 - Version 1.1.0

EOS Rebel T7 - Version 1.2.0

EOS 5D Mark IV - Version 1.4.0

EOS 6D Mark II - Version 1.2.0

PowerShot Elph 360HS - Version

PowerShot SX420 IS - Version

PowerShot 620 HS - Version

PowerShot SX720 HS - Version

PowerShot G1X Mark III - Version

PowerShot G7X Mark II - Version

PowerShot G9X Mark II - Version


04/20/2023: New firmware version 1.4.1 is available for EOS R3

03/30/2023: New firmware updates are available.

EOS R5 - Version 1.8.1

EOS 1DX Mark III- Version 1.7.1

Speedlite EL-1 - Version 1.0.2

03/30/2023: Product Advisory for EF50 F1.2 L USM

03/30/2023: Product Advisory for EOS R10

02/24/2023: We've updated Share Your Photos

2/07/2023: New product announcements!

EOS R8 EOS R50RF-S55-210mm F5-7.1 IS STMRF24-50mm F4.5-6.3 IS STMRF15-30mm F4.5-6.3 IS STM
01/09/2023: Help ensure your autofocus is properly aligned with a Canon Precision Alignment
01/03/2023: Welcome to CES 2023!
12/08/2022: New firmware version is available for EOS C70
12/07/2022: New firmware version 1.7.0 is available for EOS R5