Board Support Package For NodeMCU-ESP8266 Boards

Introduction

 pin_out.png

This board support package (BSP) supports NodeMCU-ESP8266 boards. The BSP is based on ESP8266 Xtensa libraries and tool chain.

Getting Started

§      Install Silicon Labs CP210x USB drivers for host PC. These drivers are available on manufacturer web site

§      Create model and build to generate required binary.

§      Refer below for programming and debugging support.

Board Configuration

·      General Configuration

Configuration Parameter

Parameter Value

Board Title

ESP8266 NodeMCU

Tool Chain Type

Local Build

Board Preprocessor Symbol

_BUILD_BRD_ESP8266_NODEMCU

Platform Preprocessor Symbol

_BUILD_PLT_ESP8266

Compiler Preprocessor Symbol

_BUILD_CMP_XTENSA_GCC

C++11 Standard Support

No

File System Support

Yes

OpenMP/OpenCL/CUDA Support

No

Simulation Panel Support

No/No/No

 

·      Hardware Configuration

Configuration Parameter

Parameter Values same for both targets mentioned above except in number of cores

Number of CPU cores

1

Dynamic Memory Support

Yes

Prefer Fixed/Floating Point

Floating Point

DI/DO Pins

D0 (LED1)[16], D1[5], D2[4], D3[0], D4 (LED2)[2], D5[14], D6[12], D7[13], D8[15], RX[3], TX[1], SD3[10], SD2[9], SD1[8], CMD[11], SD0[7], CLK[6]

ADC Default Resolution

10

ADC Pins

A0[A0]

PWM Default Resolution

10

PWM Pins

D1[5], D2[4], D3[0], D4 (LED2)[2], D5[14], D6[12], D7[13], D8[15], RX[3], TX[1]

DAC Default Resolution

10

DAC Pins

-

UART0 Pins

via USB programmer port

UART1 Pins

-

UART2 Pins

-

UART3 Pins

-

SPI Pins

D7(MOSI), D6(MISO), D5(CLK), D8(SS)

I2C Pins

D2(SDA), D1(SCL)

Onboard WiFi

Implemented through TargetHw_Wifi101 block

 

Programmer

CASP supports Programmer0 (using esptool.exe) for uploading generated binary file to the board.

Debugging

Debugging is supported over USB serial.

Known Issues & Limitations

§      For limitations on usage of GPIOs please refer to vendor’s documentation.

§      For ADC (A0) to work properly ensure that ‘TargetHw IO’ block execution interval is above 10 msec.