S7G2 NetX PHY address

Hello,

I am working with SSP 120b on a custom board with a S7G2 (same reference on the SK-S7G2) with a different PHY.

I try to make the Nx_Duo_Http_Server Demo working. It runs well on the SK-S7G2 but on my custom board I see netwotks LED working but I have no ping answer (first packet return host unreachable and three next packet are timed out.

My PHY is a Texas Instrument DP83848 used in RMII mode on synergy ethernet channel 1. The main difference I spotted is the PHY adress we had to set it to 0x03 and the starter kit is set to 0x00. I wonder if this could be the issue. I read chapter 29 of the S7G2 datasheet and NetX user guide but I can't find how to set this PHYAD (register or function ...)

any idea to solve this issue or to set PHYAD ?

 

Regards

  • In reply to TLHQ:

    Hello TLHQ,

    You can add nxd_src component to your project (you may have to add tx_src) to debug this problem (i.e. step into nx_packet_data_append). Something goes wrong when allocating another (chained) packet - have you checked in the phy documentation whether it uses default size for the physical frame (I know some WiFi modules need this)?

    Regards
  • In reply to Renesas Karol:

    I've tried and I can't compile with NetX Sources "ERROR NX_IP_HEADER undeclared (first use in this function) | nx_arp_dynamic_entry_set.c line 325" with and without threadX sources.

    I've tried to upgrade to the new xware protocol but is there a way to launch a http server without needing a fileX usbx key storage plugged with this new version ? because I can't have one on my custom board and I just need to display basic html page with few gif logo as in the demo.

  • In reply to TLHQ:

    Hello TLHQ,

    To use FileX without storage instance, you should add IP instance through the configurator but include nx_http_server module through components tab. Manually initializing HTTP Server involves allocating some stack memory (usually 2-4K) and making a call to nx_http_server_create. Pointer to media instance should be set to NULL. You'll also need to provide filex_stub.h file - this is normally included with NetX FTP/TFTP/HTTP server module. Defining "NX_HTTP_NO_FILEX" in compiler preprocessor settings will also be required.

    Regards
  • In reply to Renesas Karol:

    Hello Karol,
    It works ! I am under SSP120b, I've added new NetX IP Instance in configurator. I've added component nx_http_server. I've written custom ether_phy.c/.h for my phy and I've written a small program derived from the deprecated http server demo.
    Thanks a lot for your help.
    Regards,