Skip to content
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

Open
suvasis opened this issue Apr 5, 2023 · 4 comments
Open

powering the board is an issue #12

suvasis opened this issue Apr 5, 2023 · 4 comments

Comments

@suvasis
Copy link

suvasis commented Apr 5, 2023

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,
72F11E89-EED9-46DF-8E59-89869889B8D6

Where should I connect the above connectors in the bms evaluation board below:

55D0BF33-715F-4353-A8B6-26336416DA93
AA3D9DB5-8095-4CED-AE8F-C4F65422602F

Thanks.
suvasis

@suvasis
Copy link
Author

suvasis commented Apr 8, 2023

hi
I made some progress. Still I am getting "cannot Connect 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?

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...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
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...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
minasm@lambda-quad:~/suvasis/tools/BMS_MXP/bms/drones/nuttx$

@igalloway
Copy link
Member

igalloway commented Apr 8, 2023 via email

@suvasis
Copy link
Author

suvasis commented Apr 8, 2023

There is a black cover on j6, should i remove it

@dk7xe
Copy link

dk7xe commented May 11, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants