asti

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Build without ARM semihosting #26406
    asti
    Participant

    So 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 4 years, 4 months ago by asti.
    in reply to: Build without ARM semihosting #25964
    asti
    Participant

    Thank 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.
    in reply to: Build without ARM semihosting #25953
    asti
    Participant

    Hello,

    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.
    in reply to: Support for ATMEGA328PB #13182
    asti
    Participant

    Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)