Enable Semihosting in ARM DS 2024, ARM Compiler

Hi

I want to enable semihosting on ARM DS 2024 so I can create an output file. 
Can you tell me how to do that?

I am using Arm Compiler for Embeded 6 toolchain and Gnu Make Builder.

Warm regards


Parents
  • Hi again

    Apologies for the delay in responding.  Are you still having problems with this?

    I've re-tested the code above and it works for me.  Here's what I did (on my Windows laptop):

    1) Launch Arm DS
    2) Import the startup_Cortex-M7_AC6 example
    3) Replace its main() with the main() I gave above
    4) Compile the project
    5) Create a folder C:\Temp\semihosting
    6) Modify startup_Cortex-M7_AC6-MPS2.launch to use a known-good Cortex-M7 board via DSTREAM
    7) Connect/Debug
    8) Enter "set semihosting policy allow"
    9) Run

    "fopen success" is printed in the App Console, and "Hello World!" is written to out.txt.

    Can you try repeating the above with your own board?

    Stephen

Reply
  • Hi again

    Apologies for the delay in responding.  Are you still having problems with this?

    I've re-tested the code above and it works for me.  Here's what I did (on my Windows laptop):

    1) Launch Arm DS
    2) Import the startup_Cortex-M7_AC6 example
    3) Replace its main() with the main() I gave above
    4) Compile the project
    5) Create a folder C:\Temp\semihosting
    6) Modify startup_Cortex-M7_AC6-MPS2.launch to use a known-good Cortex-M7 board via DSTREAM
    7) Connect/Debug
    8) Enter "set semihosting policy allow"
    9) Run

    "fopen success" is printed in the App Console, and "Hello World!" is written to out.txt.

    Can you try repeating the above with your own board?

    Stephen

Children