j-link xmc1100-0008 cannot read hardware status

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User18178
Level 1
Level 1
Hi,
I'm having trouble to connect to my XMC1100-0008 over SWD.

My Setup:
- XMC1100-0008
- XMC Link-V1.1

First, I plug in the XMC Link into my Computer.
Then I connected GND, SWIO and SWCLK with the 8-pin header on the XMC Link (GND=Pin4, SWCLK=Pin1 and SWIO = Pin2).
Afterwards I start J-Link an select the following:

Device: XMC1100-0008
TIF: SWD
Speed: 4000 kHz

After confirming, I'm getting the following error:


Device "XMC1100-0008" selected.


Connecting to target via SWD
Trying to identify target via SPD
Could not identify target via SPD. Trying again via SWD.

****** Error: Communication timed out: Requested 20 bytes, received 0 bytes !
Could not read hardware status!
Cannot connect to target.


Can somebody help me?

EDIT: I also tried to power the XMC over XMC-Link and over the external power supply on my board
0 Likes
4 Replies
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Did you change the default BMI=ASC_BSL to SWD?
Take care that the correct SWD is selected, which depends on the pins you use.

Regards,
Jesus
0 Likes
User18178
Level 1
Level 1
Hey,
thank you for your quick reply!
Where do I have to change this setting? I didn't see something like that in J-Link Commander. Maybe this sounds weird, but do I have to do something with the chip before flashing the program?
Another obstacle is that I only have the following pins on my pin header: SWCLK (P 0.14), SWIO (P 0.15), GND and VCC.
Do I need more pins to change the BMI?

Thank you again for your help!

Regards,
Nick
0 Likes
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Those pins should be enough.
In JLink commander you can use the commands getbmi/setbmi to change the BMI.
Also inside DAVE4 there is a tool for changing the BMI: once you create a project for your XMC1 family device, in the toolbar will appear a button to launch the BMI Get Set tool.

In your case you should change to SWD0 if you are using SWCLK(P0.15) and SWDIO(P0.14)

Regards,
Jesus
0 Likes
User18178
Level 1
Level 1
Hello Jesus,

thank you very much you gave me the successful hint. Thanks to getbmi and setbmi in J-Link commander I could see and set the BMI. I set the value to 2(User Mode Debug SWD0). Now I can finally connect to the chip an see the values.

Thank you again for you support. You did a really good job!

Regards,
Nick
0 Likes