-
Notifications
You must be signed in to change notification settings - Fork 2.1k
ESP8266 does not respond #15137
Copy link
Copy link
Closed
Labels
Type: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)
Milestone
Description
Hello I am new to the RIOT OS. I can't get my ESP8266 working.
Description
After succesful flash there is no communication with ESP8266
Steps to reproduce the issue
main.c
#include <stdio.h>
#include "xtimer.h"
int main(void)
{
puts("setup");
while(1){
puts("loop");
xtimer_sleep(1);
}
return 0;
}
Makefile
APPLICATION = test
BOARD ?= esp8266-esp-12x
RIOTBASE ?= /home/ubuntu/RIOT
USEMODULE += xtimer
USEMODULE += esp_spiffs
include $(RIOTBASE)/Makefile.include
make flash term
Expected results
setup, loop, loop, ...
Actual results
ubuntu@ubutnu-VirtualBox:~/project/esp8266-1$ make flash term
Building application "test" for "esp8266-esp-12x" with MCU "esp8266".
"make" -C /home/ubuntu/RIOT/pkg/spiffs
"make" -C /home/ubuntu/RIOT/build/pkg/spiffs/src -f /home/ubuntu/RIOT/Makefile.base MODULE=spiffs
"make" -C /home/ubuntu/RIOT/boards/esp8266-esp-12x
"make" -C /home/ubuntu/RIOT/boards/common/esp8266
"make" -C /home/ubuntu/RIOT/core
"make" -C /home/ubuntu/RIOT/cpu/esp8266
"make" -C /home/ubuntu/RIOT/cpu/esp8266/freertos
"make" -C /home/ubuntu/RIOT/cpu/esp8266/periph
"make" -C /home/ubuntu/RIOT/cpu/esp8266/sdk
"make" -C /home/ubuntu/RIOT/cpu/esp8266/vendor
"make" -C /home/ubuntu/RIOT/cpu/esp8266/vendor/esp-idf
"make" -C /home/ubuntu/RIOT/cpu/esp8266/vendor/esp-idf/esp8266/source
"make" -C /home/ubuntu/RIOT/cpu/esp8266/vendor/esp-idf/nvs_flash/src
"make" -C /home/ubuntu/RIOT/cpu/esp8266/vendor/esp-idf/spi_flash
"make" -C /home/ubuntu/RIOT/cpu/esp8266/vendor/esp-idf/util/src
"make" -C /home/ubuntu/RIOT/cpu/esp8266/vendor/esp-idf/wpa_supplicant
"make" -C /home/ubuntu/RIOT/cpu/esp8266/vendor/esp-idf/wpa_supplicant/src/crypto
"make" -C /home/ubuntu/RIOT/cpu/esp_common
"make" -C /home/ubuntu/RIOT/cpu/esp_common/freertos
"make" -C /home/ubuntu/RIOT/cpu/esp_common/periph
"make" -C /home/ubuntu/RIOT/cpu/esp_common/vendor
"make" -C /home/ubuntu/RIOT/cpu/esp_common/vendor/xtensa
"make" -C /home/ubuntu/RIOT/drivers
"make" -C /home/ubuntu/RIOT/drivers/mtd
"make" -C /home/ubuntu/RIOT/drivers/periph_common
"make" -C /home/ubuntu/RIOT/pkg/spiffs/fs
"make" -C /home/ubuntu/RIOT/sys
"make" -C /home/ubuntu/RIOT/sys/auto_init
"make" -C /home/ubuntu/RIOT/sys/div
"make" -C /home/ubuntu/RIOT/sys/log
"make" -C /home/ubuntu/RIOT/sys/luid
"make" -C /home/ubuntu/RIOT/sys/newlib_syscalls_default
"make" -C /home/ubuntu/RIOT/sys/ps
"make" -C /home/ubuntu/RIOT/sys/random
"make" -C /home/ubuntu/RIOT/sys/random/tinymt32
"make" -C /home/ubuntu/RIOT/sys/stdio_uart
"make" -C /home/ubuntu/RIOT/sys/vfs
"make" -C /home/ubuntu/RIOT/sys/xtimer
text data bss dec hex filename
275952 5024 29056 310032 4bb10 /home/ubuntu/project/esp8266-1/bin/esp8266-esp-12x/test.elf
/home/ubuntu/RIOT/dist/tools/esptool/esptool.py --chip esp8266 elf2image --flash_mode dout --flash_size 1MB --flash_freq 26m --version 3 -o /home/ubuntu/project/esp8266-1/bin/esp8266-esp-12x/test.elf.bin /home/ubuntu/project/esp8266-1/bin/esp8266-esp-12x/test.elf; printf "\n" > /home/ubuntu/project/esp8266-1/bin/esp8266-esp-12x/partitions.csv; printf "nvs, data, nvs, 0x9000, 0x6000\n" >> /home/ubuntu/project/esp8266-1/bin/esp8266-esp-12x/partitions.csv; printf "phy_init, data, phy, 0xf000, 0x1000\n" >> /home/ubuntu/project/esp8266-1/bin/esp8266-esp-12x/partitions.csv; printf "factory, app, factory, 0x10000, " >> /home/ubuntu/project/esp8266-1/bin/esp8266-esp-12x/partitions.csv; ls -l /home/ubuntu/project/esp8266-1/bin/esp8266-esp-12x/test.elf.bin | awk '{ print $5 }' >> /home/ubuntu/project/esp8266-1/bin/esp8266-esp-12x/partitions.csv; python3 /home/ubuntu/RIOT/dist/tools/esptool/gen_esp32part.py --verify /home/ubuntu/project/esp8266-1/bin/esp8266-esp-12x/partitions.csv /home/ubuntu/project/esp8266-1/bin/esp8266-esp-12x/partitions.bin
esptool.py v2.4.0
Parsing CSV input...
/home/ubuntu/RIOT/dist/tools/esptool/esptool.py --chip esp8266 --port /dev/ttyUSB0 --baud 460800 --before default_reset write_flash -z --flash_mode dout --flash_freq 26m 0x0000 /home/ubuntu/RIOT/cpu/esp8266/bin/bootloader.bin 0x8000 /home/ubuntu/project/esp8266-1/bin/esp8266-esp-12x/partitions.bin 0x10000 /home/ubuntu/project/esp8266-1/bin/esp8266-esp-12x/test.elf.bin
esptool.py v2.4.0
Connecting....
Chip is ESP8266EX
Features: WiFi
MAC: 50:02:91:fd:8a:1b
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0341
Compressed 9344 bytes to 6292...
Wrote 9344 bytes (6292 compressed) at 0x00000000 in 0.1 seconds (effective 503.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 85...
Wrote 3072 bytes (85 compressed) at 0x00008000 in 0.0 seconds (effective 3507.3 kbit/s)...
Hash of data verified.
Compressed 281056 bytes to 193363...
Wrote 281056 bytes (193363 compressed) at 0x00010000 in 4.4 seconds (effective 516.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
/home/ubuntu/RIOT/dist/tools/pyterm/pyterm -p "/dev/ttyUSB0" -b "115200"
Twisted not available, please install it if you want to use pyterm's JSON capabilities
2020-10-01 10:33:36,091 # Connect to serial port /dev/ttyUSB0
Welcome to pyterm!
Type '/exit' to exit.
Versions
Operating system: Windows 10 -> VM Virtual Box -> Ubuntu 20.04.1
I followed this guide
Everything went ok except installing coccinelle which I added from ppa. and python-serial which i used python3-serial instead
I tried both toolchain installation(riotdocker, manual) with same result
Before ESP8266 I tried arduino nano that is working fine.
ubuntu@ubutnu-VirtualBox:~/RIOT$ make print-versions
Operating System Environment
----------------------------
Operating System: "Ubuntu" "20.04.1 LTS (Focal Fossa)"
Kernel: Linux 5.4.0-48-generic x86_64 x86_64
System shell: /usr/bin/dash (probably dash)
make's shell: /usr/bin/dash (probably dash)
Installed compiler toolchains
-----------------------------
native gcc: gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
arm-none-eabi-gcc: missing
avr-gcc: avr-gcc (GCC) 5.4.0
mips-mti-elf-gcc: missing
msp430-elf-gcc: missing
riscv-none-elf-gcc: missing
riscv64-unknown-elf-gcc: missing
riscv-none-embed-gcc: missing
xtensa-esp32-elf-gcc: missing
xtensa-esp8266-elf-gcc: xtensa-esp8266-elf-gcc (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a5) 5.2.0
clang: missing
Installed compiler libs
-----------------------
arm-none-eabi-newlib: missing
mips-mti-elf-newlib: missing
msp430-elf-newlib: missing
riscv-none-elf-newlib: missing
riscv64-unknown-elf-newlib: missing
riscv-none-embed-newlib: missing
xtensa-esp32-elf-newlib: missing
xtensa-esp8266-elf-newlib: "2.2.0"
avr-libc: "2.0.0" ("20150208")
Installed development tools
---------------------------
ccache: missing
cmake: missing
cppcheck: Cppcheck 1.90
doxygen: 1.8.17
git: git version 2.25.1
make: GNU Make 4.2.1
openocd: missing
python: Python 2.7.18rc1
python2: Python 2.7.18rc1
python3: Python 3.8.2
flake8: 3.7.9 (mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1) CPython 3.8.2 on Linux
coccinelle: spatch version 1.0.8 compiled with OCaml version 4.08.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)