If your camera displays an error message on the Control Panel LCD of 'F- -' flashing as shown below, this can indicate one of two possible issues.
No lens is attached. In this case attach a compatible lens or if a CPU lens is attached, remove and reattach the lens.
A non-CPU lens is attached. In this case select mode A or M on the camera.