JN518x: how to confirm SW_DIS flash setting.

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

JN518x: how to confirm SW_DIS flash setting.

Jump to solution
1,578 Views
usaygo
Contributor III

Hello,

I'm now trying to connect debugger to our own designed module. Unfortunately it has an error "Error: Wire Ack Fault - target connected?". I wired PIO12/13(SWDCLK/DIO), PIO5(ISP-EN), RESETN pins to DK6 board (removing NXP's module).

By seeing UM11138, says SWD_DIS setting will affect for SWD interface. But I could not find information about setting/confirming SWD_DIS settings. So I should check this bit at first.

My question is:

  • How to confirm or set the SWD_DIS/JTAG_DIS options? (which tool? how to do it?)
  • Any suggestion to check if SWD debugging has connect error.

 

Thanks in advance!

 

From UM11138:

7.3.1 Boot modes
The boot mode can be selected and is influenced with different settings and inputs, from external pins and values stored in the flash:
• Flash settings
– N-2 page: SWD_DIS: 0 for SW to enable SWD, 1 for SW to disable SWD; JTAG_DIS: 0 for SW to enable JTAG, 1 for SW to disable JTAG
– pFlash_HardwareTestModeEnable enable; ISP access level
• DIO4 and DIO5, allow start-up mode to be specified – DIO4=0, DIO5=0: Hardware test mode
– DIO4=1, DIO5=0: ISP
– DIO4=x, DIO5=1: Normal boot
There is further information on the SYSCON_CODESECURITYPROT write-once register, used to enable or disable JTAG and SWD, in Chapter 10 “System Configuration (SYSCON)”.

 

0 Kudos
Reply
1 Solution
1,524 Views
usaygo
Contributor III

Hello, 

I did  a mistake about wiring and success in connecting debugger via DK6 or MCU-Link board

(However, I still have no information about SW_DIS setting. Or should forget about this setting information?)

Thanks!

View solution in original post

0 Kudos
Reply
1 Reply
1,525 Views
usaygo
Contributor III

Hello, 

I did  a mistake about wiring and success in connecting debugger via DK6 or MCU-Link board

(However, I still have no information about SW_DIS setting. Or should forget about this setting information?)

Thanks!

0 Kudos
Reply