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
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); }
My collegs want to have a solution without RTOS. Is it possible to get running without RTOS usage?
Please read this page:www.keil.com/.../nw_resource_requirements.html
That means that we should apply RTOS functionality and thus we can not use that - meanly due to memory fragmentation.
Hi again,
You can use old version of Network( I don't recommend) or use LWIP.