Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP8266 - Examples? #3

Closed
Korporal opened this issue Feb 23, 2019 · 2 comments
Closed

ESP8266 - Examples? #3

Korporal opened this issue Feb 23, 2019 · 2 comments

Comments

@Korporal
Copy link

Korporal commented Feb 23, 2019

Hi,

I was wondering if you have worked with the STM32F769 Discovery board and the dedicated connector it has for an ESP8266?

I want to leverage the async IO pattern that you talk about here but not really sure how much of your source code is portable to the STM32F769, I'm using Visual GDB and Visual Studio for this.

I've actually designed and developed a pretty powerful API in C# that runs on a PC and controls an ESP8266, this is fully async in nature and includes a very flexible and quite powerful RingBuffer class.

I'd now like to rewrite this in C++ and get the board working with the ESP8266.

I can't even find out which USART is tied to the ESP8266 connector, pretty much no documentation.

Thanks

@MaJerle
Copy link
Owner

MaJerle commented Feb 23, 2019

You see the approach, now for the discovery board, you need to check which UART is connected there.
From the link you gave, it is very clear that UART5 is used on this connector, thus you have to:

  • Find which TX and RX pins are used for UART5 on the board (PC12, PD2)
  • Open reference manual of STM32F769 MCU and check DMA configuration for UART5 (DMAx, Streamy, Channelz) and use these in example (DMA1, Stream4, Channel0)

Driver for this discovery is available in my ESP library for microcontrollers: https://github.com/MaJerle/ESP_AT_Lib/blob/master/src/system/esp_ll_stm32f769i_discovery.c

There is a documentation :)

@MaJerle MaJerle closed this as completed Feb 23, 2019
@Korporal
Copy link
Author

@MaJerle - Hi, and yes you are quite right there is indeed documentation and I was speed reading and doing a poor job!

Many thanks.

Hugh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants