-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
powering the board is an issue #12
Comments
hi This is now VTref=3.140V The jlink is green and the board toggling between red and blue. I tried both SWD and JTAG the messages are show below. Can any one pls help? minasm@lambda-quad:~/suvasis/tools/BMS_MXP/bms/drones/nuttx$ JLinkExe Connecting to J-Link via USB...O.K. Type "connect" to establish a target connection, '?' for help Connecting to target via SWD Connecting to J-Link via USB...O.K. Type "connect" to establish a target connection, '?' for help Connecting to target via JTAG |
It's suggesting that the chip is being held on reset
I think the JLINK reset command is r0
Then r1 (or vice versa)
Additionally try
Change the connect speed to 1000
(Would also help to check the wiring and the actual level on the reset from the JLINK.)
On Apr 8, 2023 1:58 PM, suvasis ***@***.***> wrote:
Caution: EXT Email
hi
I made some progress. Still I am getting Connecting to target via SWD. In the earlier post the VTref=0.000V
This is now VTref=3.140V
The jlink is green and the board toggling between red and blue.
I tried both SWD and JTAG the messages are show below.
Can any one pls help?
***@***.***:~/suvasis/tools/BMS_MXP/bms/drones/nuttx$ JLinkExe
SEGGER J-Link Commander V7.86f (Compiled Mar 29 2023 16:34:29)
DLL version V7.86f, compiled Mar 29 2023 16:34:11
Connecting to J-Link via USB...O.K.
Firmware: J-Link EDU Mini V1 compiled Mar 28 2023 17:01:59
Hardware version: V1.00
J-Link uptime (since boot): 0d 00h 36m 34s
S/N: 801041624
License(s): FlashBP, GDB
USB speed mode: Full speed (12 MBit/s)
VTref=3.140V
Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify device / core. : S32K144
Type '?' for selection dialog
Device>
Please specify target interface:
J) JTAG (Default)
S) SWD
T) cJTAG
TIF>s
Specify target interface speed [kHz]. : 4000 kHz
Speed>4000
Device "S32K144" selected.
Connecting to target via SWD
InitTarget() start
SWD selected. Executing JTAG -> SWD switching sequence.
Connect Under Reset
SWD selected. Executing JTAG -> SWD switching sequence.
Communication error while accessing MDM-AP.
Connect Under Reset
InitTarget() end - Took 407ms
Connect failed. Resetting via Reset pin and trying again.
InitTarget() start
SWD selected. Executing JTAG -> SWD switching sequence.
Connect Under Reset
SWD selected. Executing JTAG -> SWD switching sequence.
Communication error while accessing MDM-AP.
Connect Under Reset
InitTarget() end - Took 406ms
Cannot connect to target.
J-Link>j
Unknown command. '?' for help.
J-Link>exit
***@***.***:~/suvasis/tools/BMS_MXP/bms/drones/nuttx$ JLinkExe
SEGGER J-Link Commander V7.86f (Compiled Mar 29 2023 16:34:29)
DLL version V7.86f, compiled Mar 29 2023 16:34:11
Connecting to J-Link via USB...O.K.
Firmware: J-Link EDU Mini V1 compiled Mar 28 2023 17:01:59
Hardware version: V1.00
J-Link uptime (since boot): 0d 00h 36m 58s
S/N: 801041624
License(s): FlashBP, GDB
USB speed mode: Full speed (12 MBit/s)
VTref=3.139V
Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify device / core. : S32K144
Type '?' for selection dialog
Device>
Please specify target interface:
J) JTAG (Default)
S) SWD
T) cJTAG
TIF>j
Device position in JTAG chain (IRPre,DRPre) : -1,-1 => Auto-detect
JTAGConf>
Specify target interface speed [kHz]. : 4000 kHz
Speed>
Device "S32K144" selected.
Connecting to target via JTAG
InitTarget() start
JTAG selected. Identifying JTAG Chain...
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Error: Scanning JTAG chain failed.
Connect Under Reset
JTAG selected. Identifying JTAG Chain...
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Error: Scanning JTAG chain failed.
Connect Under Reset
InitTarget() end - Took 205ms
Connect failed. Resetting via Reset pin and trying again.
InitTarget() start
JTAG selected. Identifying JTAG Chain...
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Error: Scanning JTAG chain failed.
Connect Under Reset
JTAG selected. Identifying JTAG Chain...
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Error: Scanning JTAG chain failed.
Connect Under Reset
InitTarget() end - Took 205ms
Cannot connect to target.
J-Link>exit
***@***.***:~/suvasis/tools/BMS_MXP/bms/drones/nuttx$
—
Reply to this email directly, view it on GitHub<#12 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACQFV7R3F3W4BEWXLK5BYXLXAGYLPANCNFSM6AAAAAAWULDBIA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
There is a black cover on j6, should i remove it |
is the board been powered at all? Means is there a battery/voltage source connected to POWER_IN ? That's absolutely needed to program the board. |
hi,
I connected the bms board to the jlink, but the bms needs to be powered on, how do I power onthe bms just for debugging using jlink?
I just connect the jlink to bms and see the following:
minasm@lambda-quad:~/suvasis/tools/BMS_MXP/bms/drones/nuttx$ JLinkExe
SEGGER J-Link Commander V7.86f (Compiled Mar 29 2023 16:34:29)
DLL version V7.86f, compiled Mar 29 2023 16:34:11
Connecting to J-Link via USB...JLinkGUIServerExe: cannot connect to X server
Updating firmware: J-Link EDU Mini V1 compiled Mar 28 2023 17:01:59
Replacing firmware: J-Link EDU Mini V1 compiled Aug 10 2021 11:19:22
Waiting for new firmware to boot
New firmware booted successfully
O.K.
Firmware: J-Link EDU Mini V1 compiled Mar 28 2023 17:01:59
Hardware version: V1.00
J-Link uptime (since boot): 0d 00h 00m 00s
S/N: 801041624
License(s): FlashBP, GDB
USB speed mode: Full speed (12 MBit/s)
VTref=0.000V
Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify device / core. : Unspecified
Type '?' for selection dialog
Device>S32K144
Please specify target interface:
J) JTAG (Default)
S) SWD
T) cJTAG
TIF>s
Specify target interface speed [kHz]. : 4000 kHz
Speed>1000
Device "S32K144" selected.
Connecting to target via SWD
Target voltage too low. Please check https://wiki.segger.com/J-Link_cannot_connect_to_the_CPU#Target_connection.
Cannot connect to target.
J-Link>exit
https://www.nxp.com/document/guide/getting-started-with-the-rddrone-bms772-reference-design:GS-RDDRONE-BMS772
In the images below shows the connectors came with the bms evaluation board,
Where should I connect the above connectors in the bms evaluation board below:
Thanks.
suvasis
The text was updated successfully, but these errors were encountered: