After experimenting with settings in the Model Configuration Parameters, such as the Solver options, clicking Deploy to hardware can produce errors. To reset the Model Configuration Parameters and get rid of the errors:
In the model, select Tools > Run on Target Hardware > Options or Tools > Run on Target Hardware > Prepare to Run.
Set Target hardware to None
and
click Apply.
Set Target hardware to Raspberry
Pi
and click Apply again.