Very low mass stars and white dwarfs in NGC 6397