Follow the next steps to generate backup codes:
1. Login to origin.com
2.
After you logged in, select EA Account and Billing as the photo shows.
3.
Click to Security on the left menu, and choose "View" at the backup codes.