This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Question Regarding Networking Middleware for Ethernet interface

Hello,

I'm trying to get running webserver with uVision5 (compiler version 5) but get stuck with CubeMX/Classic-Configurations for old MDK with ARM Compiler V5.06 (update6 build750). After I used Classic version my Ethernet Link was permanently down, althought the PHY_ID-Registers are readed correct. After I read the instructions in file EMAC_STM32F7xx.c, I'm very confused, because the usage of cubeMX can not be the solution for get Ethernet Link up,  because the Middleware used somehow classic edition not CubeMX version.

So my question is: how to get Ethernet Link up with old MDK?

I'm currently using Network version 7.11.0

Parents
  • Hi, first, you should start a simple Network program.

    1)Did you run RTOS in your mentioned code? Before netInitialize (); you should start RTOS for the OS can handle the network PHY.

    2)Please disable DHCP and set a static IP to check the ping command. via   Net_Config_ETH_0.h file.

    3)Disable all configuration network settings that you have set by netIP_aton  and netIF_SetOption.

    Something like this:

    __NO_RETURN static void app_main (void *argument){	
     int32_t Socket;
    	
    	netInitialize();
    	
    		Socket = netUDP_GetSocket (udp_cb_func);
    			
    		if (Socket>= 0) 
    		{
    		netUDP_Open(Socket,54321);
    							
    		}
    
    		
    		while(1)
    		{
    
    			
    		}
    	
    }
    int main (void){
    
      osKernelInitialize();                 // Initialize CMSIS-RTOS
      osThreadNew(app_main, NULL, NULL);    // Create application main thread
      osKernelStart(); 
    	
    	while(1);
    }

Reply
  • Hi, first, you should start a simple Network program.

    1)Did you run RTOS in your mentioned code? Before netInitialize (); you should start RTOS for the OS can handle the network PHY.

    2)Please disable DHCP and set a static IP to check the ping command. via   Net_Config_ETH_0.h file.

    3)Disable all configuration network settings that you have set by netIP_aton  and netIF_SetOption.

    Something like this:

    __NO_RETURN static void app_main (void *argument){	
     int32_t Socket;
    	
    	netInitialize();
    	
    		Socket = netUDP_GetSocket (udp_cb_func);
    			
    		if (Socket>= 0) 
    		{
    		netUDP_Open(Socket,54321);
    							
    		}
    
    		
    		while(1)
    		{
    
    			
    		}
    	
    }
    int main (void){
    
      osKernelInitialize();                 // Initialize CMSIS-RTOS
      osThreadNew(app_main, NULL, NULL);    // Create application main thread
      osKernelStart(); 
    	
    	while(1);
    }

Children