XMC 4500 Relax Lite CAN Communication

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

cross mob
lock attach
Attachments are accessible only for community members.
Not applicable
Hello,

I have just begun using this kit and the DAVE software so my knowledge thus far is limited. I have opened and tried to load the CAN examples available for the XMC 4500 board but I do not seem to be making any progress.

My first question is, do I need to purchase a segger J link to program this board, or can I just use a micro USB cable?

Secondly, when I load the examples (that is assuming I can program with the USB cable plugged into the debug side), I do not receive any messages through my transceiver (I am trying to use pins P1.12 and P1.13), and my LED (pin P2.1) does not flash.

Thanks in advance,

Adam A
0 Likes
6 Replies
Not applicable
Hi Adam,

On the Relax kit, there is a on-board debugger connected.
There are two micro USB connector on the Relax kit, and the one connected to the on-board debugger has a 'X100 debug' wording beside the connector.
Connect the micro USB cable to that connector and we can download your project to the XMC4500 device.

For your CAN question, did you connect the pin to the CAN transceiver?
No output will be seen if the pin is not connected to the transceiver.
0 Likes
Not applicable
Hi Adam,

I run a test on your code and is working well.
I download the code to relax kit and connect the pin P1.2 and P1.3 to the CAN transceiver.
When I run the code, I can see the output.
Can you show me how your hardware connection?
0 Likes
lock attach
Attachments are accessible only for community members.
Not applicable
Jackson,

First off thank you for your response.

I have pins 1.12 (CAN1 TX) and 1.13 (CAN1 RX) connected to a MCP2551 Transceiver. The connections are as follows:

Pin 1.12 ------------TXD RS-----------------GND
GND------------------VSS CANH------------PCANH
+5V------------------VDD CANL------------PCANL
Pin 1.13------------RXD VREF------------(Not connected)

I have attached my transceiver datasheet as well as a picture of my setup.

The 5v is from an external power supply, there is a 120 ohm resistor between the PCANH and PCANL.

The fact that I have a Relax Lite kit does not matter does it?
Thanks again,

Adam
0 Likes
Not applicable
Hi Adam,

It seems fine to me..
Can you check if there is any signal coming out from the pin P1.12?
0 Likes
Not applicable
Is it possible I have chosen the wrong MCU when starting my project?
0 Likes
lock attach
Attachments are accessible only for community members.
Not applicable
Jackson,

Can you possibly try this version of the program to see if you can get and LED (Pin 0.0)to blink.

The example is basically the CAN001 example.

My MCU selection is as follows: XMC4500-F100x1024 Stepping Code AB

The chip on my relax lite board is as follows: XMC4500 F100k1024 AB.

When i debug I select Infineon XMC4500 Relax Kit as my target, J-Link over USB as my connection I and leave all other settings the same.

Thanks again for your time.

Adam
0 Likes