How disable semihosting in MCUXpresso?

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

How disable semihosting in MCUXpresso?

Jump to solution
4,321 Views
matheus_pinto1
Contributor II

Hello,

I want use OpenSDA like a USB-UART converter to comunicate with PC.

This was a simple task when used PE and KDS.

However trying do this in MCUXpresso with FRDM-KL25Z and KSDK2, a semihosting message had appears in IDE console, and the program debbuger goes to HardFault_Handler.

I want to know how disable semihosting in MCUXpresso to use normally UART0 through OpenSDA.

1 Solution
3,338 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Matheus:

Please uncheck the semihost option when you import the projects

pastedImage_2.png

next uncheck the redirect SDK printf to C library printf. You can redirect printf to UART

pastedImage_3.png

Regards

Daniel

View solution in original post

5 Replies
3,339 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Matheus:

Please uncheck the semihost option when you import the projects

pastedImage_2.png

next uncheck the redirect SDK printf to C library printf. You can redirect printf to UART

pastedImage_3.png

Regards

Daniel

3,338 Views
knovinger
Contributor III

How do you change these settings after the project has been created?

0 Kudos
Reply
3,338 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Kevin,

Please see the image below. 

pastedImage_1.png

Select your project on the Project Explorer > Miscellaneous > Quick Settings > SDK Debug console > UART console 

Regards,

Victor. 

3,338 Views
knovinger
Contributor III

Thank you for the response.

I also found https://community.nxp.com/docs/DOC-334074 

3,337 Views
matheus_pinto1
Contributor II

Thanks Daniel!

0 Kudos
Reply