Dickens began writing David Copperfield F. after giving up work on his own life story.
He saw that an autobiography wasn't the thing he actually wanted to write, which is why he moved on to write David Copperfield, which is even today one of the best novels ever.