Close

WiFi test with ESP8266

A project log for ICEd = an Arduino Style Board, with ICE FPGA

DIPSY-EPT Emulator and Programme Tool - Open Source Hardware for Open Source FPGA Toolchain

antti-lukatsAntti Lukats 08/23/2015 at 17:110 Comments

The socket for ESP8266 is connected to the FPGA only, so we need to connect the ESP to UART for testing first.

This is just a "wiring" code for FPGA, creates wires from ESP to UART pin of FT2232H.

// ICEd UART to ESP8266
// What it does: connects FTDI channel B pins to ESP8266 UART

module top(
	// RGB LED
	output LED_R,
	output LED_G,
	output LED_B,
	// Small SMD LED (green)
	output LED_small,

	// 
	output ESP_TXD,
	input ESP_RXD,
	output ESP_RESET,

	input ESP_GPIO0,
	output ESP_GPIO2,

	// FTDI FT2232H Channel B
	input BDBUS0, 
	output BDBUS1 
           );

	assign LED_R = BDBUS0;
	assign LED_G = ESP_RXD;
	assign LED_B = 1'b1;
   
	assign ESP_GPIO2 = 1'b1;
	assign LED_small = ESP_GPIO0;

	assign ESP_TXD = BDBUS0;
	assign BDBUS1 = ESP_RXD;

endmodule // top
Sure pin constraints too, then load the FPGA, and ready to test.

First test worked - the only issue was wrong baudrate setting!

Discussions