How to set up and enable semihost by Jlink for S32K118EVB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set up and enable semihost by Jlink for S32K118EVB

1,374 Views
jacky_coretronic
Contributor I

Dear Sir:

I am a newbie for S32DS

I have some problems with a S32K118 .  I want to enable semihosting with SWD by jlink.

Now, I want to start from hello_world_s32K118 sample code!

How  I dump printf message by semihosting console ?

1 Reply

593 Views
mstroven
Contributor III

When setting this up on S32DS 3.4 using [ newlib Debugger Console ( -specs=rdimon.specs)  ] in project settings -> build -> Settings -> Target processor -> Libraries Support   AND "Enable Semihosting" checkbox = checked in my Debug Configuration -> Startup tab, I get the following error messages in the console window when a printf() is encountered:  [   "WARNING: Semihosting command SYS_FLEN failed. Handle is 0."
"WARNING: Semihosting command SYS_WRITE failed. Handle is 0." ]  Has anyone made this work in version 3.4 with JLink debugging?
"WARNING: Semihosting command SYS_WRITE failed. Handle is 0."  ]

0 Kudos
Reply