So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By ilian53
#68783 Hello, i posted yesterday about my code not running. Today i'm having almost the same issue.

I have WeMos D1 mini and i'm doing all of this on ubuntu 16.04

I have created an upload script with bash:
Code: Select all#!/bin/bash
esptool.py --port /dev/ttyUSB0 --baud 115200 erase_flash
esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash -fm dio -fs 4MB 0x00000 eagle.flash.bin 0x20000 eagle.irom0text.bin


The C code i'm using is here: https://pastebin.com/Y3drXr5k

The upload and everything is successful, but after it's complete the LED on the chip starts blinking erratically. This happens even though i've set it to swap outputs every 5 seconds. I have also tried uploading the blank.bin on 0x7E000

Same happens when i try to compile and run the WiFi demo from the RTOS SDK

The difference between this topic and my last one is that i'm using -fm dio, as in Flash Method DIO, i also select the DIO option when compiling the code.

The chip is not broken because every code i've ran through the Arduino IDE has worked so far, my only problems come from trying to upload the RTOS or NONOS code i compile using esptool.py

Anyone have any idea what's wrong?