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 ?
In reply to Renesas Karol:
In reply to TLHQ:
Hello Karol, Thanks to your advice I have something working, I can ping and display a simple html page throught a LAN with fixed IP and customize network LEDs configuration. I still have an issue. I can't send pictures in the html demo page. When there is no picture it works fine but when I try to send the demo pictures : ping is timed out and web browser load during a very long time and finally display the default broken picture. Any idea ? Maybe something wrong in nx_http_server_callback_data_send function ?
Hello TLHQ, Try setting packet size in your packet pool to 1568. A small bug sneaked into 1.2.0 release where driver will fail to chain packets if data is too big to fit into a single packet. 1568 bytes per packet should be sufficient to handle maximum MTU of 1500* (EDIT: typo). Regards
I think packet pool is already 1568
static ULONG packet_pool_area[((1536 + 32 + sizeof(NX_PACKET)) * 50) / sizeof(ULONG)];
/* Create a packet pool. */ status = nx_packet_pool_create(&pool_0, (CHAR*)"NetX Main Packet Pool", (1536 + 32), packet_pool_area, sizeof(packet_pool_area));
Hum I don't know where do you set it ?
In the demo configuration.xml > threads > NetX on nx > ETHER on sf_el_nx > property
I have no packet size option
The error comes from nx_packet_data_append function. With no timeout it is stuck in an infinite loop, if I set a timeout it exits but with a strange error code I think not reliable (code 536739956(d) / 1FFE0074(h)).
nx_packet_data_append works fine to send html strings (htmlwrite) but can't send picture resource nxlogo.
I am investigating ...
To send the picture before calling nx_packet_data_append, it allocates a new TCP packet with nx_packet_allocate (no error here)
Hello TLHQ, Changes to any of the NetX header files from the "synergy" folder will only take effect when NetX Source is added to the project.
This setting in included in the new configuration stacks for NetX, so I highly recommend you use non-deprecated NetX Duo stack to implement HTTP server. Regards