Forum Replies Created
-
AuthorPosts
-
asti
ParticipantSo after spending some time on and off on this, and eliminating all possible sources of calling initialise_monitor_handles and the like, I finally tracked down the problem to crt0.S in the toolchain.
Looks like the version that was shipped has a bkpt 0xab instruction baked in. So no matter what I did, it would always trigger semi-hosting. I replaced lib\thumb\cortex_m0\crt0.o with a version from a newer arm-eabi-gcc, and the problem has now gone away.
Thank you for your guidance and clues.
-
This reply was modified 5 years, 11 months ago by
asti.
asti
ParticipantThank you for your support.
Expected behavior:
Application runs without debugger.
Current behavior:
No build errors or warning.
Application crashes without debugger attached.
Specifically, application crashes without semi-hosting console support enabled.
What’s happening, I think, is that newlib being used here still links with semi-hosting calls.
I think, irrespective of me specifying nosys, it’s using rdimon. (Please see attached)
libc is supposed to use RTT.
Could I have missed something?
Attachments:
You must be logged in to view attached files.asti
ParticipantHello,
Thank you for the suggestion.
I had already tried ‘–specs=nosys.specs’ in vcxproj link options.
I had also converted this to a standalone project and specified nosys in LDFLAGS. (picture attached)
Both require semihosting. Still no luck, I’m afraid. NRF51 sdk only links properly on GCC 4.9, so I can’t upgrade to get the newer options.
Is there anything else I could try?
Attachments:
You must be logged in to view attached files.asti
ParticipantThank you!
-
This reply was modified 5 years, 11 months ago by
-
AuthorPosts