STM32 ETHERNET #1. Hardware Configuration || PART 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ย. 2024

ความคิดเห็น • 143

  • @ControllersTech
    @ControllersTech  ปีที่แล้ว +4

    1.) I just tested with the latest version (1.12.1). Yes the CubeMX does not let us configure the RxArray, but you can simply ignore it.The code builds just fine and the ping works as it should. I am attaching the project for your reference. drive.google.com/file/d/1bWet0pSpQxkGx_ry3aAdO-ejf9SIg5YF/view?usp=sharing
    2.) Don't misunderstand the logic. You don't necessarily need to do this. Memory configuration in only required in M7 processors.
    Also if the cubeMX don't let you configure the memory, then you are good to go with the default setup itself. This is why I said "Watch both parts of the configuration". I can't make separate videos for all processors.
    3.) The above configuration is tested with ROUTER. If you are connecting the board directly to the computer, you need to make some changes in the ethernet settings of your computer. Checkout the setting controllerstech.com/wp-content/uploads/2023/08/ethenet_setting.png. This setting is valid for the static IP used in the video.

    • @quocthainguyen2314
      @quocthainguyen2314 ปีที่แล้ว

      I do the same as you but it doesn't work with ping, the program still runs to sys_check_timeouts();
      I run it on STM32H743ZIT6 Nucleo

    • @eduardojreis
      @eduardojreis 9 หลายเดือนก่อน

      About 1). Does it mean that I don't have to allocate the 1524*4 bytes for the Rx Buffer and I can just put the LWIP at 0x30000100? Where does the Rx Buffer gets allocated instead? Does it automatically gets added to the MPU?

    • @linassturys7746
      @linassturys7746 9 หลายเดือนก่อน

      I downloaded the project and upload the code without any changes - it doesn't work. My board STM32H745i-Disco

    • @ControllersTech
      @ControllersTech  9 หลายเดือนก่อน

      You downloaded the file linked in the first point ?

    • @linassturys7746
      @linassturys7746 9 หลายเดือนก่อน

      ​@@ControllersTechthat's right. But now I have another problem. After uploading a code into my board I am not able upload again. The programmer can't find device and I don't know how to clean chip.

  • @bogdan1543
    @bogdan1543 3 ปีที่แล้ว +9

    Would be interesting to see Ethernet using external ICs, like W5500 and etc. Thank you for your work!

  • @yvindSalvesen
    @yvindSalvesen 2 หลายเดือนก่อน +2

    Hi, thanks for the informative video. I struggled with the NUCLEO-H753ZI board to get it to work. But when I put in a large delay after HAL_init() it worked. I had to put 3 secounds. (I used DHCP by the way) It took me a long time to figure this out. Because it worked only during Debug mode (Using the onboad SWD), and not in free run. So as soon as I restarted the controller it did not work. I was sure it had something to do with the cloks or the memory. The only thing was that the LAN8742 need time to initialize. So I just put HAL_Dealy(3000); after the hal init. And it worked! So I hope this can help others struggling with the same.

  • @eduardojreis
    @eduardojreis 11 หลายเดือนก่อน +4

    5:38 - What about that warning saying "The ETH can work only when RAM is pointing at 0x2400..."?

  • @ferdinvivian9336
    @ferdinvivian9336 ปีที่แล้ว +3

    Hello, sir I have the stm32f446 Nucleo board and STM32F103BluePill Board,, Both the boards do not support the inbuilt Ethernet feature. Instead, there is an alternate option of using an ENC28J60 or W5500 ethernet module interfacing with SPI communication. Can you make a video series for ethernet using the SPI Module so that it will be useful for LowerEnd MicroControllers?

  • @dymastro788
    @dymastro788 3 ปีที่แล้ว +2

    This is awesome!!! Finally some good ethernet sources!!!

  • @arashhashemi7091
    @arashhashemi7091 3 ปีที่แล้ว

    Thanks so much, you are really professional. Thanks also for your Accent. You speak so clear. Thanks again.

    • @hokuspokus8570
      @hokuspokus8570 3 ปีที่แล้ว +6

      Lol He using some voice TTS

  • @MrHause13
    @MrHause13 3 ปีที่แล้ว +2

    Now I finnally know why I was not able to run ethernet on CM7 core.. Because I did not configure memory.. But on CM4 it worked fine for some tcp echo tests. Now I can do it in correct way.
    Nice job, looking forward for the next ones! Hope that you will also demonstrate simple tcp/udp echo with freeRtos

    • @shettymalnad1978
      @shettymalnad1978 ปีที่แล้ว

      your using STM32H745i DK ?? if you'r using this i need help ??

  • @fillempie1501
    @fillempie1501 3 ปีที่แล้ว +5

    I am using a W5500 with the STM32 through SPI. Want to use the Ethernet controller in the STM. So very exciting .....

    • @jonfs2000
      @jonfs2000 3 ปีที่แล้ว

      If you are using W5500, then you can use any simple 8bit uC with SPI. No need to bother about ethernet module in the uC.

    • @fillempie1501
      @fillempie1501 3 ปีที่แล้ว +1

      @@jonfs2000 At the moment I use that solution. But eventually I want to replace the W5500 with the STM32 controller

    • @jonfs2000
      @jonfs2000 3 ปีที่แล้ว

      @@fillempie1501 Sorry, I misunderstood your comment.
      Wonder any STM32 comes with builtin PHY

  • @hansdietrich83
    @hansdietrich83 3 ปีที่แล้ว +2

    Exactly what I needed

  • @tahaaboud-x9x
    @tahaaboud-x9x 3 ปีที่แล้ว +1

    Thank you !!
    I am waiting for a MODBUS TCP communication video in this case, I hope that ..

  • @CallistoPili
    @CallistoPili ปีที่แล้ว +4

    with the new version of LWIP, the RxArray buffer doesn't exist into the ethernetif.c file, the procedure to add the "external" gnetif fails due to missing elsewhere.

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      I will check..

    • @ספורטודיווחיאמת
      @ספורטודיווחיאמת ปีที่แล้ว

      i have the same problem "undefined reference to `gentif'"

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      @CasllistoPili There is no such issue. I just tested with the latest version (1.12.1). Yes the CubeMX does not let us configure the RxArray, but you can simly ignore it.
      The code builds just fine and the ping works as it should.
      I am attaching the project for your reference.
      drive.google.com/file/d/1bWet0pSpQxkGx_ry3aAdO-ejf9SIg5YF/view?usp=sharing

    • @quocthainguyen2314
      @quocthainguyen2314 ปีที่แล้ว

      @@ControllersTech I did the same as you but it doesn't work with ping

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      @@quocthainguyen2314 Check the last point of the pinned comment (new one).

  • @akashv5622
    @akashv5622 ปีที่แล้ว

    How will we know the value of each dma descriptor . Is it like the size of a structure in the HAL library?

  • @eduardojreis
    @eduardojreis 11 หลายเดือนก่อน

    6:14 - Is the main code really organized in the AXI SRAM? In another video AXI SRAM is referred as the main RAM. Also, in my reference manual, RM0468, there is an entire region named CODE.

  • @mmt1024
    @mmt1024 3 ปีที่แล้ว +2

    Can't wait

  • @gurkantopkara6556
    @gurkantopkara6556 11 หลายเดือนก่อน

    Have you ever try to use SNMP ?

  • @alisahin4904
    @alisahin4904 ปีที่แล้ว

    Hello can you say that which ethernet cable do you use ? where can i buy it ?

  • @TRANHOANG-cy9pp
    @TRANHOANG-cy9pp 2 ปีที่แล้ว

    thanks for your video, did you check the maximum speed?? I tried but speed very low

  • @fabiancastano6233
    @fabiancastano6233 2 ปีที่แล้ว

    Thank you very much, amazing information, can you help me with something, I have a board where I used other PHY driver, in my case I am using DP83620 for optic fiber instead LAN8742, do you know how to install this driver or change the dPHY driver?, I am using RMII connection
    Thank you very much

  • @eduardojreis
    @eduardojreis 9 หลายเดือนก่อน +1

    10:58 The default LWIP_RAM_HEAD_POINTER is 0x30044000. I am using a H723ZG, for which the reference manual says that memory address is under a reserved section of the SRAM. What is the point of the IDE putting addresses as default that can not be used? Does anyone knows that?

    • @danieliskandar4410
      @danieliskandar4410 8 หลายเดือนก่อน

      did you find an answer to this question I am using the same board and can't
      get it to work

    • @eduardojreis
      @eduardojreis 8 หลายเดือนก่อน

      @@danieliskandar4410 Yes! You indeed have to move the LWIP_RAM to valid memory area.

  • @FelipeBarros-p4w
    @FelipeBarros-p4w หลายเดือนก่อน

    After watching the video: "ok, I can try that"...
    After reading the comments: "Oh shit"

  • @jr8699
    @jr8699 2 ปีที่แล้ว

    Great video. It taught me a lot!

  • @woldecosgrove
    @woldecosgrove 11 หลายเดือนก่อน

    Hi I like your video very much, just wonder if the above works on STM32H7A3 or STM32H743 ?

    • @woldecosgrove
      @woldecosgrove 11 หลายเดือนก่อน

      or can it work on STM32H750 Discovery board ?

    • @ControllersTech
      @ControllersTech  11 หลายเดือนก่อน

      It works for all STM32 devices.

  • @sajadahmadian1863
    @sajadahmadian1863 2 ปีที่แล้ว

    How can I use your Project by Spi Module? like ENC28J60 Ethernet module.

  • @microsore1
    @microsore1 2 ปีที่แล้ว +1

    Hi ! thanks for you video, that really help me to start my MQTT project on STM32F407.
    I have a problem with the ethernet.
    That don't work if STM32F407 starts with the cable disconnected.
    If i start the MCU with cable, i can ping, disconnect, reconnect and ping again.
    But if i start the MCU without cable and connected after 10sec (more or less), the ping will never work ! Or after a reset with cable plug !
    Do you have an idea where i can make a changement ?
    Thank again

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว

      Keep the cable disconnected.
      Put a breakpoint inside the while loop.
      Run the code and see if it hits the breakpoint.

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว

      Ofcourse i mean debug without cable.. just like you mentioned the issue is happening

    • @microsore1
      @microsore1 2 ปีที่แล้ว

      @@ControllersTech Ok i put and BP in infinite loop and i can hit with and without cable plug, replug, just the ping don't work if it not plug at init ! :D

    • @microsore1
      @microsore1 2 ปีที่แล้ว

      In MX_LWIP_Init();
      I found netif_set_link_callback(); //Set callback to be called when link is brought up/down
      So i understand the plug unplug at the init should be manage by this function but something doesn't work and i don't know if it's me who do something wrng

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว

      Ok i don't know if it will work but try this.
      Do not ping until the link is up. You can call the set_link callback function and inside it check if the link is up. If it is, then set some flag.
      In the while loop, use the flag to shield the ping

  • @IMENSOUHAYEL
    @IMENSOUHAYEL ปีที่แล้ว

    Im using stm32H747I Discovery board and i used RMII connection and configured memory mapping just like you and I did all the configurations as explained in the video . The only difference is that even with RMII connection the cube MX let me configure the memory but i get no response when i do the ping test . Im using the stm32cubeide V 1.9.0

  • @GGlearn
    @GGlearn 5 หลายเดือนก่อน

    I'm using the STM32H723, and there is no setting for the RX buffer memory. A space for this has been allocated as a memory pool in the AXI SDRAM. I'm a bit confused; do I need to configure it? thank you so much

    • @ControllersTech
      @ControllersTech  5 หลายเดือนก่อน

      Check the point 1 of the pinned comment.

    • @GGlearn
      @GGlearn 5 หลายเดือนก่อน

      @@ControllersTech thanks a lot

  • @rajakaaliraj4973
    @rajakaaliraj4973 4 หลายเดือนก่อน +1

    Sir stm32h743zit6 144 nucleo board and stm32h743iit6 mcu core board both board rmii ethernet is not working, ethernet can't ping ,please help us sir
    Atleast please try to stm32h743zit6 ethernet ping this board rmii mode

  • @eduardojreis
    @eduardojreis 11 หลายเดือนก่อน

    Could we just work with AXI SRAM instead of SRAM1? Is there any particular reason SRAM1 is being picked over AXI SRAM?

    • @ControllersTech
      @ControllersTech  11 หลายเดือนก่อน

      You can use whatever ram you want. But since the main code is organised in axi sram, make sure you give proper offset for the dma descriptors.

  • @arunc5429
    @arunc5429 2 ปีที่แล้ว +1

    Hi Sir,
    I have done all the configuration as per your video and I'm using stm32h745-DISCO board. But the ping on the IP is showing "host unreachable" . On debug, I was able to find out that within the LwIP_Init() function, within netif_add(); function I'm falling into error;
    LWIP_ERROR("netif_add: invalid netif", netif != NULL, return NULL);.
    When configuring from cube-MX, I could all see one difference between your configuration and mine, there is no "Rx_Buffers_Address" in my set-up.
    Can you suggest on where I've gone wrong?
    Note: - I'm using cat-5e ethernet cable that I've verified working in my PC.

    • @Cypher-sn3bt
      @Cypher-sn3bt ปีที่แล้ว

      I have exactly the same problem

    • @arunc5429
      @arunc5429 ปีที่แล้ว

      @@Cypher-sn3bt Please let me know if you have any update on this issue. I tried using the ethernet crossover cable but still the problem persists. Thank you.

    • @shettymalnad1978
      @shettymalnad1978 ปีที่แล้ว

      hello am using the same board for configuration done same as the above video but ping on ip shows transmitt failed general failure .Any help ??

  • @ahmetturan618
    @ahmetturan618 3 ปีที่แล้ว

    thank you for this series

  • @linassturys7746
    @linassturys7746 9 หลายเดือนก่อน

    I use a board STM32H745i-Disco and still not able to activate ethernet on this board. I found that the board configuration supports just full duplex (MII_CRS and MII_COL deactivated) . Does it changes something? Can the example used with ETH mode: "MII Full Duplex Only"?

    • @ControllersTech
      @ControllersTech  9 หลายเดือนก่อน +1

      How are you connecting the board ? Using router or direct connection?
      I have the same board. Things just work fine without any issue.
      You can reach me on telegram

    • @linassturys7746
      @linassturys7746 9 หลายเดือนก่อน

      @@ControllersTech It's connected to home network. Tried to leave save memory setup just chage from MII to Full duplex mode + static IP address : the board appears in arp list, but ping failed. I 've bought second same board - same result. I can bet there is a stupid mistake, but at this moment I do not see it. Using your the second video I set STM32F769i-disco - works perfect.

    • @ControllersTech
      @ControllersTech  9 หลายเดือนก่อน +1

      Plz contact on telegram. I need to see the code.

  • @omerfaruk1351
    @omerfaruk1351 ปีที่แล้ว

    hi, im using stm32h723zg. i did everything just as you said but in the debug section, line can not reach in to the while loop. i debugged step by step and it is stuck in the "MX_LWIP_Init();" initialization. i think stm32h723zg and h745 are different in some ways but i dont know what to do. can you help me?

    • @turkaykoc2710
      @turkaykoc2710 9 หลายเดือนก่อน

      debugladığımda aynı satırda kalıyorum kodu okumaya devam etmiyor sorunu çözdüysen bana da yardımcı olur musun

  • @santoshitaliya7549
    @santoshitaliya7549 2 ปีที่แล้ว

    Hello, I am using nucleo h745zi q and want to configure ethernet in M4 core so do I have to configure memory for that and mpu configure?

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว

      I never tried, but i don't think you need to

  • @antont.1781
    @antont.1781 3 ปีที่แล้ว

    I want to use STM32H743vi and lan8720
    in the item "LWIP > Platform Settings > Driver_PHY" , there is only the LAN8742 driver.
    please tell me what to do?

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว

      I don't know about 8720, but check the example projects provided by ST and see if there is any changes in the configuration.
      You can just give one shot to 8742. Maybe it will work

  • @shettymalnad1978
    @shettymalnad1978 ปีที่แล้ว

    Hello i have same board configured by fallowing your tutorial in command prompt transmit failed , general failure and RxArray buffer doesn't exist into the ethernetif.c file added manually myself .

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      check pinned comment

    • @shettymalnad1978
      @shettymalnad1978 ปีที่แล้ว

      @@ControllersTech i have a STM32H745i DK board fallowed your vedio ping test is succesfully completed .Next i want to send ADC collected samples(Array) to client using TCP/IP protocal which video should i fallow and how do i achive any guidence ??

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      @@shettymalnad1978 check the TCP server/client video

  • @abdobatikeh5338
    @abdobatikeh5338 ปีที่แล้ว

    I used stm32f439zi nucleo 144 board, but I didn't find CORTEX-M4 in system core in order to confige MPU

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว +1

      Mpu isn't available in f4 series. You just configure the rest of the project.

    • @abdobatikeh5338
      @abdobatikeh5338 ปีที่แล้ว

      @@ControllersTech Thank you so much, I have benefited greatly from your channel❤

  • @fernandocatalani8295
    @fernandocatalani8295 2 ปีที่แล้ว

    Master, where did you get it thr schematic? Could you share it?

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว +1

      You can get it from ST's website. Look for the board schematics in the CAD resource section.

  • @FaisalKhan-qe8ds
    @FaisalKhan-qe8ds 2 ปีที่แล้ว +1

    I am using CUBEIDE version 1.9.0.
    After configuration when code is generated, RxBuffer is not present in ethernetif.c file. Code does not work and ping not answered by the system. I am using nucleo H743zi board. Please 🙏 help.

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว +1

      Yes I guess in the updated versions, they have removed that section. It should still work. I will update the article in probably 1 or 2 days.

    • @FaisalKhan-qe8ds
      @FaisalKhan-qe8ds 2 ปีที่แล้ว

      @@ControllersTech Thank you. I will be waiting ☺️.

    • @serdaryusufozturk4470
      @serdaryusufozturk4470 4 หลายเดือนก่อน

      @@ControllersTech I suppose you didn't update the article. Will you update it ? I'm having the same problem.

    • @ControllersTech
      @ControllersTech  4 หลายเดือนก่อน

      Please read pinned comment

  • @ferdinvivian9336
    @ferdinvivian9336 ปีที่แล้ว

    Can I use this tutorial information for stm32F4 controller sir..

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว +1

      yes

    • @ferdinvivian9336
      @ferdinvivian9336 ปีที่แล้ว

      Can I use Lan8720 or LAN8740 ic module.
      Will the ic support the tutorial content..
      I don't have inbuilt LAN port in my development board

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      Use 8720

    • @ferdinvivian9336
      @ferdinvivian9336 ปีที่แล้ว

      @@ControllersTechThanks sir,, can you please tell me the difference between 8740, 8720, 8742..

  • @1vladbara
    @1vladbara 6 หลายเดือนก่อน

    Just a question: how was the IP add configured on the STM ? Because it's IP must have been 192.168.0.123 in order to respond to the ping, right?

    • @ControllersTech
      @ControllersTech  6 หลายเดือนก่อน

      It is configured in cubeMX.

  • @emilrudnicki7607
    @emilrudnicki7607 ปีที่แล้ว

    if anyone of you had issue with ping additional 2 lines in main.c might solve your problem
    ethernetif_input(&gnetif);
    sys_check_timeouts();
    ethernet_link_check_state(&gnetif);
    HAL_Delay(100);

  • @ericsawade3247
    @ericsawade3247 3 ปีที่แล้ว

    Hey the viedo is great, thanks a lot for it. I have one question, how we can prevent that something is placed in the heap section of the lwIP? Could we define a section inside the linker script to avoid that other variables are placed there?

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว

      If the CubeMX lets you configure the memory, then configure the heap in some sRam region (other than default one).
      If memory config is not allowed, then i Don't think you need to worry about it.

  • @mahmudbaneshi8094
    @mahmudbaneshi8094 2 ปีที่แล้ว

    Hi, thank you for your great video. I have designed a custom board with STM32H743 and LAN8742. I used RMII connection and configured memory mapping just like you said but I am getting an error in the ethernet software reset in the HAL_ETH_init function. I was wondering if you could give me some help. thanks a lot.

    • @abdobatikeh5338
      @abdobatikeh5338 ปีที่แล้ว

      you must generate 50MHz clock from Refclock pin in LAN8742 IC, it is sync clock between PHY layer in IC and MAC layer in stm, to generate this clock from IC read LAN8742 datasheet, you must add resistor to pin2 in IC

  • @mirhatozkan5772
    @mirhatozkan5772 11 หลายเดือนก่อน

    Programı başta çalıştırırken,
    undefined reference to lwip.h hatası alıyorum. Dosyayı kütüphaneye eklediğimde bu sefer buna benzer başka hatalar alıyorum. Siz çalıştırırken nasıl hiçbir hata almadınız?

    • @ControllersTech
      @ControllersTech  11 หลายเดือนก่อน

      You need to enable LWIP in the cubemMX. Watch the video

    • @mirhatozkan5772
      @mirhatozkan5772 11 หลายเดือนก่อน

      Thank you for coming back. It worked after changing the processor@@ControllersTech

  • @ERENTSCGL
    @ERENTSCGL 2 ปีที่แล้ว +1

    Hi!
    Great tutorial.
    I am using the nucleo H743ZI board. I did all the configurations as explained in the video. But in the generated code there is no variable named Rx_Buff and I cannot assign it to the RxArray section. When I tried this 2 months ago it was working and Rx_Buffer variable was present in the generated code. But now it does not work and I think lwip stack is updated in the cube IDE and it uses mempools now. There are new lines different from yours like below.
    typedef struct
    {
    struct pbuf_custom pbuf_custom;
    uint8_t buff[(ETH_RX_BUFFER_SIZE + 31) & ~31] __ALIGNED(32);
    } RxBuff_t;
    /* Memory Pool Declaration */
    #define ETH_RX_BUFFER_CNT 12U
    LWIP_MEMPOOL_DECLARE(RX_POOL, ETH_RX_BUFFER_CNT, sizeof(RxBuff_t), "Zero-copy RX PBUF pool");
    I tried building without Rx_Buff and got hard fault. The Rx Buffer memory pools are located in RAM_D1 as memp_memory_RX_POOL_base and cannot move them to RAM_D2.
    I tried
    extern uint8_t memp_memory_RX_POOL_base[] __attribute__((section(".RxArraySection"));
    this way I got no hard fault but board does not respond to pings.
    Do you have any idea how I can solve this?
    Thanks in advance.

    • @alvarobs
      @alvarobs 2 ปีที่แล้ว +1

      Happening the same with me :(

    • @alvarobs
      @alvarobs 2 ปีที่แล้ว +1

      Try this, Worked for me. Install the CubeMX 6.3 and H7 package 1.9.0 and starts the project from zero, the same in the video.

    • @ERENTSCGL
      @ERENTSCGL 2 ปีที่แล้ว

      @@alvarobs Yes I know it would work. But i need to learn how to use the new lwip stack.

    • @cattflap1447
      @cattflap1447 2 ปีที่แล้ว

      Same here, did you ever fix it ?

    • @ERENTSCGL
      @ERENTSCGL 2 ปีที่แล้ว +1

      @@cattflap1447 Nope, i gave up. I will try again next week. Will post here if I can fix it.

  • @trandung3461
    @trandung3461 3 ปีที่แล้ว

    Sorry, what is the problem with your website, i can not access

  • @PNONONONO-1110
    @PNONONONO-1110 6 หลายเดือนก่อน +1

    hello bro i am getting hard without fault. pls help fast. you didnt explain what to do when im hard

  • @berkinabanozlu4744
    @berkinabanozlu4744 2 ปีที่แล้ว

    I applied it which this video without memory configurations, because cubemx dont allow to memory configs. I couldn't reach to right solution. I tried to sending ping but it didn't answer to back. (stm32f767). What is the problem? should I change my computer's IP4 address according to the code (manual)?

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว

      Are u using a router or direct connection with the computer ?

    • @berkinabanozlu4744
      @berkinabanozlu4744 2 ปีที่แล้ว

      @@ControllersTech I connected the ethernet cable directly to my designed board

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว

      Check out the lastest video in ethernet (no. 7)
      Download its project. In that project, i have shared the screenshot for configuring the windows ethernet settings for direct connection.

    • @berkinabanozlu4744
      @berkinabanozlu4744 2 ปีที่แล้ว

      @@ControllersTech i just tried that video. It didn!t work also I couldn't choose external loader because there is no stm32f767vg. I will be mad :) I just want to see sending ping...

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว

      I didn't ask you to try that video. I said there are screenshots of the windows configuration in the project folder.

  • @panigunnamreddy6462
    @panigunnamreddy6462 2 ปีที่แล้ว

    pls tell me how to add the lwip file

  • @gautierhaudebert7198
    @gautierhaudebert7198 2 ปีที่แล้ว

    I follow exactly what you did, watched the tutorial many times, my program execute correctly. But, I don't know why I'm not able to ping the mcu.
    I have configured MCU adress as 10.10.10.10 and on my computer my ethernet card is configured on 10.10.10.1 with 255.255.255.0 mask. Can anyone help me please ?

    • @adityah4511
      @adityah4511 2 ปีที่แล้ว

      hey. have you got any solution. Same issue here..

    • @gautierhaudebert7198
      @gautierhaudebert7198 2 ปีที่แล้ว

      @@adityah4511 I analysed the connection with Wireshark and I managed to have an ARP request sent by the MCU to the computer. Then the computer answer back to the MCU so the exchange is available but, I can't ping it still after that. I ended up finding a pre-built solution on the internet which worked just fine for me. Good luck man ;)

  • @hakankarasakal8523
    @hakankarasakal8523 ปีที่แล้ว

    👍

  • @elecalt7631
    @elecalt7631 2 ปีที่แล้ว

    Hi !
    First, thanks for your video and how you explain it clearly.
    I work with STM32F407-Disco board and and shield for the ethernet port.
    The config is ok bc i ping the board at the adress i put in STMCubeMX;
    BUT my problem: i can ping the board and the soft loop if i launch it with the debugger, but for an usual use, if i flash my MCU, the software will be freeze and i can't ping the card.
    I guess it is blocked in some routine, if u have ever hear something about this
    Thanks ! :D

  • @fernandoi8958
    @fernandoi8958 2 ปีที่แล้ว

    Why is this robotic voice saying "issue" weirdly? it shoud sound like "ishoe"

  • @Drenov
    @Drenov ปีที่แล้ว

    It comes across as very juvenile and petty when you say that if you don't watch to the very end then any memory errors are your own fault. It's even more like a spoilt teenager when you say you'll delete comments. Ooooh hark at you Sebastian! The grammar is dreadful (e.g. 1:30>"that I don't know which one do I have") and the amateur robotic voice is tedious beyond belief. That's probably the main reason so many people can't make it to the end, but hey blame the audience Sebastian!

  • @ulian2010
    @ulian2010 2 ปีที่แล้ว

    Hi Controllers Tech, thank you for an amazing example! I'm implementing ethernet on the latest CubeIDE package and seems like they changed the code generated again. In particular the Rx buffer is allocated dynamically and needs to be defined in a different way in ethernetif.c and .ld files. In .c. I'm following an example give on STM git repository.
    in newly generated files Rx buffer is defined in the following way
    LWIP_MEMPOOL_DECLARE(RX_POOL, ETH_RX_BUFFER_CNT, sizeof(RxBuff_t), "Zero-copy RX PBUF pool");
    to link it visible in FLASH.ld file added another line
    __attribute__((section(".Rx_PoolSection"))) extern u8_t memp_memory_RX_POOL_base[];
    in ld file defined the memory in the following way
    .lwip_sec (NOLOAD) : {
    . = ABSOLUTE(0x30000000);
    *(.RxDecripSection)

    . = ABSOLUTE(0x30000200);
    *(.TxDecripSection)

    . = ABSOLUTE(0x30000400);
    *(.Rx_PoolSection)
    } >RAM_D2 AT> ROM
    no more changes. unfortunately cannot get the ping - any advice?
    working on nucleo-h745zi-q (needs pin modification so thanks noting that in your videos)
    STM32CubeIDE
    Version: 1.9.0
    Build: 12015_20220302_0855 (UTC)
    Thank you in advance
    Ulian

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว

      Yes i am aware of it. I will make ammendment in the article as soon as i get some time.