Skip to content

Commit 85b8415

Browse files
committed
Add instructions for building without IDE
1 parent 61cf81b commit 85b8415

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

README.md

+28-3
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,16 @@ To program the ESP-01 chip using the Arduino UNO, establish the following connec
102102
- 3.3 V connections are common from UNO.
103103
- The RX pin connection between the UNO and the ESP-01 should be made through a voltage divider, since the ESP-01 operates on a 3.3 V logic level and receiving 5 V logic level from the UNO could damage it. A simple 3.3V voltage divider can be made very conveniently using two resistors (10K and 20K).
104104

105-
## Flashing the Firmware
105+
## Flashing the Firmware
106106

107-
To flash the firmware onto your ESP01 chip using the Arduino IDE, follow these steps:
107+
To flash the firmware onto your ESP01 chip using the Arduino IDE, follow these steps:
108108

109109
1. After cloning this repository, open the file containing the firmware (`ESP01Firmware.ino`) in Arduino IDE.
110110

111111
2. Select the **Generic ESP8266 Module** board from **Tools > Board**.
112112
3. Select the appropriate **COM Port** from **Tools > Port**.
113113
4. Click **Upload** and wait for the sketch to compile and uploading to begin.
114-
5. At this point of time, you should be able to see something like this in the output window:
114+
5. At this point of time, you should be able to see something like this in the output window:
115115
![connecting](docs/images/connecting.png)
116116
6. In order to allow for the firmware to be uploaded, the RESET pin of the ESP-01 chip should be connected to GND only for a short interval of time. Thus, when you see the above output, wait for a short interval (approx. 1s) and then disconnect the RESET pin from GND.
117117
7. Wait for the program to connect to the chip, until you see something like this:
@@ -130,7 +130,32 @@ You can follow the same steps as indicated in the [firmware repository](https://
130130
After flashing the firmware to the board, plug in the ESP-01 chip to the header on the board and you are good to go !
131131

132132

133+
## Building without Arduino IDE
133134

135+
The firmware can be built without installing the Arduino IDE.
134136

137+
### Requirements
135138

139+
- git
140+
- python
141+
- make
136142

143+
### Steps
144+
145+
# Current working directory is pslab-esp01-firmware
146+
# Get the ESP8266 toolchain
147+
git clone https://github.com/esp8266/Arduino esp8266
148+
cd esp8266
149+
git submodule update --init
150+
cd tools
151+
python get.py
152+
cd ../..
153+
export ESP_ROOT=$(readlink -f esp8266)
154+
# Get makefile
155+
git clone https://github.com/plerup/makeEspArduino
156+
# Build
157+
mkdir build
158+
cd build
159+
make -f ../makeEspArduino/makeEspArduino.mk SKETCH=../src/ESP01Firmware/ESP01Firmware.ino BUILD_DIR=.
160+
161+
ESP01Firmware.bin is now built in the build/ directory.

0 commit comments

Comments
 (0)