ESP8266 AT parser library ALPHA version released

After some time, I have uploaded first release “ALPHA” for testing. Library is not public, but it is precompiled for GCC and MDK-ARM for STM32F4xx only.

 

To see, how to use library, download my Github repository¬†and open project in keil uVision. If you don’t have it, you can use main.c to see how to use library.

Notes

  • HEAP must be at least 16k for proper working at the moment
  • STACK must be at least 1k for proper working
  • I used ESP-07 module with 8Mbit flash size, which is needed for latest AT commands firmware (0.52)
  • http://bbs.espressif.com/ everything you need to know how to flash new firmware to ESP module and where to get it.

Pinout

For testing, I used this pinou

PA2 USART 2 user debug output Baudrate for debug is 921600 bauds
PA3 USART 2 user input not needed
PA9 TX from STM to RX to ESP module Communication between STM and ESP is default, 115200 bauds
PA10 TX from ESP to RX to STM
PA0 RESET for ESP module

Libraries download

Download libraries pack here as well as all dependencies which are needed.

Download log from ESP and STM for example

If there is someone who will make this project for GCC (Coocox or SW4STM32), let me know and I will upload it here or on Github account.

I’m waiting for your feedbacks.

Edit:

Library is available for download here.

tilz0R

Owner of this site. Also electronic enthusiasts, web developer, 3D printer fan, handball player and more. Big fan of STM32F4 devices. In anticipation of the new Discovery board for STM32F7 lines.

You may also like...

Read before commenting!

Before you make a new comment, make sure you agree with things listed below:

  • - Read post to make sure if it is already posted what you are asking for,
  • - Make sure you have the latest version of libraries used in your project,
  • - Make a clean and grammatically correct written message,
  • - Report as many details as possible, including what have you done so far,
  • - Do NOT post any code here. Use Pastebin,
  • - Do NOT post any error codes here. Use Pastebin,
  • - Specify STM32Fxxx family and used Discovery/EVAL/Nucleo or custom made board,
  • - Make sure your clock is set correct for PLL,
  • - If you are using my HAL drivers, please check this post how to start.
Comment will be deleted on breaking these rules without notification!
  • AndreyK

    Very-very necessary library under Coocox. I recently purchased a ESP8266 module (v. 7) and for almost a month I can’t engage with STM32F-Discovery. Very-very need this library with your examples of its use. It’s just very strongly pushed me and I’m sure and other developers to work with ESP8266.

    • Hi AndreyK,

      for now, library is available in precompiled version, meaning you can use .a file to add to project in Coocox (which uses GCC compiler).
      In future, I will make a release (I’m almost done, just must finish documentation a little bit) which will be platform independent, meaning, it will be easy portable between STM32, TI, PIC, Arduino if needed, etcetc.

      Please stay tuned. For now, you can download this on the site.

  • Romain Reicher

    I wish to congratulate you for this library.
    I have a ESP8266-1 module with the latest SDK Expressive, so I could test AT commands at 115200 baud and so connect me on my private network successfully.
    Now I already implement your library in a HAL project (CubeMX) on NucleoL476 (config HSI + 24MHz PLL Voltage Scale 2)
    So I wrote the esp8266_ll.h its functions depending on the platform:
    Especially:
    ESP8266_LL_USARTInit ()
    ESP8266_LL_USARTSend ()
    Interrupt Handler for USART Rx and Time using sysTick (1ms interrupt)
    The project is written with IAR EWARM.

    In main.c file (http://pastebin.com/zLMNvhW5)
    The initialization, the Set_Mode are functional and in debug mode I am able to read the answers of ESP8266 module (OK, ready ….)
    However I am unable to read the list of WiFi AP and connect me on my network (ESP8266_WifiConnect (…))
    Did I correctly uses the ESP8266_ functions?

    Thank you in advance.