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.

DP83849IFVS-EVK: DP83849IFVS-EVK media conversion not working

Part Number: DP83849IFVS-EVK
Other Parts Discussed in Thread: DP83849IF, USB-2-MDIO, MSP430F5529, MSP-EXP430FR2355, UNIFLASH

Hello,

I would like to re-open the previous thread which is about the DP83849IFVS-EVK communication not working as expected..

https://e2e.ti.com/support/interface-group/interface/f/interface-forum/1269692/dp83849ifvs-evk-communication-not-establishing

issue: Media conversion is not happening from ETH to FX also FX to ETH not working either.. 

I've tried all possible ways which i known, I hope i could resolve that issue as soon as possible..

Best regards,

Tex

  • Hi Tex,

    Like Hillman said in the thread you linked, this is an older part so our support is limited, however I believe we can get this resolved. 

    The DP83849IF is a dual port PHY which two MAC Interfaces (A&B) and two Ports (A&B). Essentially it is two PHYs put together. The 849IF can be configured to make either MAC (A or B) communicate to either port (A or B). Media Conversion, would involve one port be Fiber and the other Port be Copper, where we want to pass the data from Port Fiber to Port Copper.

    Section 6.5.4 Strapped Extender or Media Converter Mode explains this in greater detail and provides a way to strap the PHY into media converter mode, i.e. no software configuration needed.

    Please read this section and check the strap settings on the board. From your picture in the previous E2E post I can see that J40 is not enabled (the strap to enable media conversion).

    References:

    DP83849IF Data Sheet

    Regards,

    Alvaro

  • Thanks for the reply Alvaro,

    even after strapping the J40 also not working

    in cmd prompt showing : destination host is unreachable..

    observed that FX cable connector not connecting properly.. As you can see in the second image in that Previous post the FX cable connected to the EVKIT is not fully connected.. if we insert it fully LEDS at the FX side was turning off..

    Best regards,

    Tex

  • Hi Tex,

    Unfortunately I do not have a board to recreate your setup, but I want to emphasize that the board will need to be reset/power cycled for any jumper changes to have effect. The Fiber cable connection issue is concerning. I don't believe the fiber module is included with this board by default, it needs to be added. 

    Without any register writes, there's not much else I can assist with for debugging. However, register access is pretty simple.

    1. MSP430 Launch Pad
      1. https://www.ti.com/tool/MSP-EXP430FR2355
    2. USB-2-MDIO Software
      1. https://www.ti.com/tool/USB-2-MDIO 
    3. Using a female to female jumper wire (3 total)
      1. Connect Pin 4.2 on the MSP to the MDIO pin on the 849EVK board
      2. Connect Pin 4.1 on the MSP to the MDC pin on the 849EVK board
      3. Connect GND on the MSP to GND on the 849EVK board
    4. Connect the MSP Launch pad to your computer via the Micro-USB cable and launch USB-2-MDIO
      1. Open Device Manager on your windows computer and look under "Port" 
      2. It should show up as "USB Serial Device" along with 2 other MSP items

    Read Registers 0x16 (confirms Fiber is enabled for Port B) and 0x17 (Confirms PHY is in media Converter mode)

    Note: With J36 Populated and J37 Un-populated, Port A was PHY_ID 2 and Port B was PHY_ID 3

    Regards,

    Alvaro

  • Hi Alvaro,

    As you said i have downloaded USB-2-MDIO application

    could you please tell where should i connect MDC and MDIO pins in MSP430F5529 (i don't have MSP-EXP430FR2355 right now)

    With J36 Populated and J37 Un-populated, Port A was PHY_ID 2 and Port B was PHY_ID 3

    J37 i have populated 

    regards,

    Tex

  • Hi Tex,

    Does your MSP look like this?

    If so, the pin assignments I gave above are the same. 4.2 -> MDIO & 4.1 -> MDC

    Regards,

    Alvaro

  • Hi Alvaro,

    As you said i have connected  4.2 -> MDIO & 4.1 -> MDC

    Read Registers 0x16 (confirms Fiber is enabled for Port B) and 0x17 (Confirms PHY is in media Converter mode)

    i created the script as you said but it is showing "Register 0016 is : Error! Device not connected" 

    If possible please give me checkpoints to read register values

    Best regards,

    Tex

  • Hi Tex,

    The "Error! Device not connected" message can happen for multiple reasons. The first thing we need to confirm are that you are choosing the correct PHY_ID

    With J36 Populated and J37 Un-populated, Port A was PHY_ID 2 and Port B was PHY_ID 3

    With the Jumper position as described, those were the PHY_IDs that worked for me. Match the same configuration and try again.

    Before Reading 0x16 & 0x17, try reading Register 0x0 & 0x1 just to confirm that you're able to read correctly.


    Regards,

    Alvaro

  • Hi Alvaro,

    I'm able to do media conversion now thanks to your previous suggestions

    but i would like to read register values please help me in that

    The "Error! Device not connected" message can happen for multiple reasons. The first thing we need to confirm are that you are choosing the correct PHY_ID

    things i have tried :

    1. I have connected as per the guidelines in help tab
    It should show up as "USB Serial Device" along with 2 other MSP items

    USB Serial Device is not shown but only 2 default MSP Items showing

    1. you can see my connections in below image
    2. after selecting the debugging port and baud rate in USB2MDIO i tried to PHYs like which PHY is available
    3. even i wrote a script and tried to read the respective register it was showing like:

    The possible ways i have tried.. can you please suggest me what else i can try ???

    Also please tell me how much minimum quiescent current is achievable it is not mentioned in the data sheet it seems at present it is consuming 0.450A and trying to achieve 0.350A.. also please suggest any alternate possibilities to achieve desired current

    Best regards,

    Tex

  • Hi Tex,

    • Connect Pin 4.2 on the MSP to the MDIO pin on the 849EVK board
    • Connect Pin 4.1 on the MSP to the MDC pin on the 849EVK board

    Please follow the connection I provided. Unfortunately the "Help" tab that you referenced has the connections backwards. I apologize for that confusion.

    Let me know if this resolves your register access query.

    I'm glad that media conversion is finally working! I'm not sure about the current consumption and again since this is an older part, access to this kind of data/support is limited. I will consult with my team and see if we can find anything.

    Regards,

    Alvaro

  • Hi Alvaro,

    Apologies for the delay in reply

    Please follow the connection I provided. Unfortunately the "Help" tab that you referenced has the connections backwards. I apologize for that confusion.

    Still it is not showing the port usb serial device port, could you please tell me any other possible ways

    I'm not sure about the current consumption and again since this is an older part, access to this kind of data/support is limited. I will consult with my team and see if we can find anything.

    Please let me know regarding quiescent current I'm eagerly waiting for your valuable reply.

    Best regards,

    Tex

  • Hi Tex,

    There might be an issue with your MSP, luckily I know a way to fix it.

    1. Unplug and plug back in the MSP multiple times from your computer while monitoring the Device Manager window. Sometimes this helps (using a different usb port on the computer sometimes has an effect).  
    2. Download UNIFLASH: UNIFLASH Download
      1. This program will be used to configure the MSP. With the MSP connected to the computer running UNIFLASH, it should auto-detect your board. Then you can flash the script attached below. After the script is finalized, unplug and plug the MSP back in and check your 'Device Manager' to see if it appears properly like Step 1.a
      2. 1524.msp430-usb2mdio-firmware-2.7.txt

    Please let me know if this works.

    Regards,

    Alvaro

  • Hi alvaro,

    after following the above instructions now it is showing the usb serial device port in device manager..

    After selecting the port all phys are available as shown in the below image 

    But i donno the register format regarding this i have tried multiple formats when i tried them it is shown like

    could you please let me know the register format and also what are all the registers need to be checked for media conversion so that i can be able to debug myself in future..

    and also please let me know about the minimum achievable current in DP83849 IC

    Regards,

    Tex

  • Hi Tex,

    A PHY_ID needs to be selected for register reads to be performed.

    Note: With J36 Populated and J37 Un-populated, Port A was PHY_ID 2 and Port B was PHY_ID 3

    Please try positioning the jumpers as described and use these PHY_IDs.

    In the "Help" Tab there is script example guide. This example can be trusted.

    Unfortunately I do not have any extra current consumption data on this device. The only available information would be what is in the datasheet or product page.

    Regards,

    Alvaro

  • Hi Alvaro,

    As you told i have implemented but i'm not understanding what's going on..

    After implementation, the result i have attached in the below images 

    Note: With J36 Populated and J37 Un-populated, Port A was PHY_ID 2 and Port B was PHY_ID 3

    Is that correct or am i missing anything ??? Could you please explain me what's going on here..

    I have unpopulated the FX_EN just to test but still it is showing the same result..

    Regards,

    Tex

  • Hi Tex,

    You're correct, we shouldn't be reading all F's for registers 0x1 & 0xA. I tried again using the MSP script I provided and it gave me a lot of trouble. Try using this one: 

    4774.msp430-usb-to-mdio-universal-v3.04.txt

    I verified this one and provided my results, along with board picture below.

    Can we try:

    1. Power off everything and close USB-2-MDIO
    2. Power up the 849EVK board first
    3. Power up MSP after
    4. Open USB-2-MDIO and select COM Port, Baud Rate, and correct PHY ID

    Could you resend the photo of your most current set up?

    Also please note that I will be out of office from Nov 23 - Nov 29, please expect a delay in response.

    Regards,

    Alvaro

  • Hi alvaro,

    Thanks a lot it is working same as yours.. Thanks for your guidance & images

    One last thing is i'm not getting what's happening here, there is no change even if i populate or unpopulate the PHYADs it is showing same register values as yours in USB2MDIO

    I did multiple tests as i mentioned below:

    1. I have unpopulated J36 & J37 and checked, the result is
      1. PHYID0 & PHYID1 is available
      2. shown same register values in PHYID 0 as u mentioned in the above image
    2. Populated J37 & unpopulated J36 and checked, the result is
      1. PHYID2 & PHYID3 is available
      2. shown same register values  in PHYID 2 as u mentioned in the above image
    3. I have unpopulated J36 & J37 and checked, the result is
      1. PHYID6 & PHYID7 is available
      2. shown same register values  in PHYID 6 as u mentioned in the above image

    also particularly 0016 0110 may i know why it is showing 0100 

    No issues i can wait for your valuable reply

    Best Regards,

    Tex

  • Hi Tex,

    Thank you for your patience in awaiting my reply.

    One last thing is i'm not getting what's happening here, there is no change even if i populate or unpopulate the PHYADs it is showing same register values as yours in USB2MDIO

    Any Strap pin (PHY ID included) will not change right away. Straps are sampled only upon power up and after reset. There is an FAQ that can explain a little further here: What different types of Reset are available on a TI Ethernet PHY?

    As for the different values in Reg 0x16, this may be because I didn't have anything connected to my board (via the RJ-45 or Fiber), where as you do.

    Regards,

    Alvaro

  • Hi Alvaro,

    Welcome back!

    Any Strap pin (PHY ID included) will not change right away. Straps are sampled only upon power up and after reset. There is an FAQ that can explain a little further here: What different types of Reset are available on a TI Ethernet PHY?

    Understood how they work now 

    As for the different values in Reg 0x16, this may be because I didn't have anything connected to my board (via the RJ-45 or Fiber), where as you do.

    I made a complete setup with the link partner digisol and did continuous ping test and checked, still it was showing the same 0100 for 0016 register

    While doing ping test I observed that multiple times showing "Request time out"  is this a sign of resetting ??

    Is there any mistake i'm doing here ?

    Best regards,

    Tex

  • Hi Tex,

    Apologies, I was still catching up with the rest of my work and didn't get a chance to fully look through your question. Please allow me till Dec 4th to reply again. Thank you for your patience.

    Regards,

    Alvaro

  • Hi alvaro,

    No issues please take your own time i can wait for your valuable reply

    If possible can you please share the design files regarding EVKit (Altium or circuit studio)

    Thanks and regards,

    Tex

  • Hi Tex,

    The purpose of reading Register 0x16 is to confirm that Fiber is enabled. Recall that there are essentially two PHYs in the DP83849IF, and only one of them will be configured for Fiber. Be sure to check both PHY Addresses to confirm. Register 0x17, Bits 10:9, is important to check to see if Extender Mode, i.e. Media converter mode, is enabled or not.

    I'm able to do media conversion now thanks to your previous suggestions

    Before you mentioned that you managed to get it to work, what changed between now and then? How were you able to confirm that media conversion was working?

    Regards,

    Alvaro

  • Hi Alvaro,

    Below changes i have done to make it work:

    I have strapped "Extender enable mode" after your suggestion; Speed LED and FX connector was damaged in the board, it was the last board remained to purchase, i was spent lot of time debugging the connector and the speed LED without tampering with the board

    it worked after the above additional settings

    Testing procedure:

    • I took 2 laptops, link partner digisol and our ev kit another side and connected using the fiber optic cable and ethernet cables
    • now changed IPV4 settings in both laptops 
    • Executed Ping test 
    • while ping test is going on i open USB2MDIO to monitor the register values, they haven't changing, there i got confused little bit 
    • i got doubt here will the register values change during the ping test or not ? if they change where can i monitor ???

    please ask if you want to know anything from my side,

    Thank you so much for your valuable time and replies.. you are the best person :)

    Best regards,

    Tex

  • Hi Tex,

    If you are able to ping from one PC to another PC then there's no need to read registers from the PHY, you have a working set up! Thumbsup

    Registers 0x16 & 0x17 shouldn't be changing during the ping test.

    Regards,

    Alvaro

  • Hi Alvaro,

    Registers 0x16 & 0x17 shouldn't be changing during the ping test.

    Understood, All of my doubts has been cleared..

    Thanks for your valuable suggestions 

    Thanks and regards,

    Tex