ESP8266 setup
This page captures our experience beginning to work with esp8266. The very first readings and setting up of the environment to write and run code.
esp8266 datasheet notes
- wifi-adapter via SPI/SDIO or UART
- has memories: flash, cache, sram, rom
- overview, wifi-features: not clear
- memory: iBus, dBus, aMB interface?
- AT firmware: access point (AP) = server, station (STA) = client, can act as BOTH
For the current shell session
export IDF_PATH=$HOME/..../esp_toolchain/ESP8266_RTOS_SDK
export PATH=/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/CrossPack-AVR/bin:/Users/sumeetsharma/Documents/.../esp_toolchain/xtensa-lx106-elf/bin
>> can put above 2 lines in ~/.zshrc (using nano ~/.zshrc) and each time on terminal activate the file by typing ". ~/.zshrc" (note the space after first dot)
To check the serial port number of the esp board, type on command line - ls /dev/*
Nodemcu serial port: /dev/cu.usbserial-0001
To compile and flash the program
- copy the project folder under esp_toolchain folder
- make menuconfig. Update Serial Flasher Config -> Default Serial port -> /dev/cu.usbserial-0001. Save into new config file and exit
- make flash. This will compile and flash the program to the board
- make monitor. To exit - control + ]
No comments:
Post a Comment