Hi @ted_cys
According to your screenshot, machine check exception was triggered after reset and before reaching main function. I would try to uncheck "Run on reset" like this in Debug configurations:

Then the program will stop directly on entry point after loading and you can debug/step also the startup files to see what's wrong.
Regards,
Lukas