How disable semihosting in MCUXpresso?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How disable semihosting in MCUXpresso?

ソリューションへジャンプ
4,336件の閲覧回数
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,353件の閲覧回数
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,354件の閲覧回数
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,353件の閲覧回数
knovinger
Contributor III

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

0 件の賞賛
返信
3,353件の閲覧回数
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,353件の閲覧回数
knovinger
Contributor III

Thank you for the response.

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

3,352件の閲覧回数
matheus_pinto1
Contributor II

Thanks Daniel!

0 件の賞賛
返信