Can't DEBUG with MCAL of S32K311

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

Can't DEBUG with MCAL of S32K311

108 Views
YAN3
Contributor I

Hi,

    I have encountered some problems with S32K311, as follows, I can connect and download programs without MCAL through SWD, but when using MCAL, only connect on the first time, after power off can not connect again,please help me.

0 Kudos
1 Reply

94 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

If you refer to the S32K3 PORT Driver User Manual(RTD_PORT_UM.pdf), you will find an important note:
In order to be able to use the debug capabilities, the JTAG and Reset pins need to be configured in the Port driver using mechanism B. This means that the following pins/functionalities need to be added in the UnTouchedPortPin list:
– Reset_b having PortPin Mscr set to 5 and SIUL2 Instance set to SIUL2_0
– JTAG_TMS having PortPin Mscr set to 4 and SIUL2 Instance set to SIUL2_0
– JTAG_TDO having PortPin Mscr set to 10 and SIUL2 Instance set to SIUL2_0
– JTAG_TCK having PortPin Mscr set to 68 and SIUL2 Instance set to SIUL2_0
– JTAG_TDI having PortPin Mscr set to 69 and SIUL2 Instance set to SIUL2_0
 
 
Did you add the UnTouchedPortPin configuration mentioned in RTD_PORT_UM.pdf under PortConfigSet?
UnTouchedPortPin RTD_PORT_UM.pngPortConfigSet.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos