Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corstone300 simulation does not stop on error #55

Closed
PhilippvK opened this issue Jun 14, 2022 · 1 comment
Closed

Corstone300 simulation does not stop on error #55

PhilippvK opened this issue Jun 14, 2022 · 1 comment

Comments

@PhilippvK
Copy link
Collaborator

The Corstone300 simulator (ARM Cortex-M55 FVP) has a quite annoying exit condition:

  • It waits until EXITTHESIM is printed to the terminal by the target software.

When a program executed successfully, this will be done at the end of the main function, however if execution stops earlier with an call to exit(1) (i.e. from TVMPlatformAbort()) we currently can not catch this.

We need to find a workaround for this. Here are some ideas:

  • Try to overwrite the exit() function in the MLIF lib
  • Figure out if atexit() would work
@PhilippvK
Copy link
Collaborator Author

fixed via 187d7f9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant