If your vehicle has a bad battery, it can cause electrical problems within your vehicle.
This can impact your computer and lead to your Check Engine light flashing across the dashboard.