Hi,
For my understanding you created a project for board.
For sure you can use the simulator but during the initialization the program is awaiting board feedback.
This could not occur in simulator.
To avoid that you must comment this line (doing the loop for ever).
Regards
Pascal