Skip to content
heejungPark edited this page Feb 12, 2020 · 3 revisions

1. Getting started

SerialPassThrough example for Mbed OS

1-1. Supported board

  • K64F
    • with ESP8266
  • CY8CKIT_062_WIFI_BT
    • with ESP8266
    • with ESP32

1-2. Import the example code

From the command-line, import the example:

mbed import https://github.com/SigmaDeltaTechnologiesInc/SDT-example-serialPassthrough
cd SDT-example-serialPassthrough

1-3. Compile

Invoke mbed compile, and specify the name of your favorite toolchain (GCC_ARM, ARM, IAR) and your platform. For example, for the GCC_ARM and CY8CKIT_062_WIFI_BT:

mbed compile -t GCC_ARM -m CY8CKIT_062_WIFI_BT

Your PC may take a few minutes to compile your code.

1-4. Program your board

  1. Connect your mbed device to the computer over USB.
  2. Copy the binary file(SDT-example-serialPassthrough.bin) to the mbed device.
  3. Press the reset button to start the program.

The LED on your board turns on after 5 seconds. Now this board is into firmware update mode.

1-5. Update ESP8266(or ESP32) firmware

Hardware connection

(ESP board)------------(Your board)
TX--------------------------RX
RX--------------------------TX
IO0------------------------GPIO0(You can use any gpio pin)
EN-------------------------GPIO1(You can use any gpio pin)

Espressif’s official Flash Download Tools

https://www.espressif.com/en/support/download/other-tools?keys=&field_type_tid%5B%5D=13

Espressif’s official Firmware

https://www.espressif.com/en/support/download/at?keys=&field_type_tid%5B%5D=13

  • ESP8266: ESP8266_NONOS_SDK-2.2.1
  • ESP32: ESP32-WROOM-32_AT_Bin_V2.0

Tool configuration

  • ESP8266
    • Baurdrate: 115200
    • Flash size: 32Mbit
    • Flash speed: 40MHz
    • SPI Mode: QIO
Binary Address
boot_v1.7.bin 0x00000
user1.1024.new.2.bin 0x01000
esp_init_data_default_v05.bin 0x3FC000
blank.bin 0x7E000
blank.bin 0x3FE000
  • ESP32
    • Baurdrate: 115200
    • Flash size: 32Mbit
    • Flash speed: 40MHz
    • SPI Mode: DIO
Binary Address
bootloader/bootloader.bin 0x1000
at_customize.bin 0x20000
customized_partitions/ble_data.bin 0x21000
customized_partitions/server_cert.bin 0x24000
customized_partitions/server_key.bin 0x26000
customized_partitions/server_ca.bin 0x28000
customized_partitions/client_cert.bin 0x2A000
customized_partitions/client_key.bin 0x2C000
customized_partitions/client_ca.bin 0x2E000
customized_partitions/factory_param.bin 0x30000
phy_init_data.bin 0xF000
esp-at.bin 0x100000
partitions_at.bin 0x8000