MaJerle / lwesp

Lightweight and versatile AT parser library for ESP8266 and ESP32 devices.
https://majerle.eu/projects/lwesp-lightweight-esp-at-parser-library-for-embedded-systems
MIT License
447 stars 138 forks source link

Problem with init sequence on STM32H7xx #121

Open micheledarold opened 2 years ago

micheledarold commented 2 years ago

Hi I'm trying to port lwesp into my STM32H743, I have made my new lwesp_ll_stm32fh743_discovery.c and add some modification also in lwesp_ll_stm32.c now the communication work but I can't complete the initialization sequence, the process send ATE0 (or ATE1) and only sometime go to the next steps. If I try with LWESP_RESET_PIN activated I got the same result, the process never send AT+SYSCFG, AT+GMR and other command

looking at trafic with a terminal (connected directly to TX or RX of the wifi module) I see the request of the board and the reply of wifi module.

Could be a problem in settings of the USART communication? What about cache management?

MaJerle commented 2 years ago

It can be both actually - but there should be H735-DK demo in the repository for you to take a look. Did dyou debug the app - do you see characters being received or not ?

micheledarold commented 2 years ago

Where is the demo for H735-DK? sorry but I don't see it in the repository (both development branch and v1.0.0 branch)

I forgot to say that I'm using 2.1.0 AT version on ESP8266 and I'm working with v1.0.0

I see characters received, and preocessed but for some reason the sequence of reset command lwespi_get_reset_sub_cmd is called just one time, if I set a breakpoint in this function the sequence go away for some steps more when I don't have the breakpoint I send just AT+RST and nothing else