This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28M36P63C2: Ethernet hardware configuration

Part Number: F28M36P63C2
Other Parts Discussed in Thread: TLK110, CONTROLSUITE

Hello:

I’m trying to exchange Ethernet data between my host computer and the concerto F28M36x control card which I just got a few days ago.

Is there any special hardware configuration for the control card to allow Ethernet communication?

Regards.

Yahya.

  • Hi Yahya,

    There is no special hardware configuration in the F28M36x Control card to get the Ethernet Working. Are you facing any issue in getting it working?

    Regards
    Sudharsanan
  • Hi Sudharsanan,

    Thank you for your quick reply.

    Yes I’m facing some issues in getting it working. I’m trying to exchange Ethernet data between the control card and my host computer but there is no reply from the control card.
    The control card and the host computer are connected by a straight through cable.

    Do you think this is the problem?

    Regards,
    Yahya.
  • Hi Yahya,

    The control card uses TLK110 PHY which has support for Auto - MDIX crossover, which when enabled will eliminate requirement for external crossover cable. which is the software you are running on F28M36x?

    Just curious, Is this related to another thread you created:

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/p/789786/2921107#2921107

    Regards,

    Sudharsanan

  •  

    Hi Sudharsanan:

               Thanks for your reply. Yes, it is related to the other thread; I’m using Matlab to program the device. There is a supported package library for the device in Matlab/Simulink as you see below. This way of programming is a little different from what I saw in this forum and all examples provided by the controlSUITE. So we can design the program using the library’s blocks, instead of writing manually the code, Matlab will do that by generating two files .out which we load into the hardware and .c which is run on the code composer studio.

              

    I used Matlab to program the PWM blocks of the piccolo f28069 device to control a full bridge and a three-phase inverter. It worked fine.

    I did the same thing with the PWM blocks of the concerto f28m36x which has two cores, the C28x for control and the M3 for communication, and which I started working on it in March for my end studies project. It is new and very different from the piccolo device, the M3 controls all the GPIOs except GPIO192 and GPIO196. So to do that, I first run the setup_m3 project on the M3 core to allow the C28x manipulating all GPIOs. It works fine for an application that doesn’t require communication, but it becomes a little complicate when we need both cores.

    Now I must send real values of measurement (samples of current and voltage) every 200 microseconds, from the C28x core to the M3 core and then from it to the host computer by using Ethernet communication and be able to read them from the computer and draw curves.

    The only idea that I had is interfacing Matlab with the control card to do this. At first, I tried to test the Ethernet communication between the M3 core and the Host computer, so I used the following example https://www.mathworks.com/help/supportpkg/freescalefrdmk64fboard/ug/exchange-ethernet-data-using-udp-blocks.html. This example is for the NXP FRDM-K64F board and shows how to use UDP protocol to exchange data between the M3 core and the host computer. So I made the necessary modifications in the target model so it will be compatible with the concerto control card; I configured the IP address manually, so I can connect the computer and the control card directly by an Ethernet cable. At first, I wasn’t able to ping the device from my computer, so I thought I probably need a crossover cable, why I asked you, but still, the same problem when changing the cable, in that case, the code composer studio was running.

    But yesterday I noticed, a strange thing, that when I loaded the program on the M3 core and terminate the session the computer was able to ping the device and establish a connection with it. So there is an exchanging of UDP packets between the computer and the control card But I still not able to see the data on the display. I think that is not a good way to do this.

    wireshark captures:

    I didn’t find any demo about with the concerto device, nor how to use Ethernet communication with it, so I’m still trying myself to find a way to do that.

    Do you have any idea how to do that and how read these measurements on the computer?

     

    Best regards,

    Yahya.

  • Hi,

    Please try the example provided in the link below:

    in.mathworks.com/.../exchanging-ethernet-data-with-the-f28m3x-concerto-processor.html

    If not successful then please consider contacting MathWorks support.
  • Hi, Venkatesh chilapur.

    thank you very much for helping.

    Best Regards.
    yahya.