At my first defense: A Roman trial had two parts, a preliminary investigation and the main trial. Paul was probably talking about the first part. It might also refer to his first time in prison at Rome (Acts 28; see 2 Timothy Book Introduction, “Date of Writing”).
everyone deserted me: See study note on 2 Timothy 4:10.