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

Which code makes semihosting work when not running under debugger? #10

Closed
egoltzman opened this issue Oct 12, 2015 · 3 comments
Closed
Assignees
Labels

Comments

@egoltzman
Copy link

The FAQ say:

Update: M3/M4 projects generated with version 2.2.1-201404120702 or later check when not running under debugger and skip the trace call, so it is possible to run the application standalone.

But how should it set? I have 2 projects using the trace_printf with semihosting, one is working fine without debugger and the other stuck but I can't find the different, where is this issue being taking care of?

Thanks

@ilg-ul ilg-ul self-assigned this Oct 12, 2015
@ilg-ul
Copy link
Contributor

ilg-ul commented Oct 12, 2015

I guess you are referring to the new HardFault_Handler() in exception_handlers.c.

@ilg-ul ilg-ul changed the title Semihosting check when not running under debugger Which code makes semihosting work when not running under debugger? Oct 12, 2015
@egoltzman
Copy link
Author

That is exactly what I looked for !!! Fast and efficient response - Thanks
Just for the record, the cause for the problem in my case was two definitions of the HardFault_Handler, the second one was stronger then the exception_handlers.c weak one...

@ilg-ul
Copy link
Contributor

ilg-ul commented Oct 12, 2015

BTW, why did your have to define the HardFault_Handler? Do you need to do something more? If so, can you suggest improvements to the existing handler?

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

No branches or pull requests

2 participants