Giter Club home page Giter Club logo

stm32f4_hal_lwip_lab's Introduction

STM32F4_HAL_LWIP_LAB

STM32 HAL LwIP Testing

[Environments]

  1. NUCLEO-F429ZI evaluation board https://www.st.com/en/evaluation-tools/nucleo-f429zi.html
  2. STMCubeIDE 1.3.0
  3. STM32CubeMx 5.6.0
  4. STM32F4 HAL Driver 1.25.0
  5. Arduino Ethernet Shield (Wiznet W5100)
  6. Wiznet W5500 module (https://www.wiznet.io/product-item/wiz850io/)
  7. AWS IOT

[Tutorials]

  1. LwIP initialization (https://blog.naver.com/eziya76/221852430347)
  2. LwIP Raw API + TCP echo server (https://blog.naver.com/eziya76/221854875861)
  3. LwIP Raw API + TCP client example (https://blog.naver.com/eziya76/221862499239)
  4. LwIP RTOS + Netconn API + TCP echo server (https://blog.naver.com/eziya76/221867311729)
  5. LwIP RTOS + Netconn API + TCP client example (https://blog.naver.com/eziya76/221871231508)
  6. LwIP RTOS + MQTT client example (https://blog.naver.com/eziya76/221938551688)
  7. LwIP RTOS + mbedTLS client example (https://blog.naver.com/eziya76/221959527368)
  8. LwIP ROTS + MQTT + mbedTLS client example (https://blog.naver.com/eziya76/221976226378)
  9. WIZNET W5100(W5500) + TCP client example (https://blog.naver.com/eziya76/221996669928)
  10. WIZNET W5100(W5500) + TCP echo server (https://blog.naver.com/eziya76/221999200538)
  11. LwIP ROTS + MQTT + mbedTLS + AWS IOT (https://blog.naver.com/eziya76/222006275453)
  12. LwIP + STM32CubeIde 1.9.0 : https://blog.naver.com/eziya76/222700942071
  13. LwIP TFTP IAP : https://blog.naver.com/eziya76/222721690953
  14. LWIP RTOS + MQTT client for STM32CubeIDE 1.9.0

stm32f4_hal_lwip_lab's People

Contributors

eziya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stm32f4_hal_lwip_lab's Issues

Issues with running STM32F4_HAL_ETH_RTOS_TCPCLIENT on stm32f417VG

Hi,

I stumbled upon an issue running the code from the STM32F4_HAL_ETH_RTOS_TCPCLIENT project.
I am using IAR ARM as a compiler and stm32f417VG (as stated in the title).
The code builds and I can start it but after the call netconn_connect(conn, &server_addr, SERVER_PORT); in freertos.c
err = 0xF3 - ERR_ABRT and I am uncertain why..

The only change I have made to the code are the pin setup for the eth circuit DP88 which I am using along with the stm32f4 which consists of :
/* Configure MCO (PG13) */
GPIO_InitStructure.Pin = GPIO_PIN_13;
GPIO_InitStructure.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStructure.Mode = GPIO_MODE_AF_PP;
GPIO_InitStructure.Pull = GPIO_NOPULL;
GPIO_InitStructure.Alternate = GPIO_AF11_ETH;
HAL_GPIO_Init(GPIOG, &GPIO_InitStructure);

/* Ethernet pins configuration ************************************************/
/*
 * ETH_MDIO -------------------------> PA2  / pin 25
 * ETH_MDC --------------------------> PC1  / pin 16
 * ETH_MII_RX_CLK/ETH_RMII_REF_CLK---> PA1  / pin 24
 * ETH_MII_RX_DV/ETH_RMII_CRS_DV ----> PA7  / pin 32
 * ETH_MII_RXD0/ETH_RMII_RXD0 -------> PC4  / pin 33
 * ETH_MII_RXD1/ETH_RMII_RXD1 -------> PC5  / pin 34
 * ETH_MII_TX_EN/ETH_RMII_TX_EN -----> PB11 / pin 48
 * ETH_MII_TXD0/ETH_RMII_TXD0 -------> PB12 / pin 51
 * ETH_MII_TXD1/ETH_RMII_TXD1 -------> PB13 / pin 52
 * ETH_RESET_N ----------------------> PE15 / pin 46
  Unused pin configuration for full MII removed! */

/* Configure PA1, PA2 and PA7 */
GPIO_InitStructure.Pin = GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_7;
GPIO_InitStructure.Alternate = GPIO_AF11_ETH;  
HAL_GPIO_Init(GPIOA, &GPIO_InitStructure);

/* Configure PB11, PB12 and PB13 */
GPIO_InitStructure.Pin = GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_13;
GPIO_InitStructure.Alternate = GPIO_AF11_ETH;  
HAL_GPIO_Init(GPIOB, &GPIO_InitStructure);

/* Configure PC1, PC4 and PC5 */
GPIO_InitStructure.Pin = GPIO_PIN_1 | GPIO_PIN_4 | GPIO_PIN_5;
GPIO_InitStructure.Alternate = GPIO_AF11_ETH;  
HAL_GPIO_Init(GPIOC, &GPIO_InitStructure);

/* Configure ETH_RESET_N (PE15) */
GPIO_InitStructure.Pin = GPIO_PIN_15;
GPIO_InitStructure.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStructure.Pull = GPIO_NOPULL;  
HAL_GPIO_Init(GPIOE, &GPIO_InitStructure);
/* Initiate to HIGH state (inactive) */
HAL_GPIO_WritePin(GPIOE, GPIO_PIN_15, GPIO_PIN_SET); `

Do you have any ideas why the net_connect function returns 0xF3 - ERR_ABRT?

STM32F4_HAL_ETH_MBEDTLS-master problem

When running this on a Windows platform the #define LWIP_RAND() ((u32_t)rand()) dod not work and I had to use HAL_RNG_GetRandomNumber.

But when it did run the Data console showed this - can you try it and see if you get the same?

Thanks

Andy.

. Seeding the random number generator... ok
. Loading the CA root certificate ... ok (0 skipped)
DHCP/Static IP O.K.
. Setting up the SSL/TLS structure... ok
. Connecting to tcp/www.google.com/443... ok
. Performing the SSL/TLS handshake...../Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4094: bad message length
../Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4344: ssl_get_next_record() returned -29184 (-0x7200)
../Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:5699: mbedtls_ssl_read_record() returned -29184 (-0x7200)
failed
! mbedtls_ssl_handshake returned -0x7200

error on mbedtls...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.