Now there are two separate errors that I am running into. I also replaced udp_send() with tcp_write() as I believe that was the closest to similar functionality but I am not completely sure that is correct. I am aware that these are not a 1:1 translation and that the tcp functions behave differently but I am not sure in what ways and how I may achieve the functionality seen in the code.įigure 3: Similar to figure 2, I have commented udp example code and written tcp replacement. I have kept the IP address the same and used the tcp functions instead of udp. I have changed the message as I am trying to get my Pythong GUI to send a tcp message of "Hello There!" and my board to respond with "General Kenobi!". Also curious about where I may put my main functionality of my application if the scheduler prevents the code from going any further? For example if my goal is to blink an LED, turn a servo, or read a sensor, do I now put that code inside of the default task where it loops? Some clarification on that would be wonderful as I was still unsure after reading the article.įigure 2: Here you can see that I commented the udp example code so that I could use it as reference. Here is what the code looks like:įigure 1: I have not changed these functions that were generated by CubeMX but wanted to post them in case anything looks off. Like the example I am trying to send a word over ethernet but instead of UDP I am using TCP. Per the suggestion of ChahinezC I have gone through the article "How to create Project for STM32H7 with Ethernet and LwIP stack working" and now have clearer questions and goals. If there is anything I need to add to this post or expand upon please let me know and I will do so as soon as possible. If there is any general guidance on this topic or anyone who has worked on a similar project I would greatly appreciate any and all help I could get. I am not sure if this example is compatible with the HAL_ETH_transmit() and other functions in the ETH HAL driver to make this functionality work? I was able to run the Lwip example on the board that shows connectivity by having an orange LED for connected to ethernet and a red LED on for disconnected. My goal is to be able to be able to click my button on the GUI and send an Ethernet packet to the board that I can read and then act upon as well as be able to send a packet from the board to the GUI with sensor reading information. I have these codes readily available to post but I am very new to all of this so I am not sure what parts of it I should be posting. For testing I have used the Lwip_HTTP_Server_Netconn_RTOS for STM32H743ZI_Nucleo example that can be selected in example selector. I am using CubeMX to initialize all of my peripherals and CubeIDE for development. Load C:\\ChibiStudio\\chibios191\\demos\\STM32\\RT-STM32H743I-NUCLEO144\\build\\ch.I am working on getting a Nucleo-H743ZI2 board to communicate with a python GUI over Ethernet. "monitor" command not supported by this target. Reading symbols from C:\ChibiStudio\chibios191\demos\STM32\RT-STM32H743I-NUCLEO144\build\ch.elf.done. Info : Listening on port 3333 for gdb connectionsīut when launching debug i have got the following error: Info : stm32h7x.cpu: hardware has 8 breakpoints, 4 watchpoints Info : Listening on port 4444 for telnet connections Info : Listening on port 6666 for tcl connections Srst_only separate srst_nogate srst_open_drain connect_deassert_srst The results might differ compared to plain JTAG/SWD Info : The selected transport took over low-level target control. Info : auto-selecting first available session transport "hla_swd". OpenOCD is started properly with the followin message: ibistudio/ for compiling, starting OpenOCD and debugging: I am using NUCLEO-H743ZI and ChibiOS Studio for testing purpose, i follow the tutorial.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |