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
3,651 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
2,668 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
2,669 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

2,668 Views
knovinger
Contributor III

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

0 Kudos
2,668 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. 

2,668 Views
knovinger
Contributor III

Thank you for the response.

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

2,667 Views
matheus_pinto1
Contributor II

Thanks Daniel!

0 Kudos