LPC824 return to SWDIO function

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

LPC824 return to SWDIO function

1,212件の閲覧回数
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,076件の閲覧回数
lpcware
NXP Employee
NXP Employee
bump
0 件の賞賛
返信

1,076件の閲覧回数
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,076件の閲覧回数
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 件の賞賛
返信