Can't DEBUG with MCAL of S32K311

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

Can't DEBUG with MCAL of S32K311

109 次查看
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 项奖励
1 回复

95 次查看
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 项奖励