How disable semihosting in MCUXpresso?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How disable semihosting in MCUXpresso?

跳至解决方案
4,276 次查看
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 解答
3,293 次查看
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

在原帖中查看解决方案

5 回复数
3,294 次查看
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,293 次查看
knovinger
Contributor III

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

0 项奖励
回复
3,293 次查看
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,293 次查看
knovinger
Contributor III

Thank you for the response.

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

3,292 次查看
matheus_pinto1
Contributor II

Thanks Daniel!

0 项奖励
回复