A working demo of ESP8266 ESP-01S UART WiFi module running on STM32F103C8T6
- STM32F103C8 board
- ESP-01S: ESP8266 Wi-Fi module
- UHF RFID module (optional)
- USB2TTL: PL2303 or CH340 or FT232 or CP2102
- ST-Link or J-LInk
- Laptop & Wi-Fi hotspot
Refer below table to connect ESP-01S pins with STM32 pins:
ESP-01S | STM32 | USB2TTL | RFID |
---|---|---|---|
GND | GND | GND | GND |
TX(GPIO1) | PA3 | ||
RX(GPIO3) | PA2 | ||
3.3V | 3.3V | 3.3V | |
PA10 | TX | ||
PA9 | RX | ||
PB10 | RX | ||
PB11 | TX |
Use ST-Link to upload the code to STM32.
Connect ST-Link with STM32F103C8T6 Development Board
G -- GND
CLK -- SWCLK
IO -- SWDIO
V3 -- 3.3V
Include Paths
..\Libraries\CMSIS\CM3\CoreSupport;..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x;..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm;..\Libraries\STM32F10x_StdPeriph_Driver\inc;..\Libraries\Hardware;..\user
Compile Control String
--c99 --gnu -c --cpu Cortex-M3 -g -O0 --apcs=interwork --split_sections -I ../Libraries/CMSIS/CM3/CoreSupport -I ../Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x -I ../Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/startup/arm -I ../Libraries/STM32F10x_StdPeriph_Driver/inc -I ../Libraries/Hardware -I ../user
-I./RTE/_stm32f103esp8266
-IC:/Keil_v5/ARM/PACK/Keil/STM32F1xx_DFP/2.3.0/Device/Include
-IC:/Keil_v5/ARM/CMSIS/Include
-D__UVISION_VERSION="525" -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DPRINT_TO_UART
-o .\Objects\*.o --omf_browse .\Objects\*.crf --depend .\Objects\*.d