S32K144 and SWD printf support

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

S32K144 and SWD printf support

1,367件の閲覧回数
paulkissel
Contributor I

Hello,

Where can I find the driver level source code for semihost printf support in SWD mode for the S32K?  Is it part of the newlib C library or is it a separate module?  I want to examine how the host mode works on the S32K to see how feasible it is to import into an existing project.

Thanks

0 件の賞賛
4 返答(返信)

1,339件の閲覧回数
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @paulkissel ,

To enable the printf with the newlib library select the library with the debbuger console:

Alexis_A_0-1603910181494.png

And in the debugger console enable the semihost option:

Alexis_A_1-1603911411137.png

 

Best Regards,

Alexis Andalon

0 件の賞賛

1,327件の閲覧回数
paulkissel
Contributor I

Hi Alexis,

Thanks for the reply.  My question is where is the source code for this semi host and printf support through newlib?  I have a project which must not use newlib so I wish to gauge the feasibility of porting some of the code over just to support the semi host printf capability of the MCU.  I'm trying to find the internals of how this printf is working via newlib and semi host mode in other words.

0 件の賞賛

1,320件の閲覧回数
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @paulkissel,

Newlib is an open-source library, detailed information and the source code can be found on their webpage.

Best Regards,

Alexis Andalon

0 件の賞賛

1,301件の閲覧回数
paulkissel
Contributor I

Thanks Alexis.  I found some code for semihosting in the rdimon-aem.S, but this is for Cortex A series.  What I'm looking for is semihost code for the M4 on the S32K144.

0 件の賞賛