LPC824 return to SWDIO function

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

LPC824 return to SWDIO function

1,210 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tsaluzzo on Tue Apr 05 14:16:32 MST 2016
We're using an NXP LPC824M201JHI33 in our design. We're using all of the I/O pins including the ones used for Serial Wire Debug (SWD). Our application code sets the SWDIO/PIO0_2/TMS pin to general purpose output, and the SWCLK/PIO0_3/TCK  pin to SPI0_SCK output; the PIO0_12/ISP Entry pin is used as a general purpose input.

Our problem: After we change the SWDIO/PIO0_2/TMS pin to a general purpose output, it doesn't seem to return to SWDIO if we enter the In System Programming (ISP) mode by resetting the part with PIO0_12/ISP Entry held low. We don't see this problem if we just set SWCLK/PIO0_3/TCK to SPI0_SCK and leave the SWDIO/PIO0_2/TMS in its default state.

Everything I found in the data sheet and user's manual says both pins should return to their SWD functions whenever the part is reset with ISP Entry held low. I didn't find any errata for either the SWD pins or the ISP mode.
标签 (1)
0 项奖励
回复
3 回复数

1,074 次查看
lpcware
NXP Employee
NXP Employee
bump
0 项奖励
回复

1,074 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vtw.433e on Wed Apr 06 01:10:04 MST 2016
Booting into ISP mode stops your code from running. If your code is not running and the SWDIO pin is not working, this implies that there is something wrong externally - perhaps your circuit?

If you can access ISP UART, have you tried erasing the flash and seeing if the chip works as expected.
0 项奖励
回复

1,074 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tsaluzzo on Tue Apr 05 15:31:56 MST 2016
I have a little more information. We can reprogram the part using the ISP UART. This says it is going into ISP mode, but for some reason this doesn't re-enable the SWDIO pin.
0 项奖励
回复