-->
Page 13 of 14

Re: Official GCC compiler VM from Espressif

PostPosted: Mon Oct 17, 2016 8:06 am
by Narasing
RichardS wrote:Official GCC compiler VM from Espressif

https://drive.google.com/folderview?id= ... sp=sharing (be warned 950M download!)

Runs on VirtualBox-4.3.12-93733

Just downloading now, will report soon.

Richard.



which serial monitor should i use in Lubuntu for testing purpose.

Thanks.

Re: Official GCC compiler VM from Espressif

PostPosted: Mon Oct 17, 2016 9:49 am
by Narasing
davydnorris wrote:
Narasing wrote:code uploaded succeeds but ESP8266 (NodeMCU) doesn't run for ESP8266_RTOS_SDK v1.4.0


--
I'm trying to run blinking LED program using ESP8266_RTOS_SDK on LUBUNTU by espressif.
program link-->https://github.com/sarwadenj/ESP8266_RTOS/tree/master/test_2
also i written another program and set WiFi in station mode--->https://github.com/sarwadenj/ESP8266_RTOS/blob/master/wifi/user/user_main.c

I compiled my program using
./gen_misc.sh
and set
STEP 1: use boot_v1.2+ by default
STEP 2: generate bin: user1.bin
STEP 3: spi speed: 40 MHz
STEP 4: spi mode: QIO
STEP 5: spi size: 4096KB
spi ota map: 1024KB + 1024KB

and uploaded code going into Bin_path-->
sudo esptool.py --port /dev/ttyUSB0 write_flash --flash_mode qio 0x2000 user1.4096.new.6.bin

it uploaded successfully but code didn't run. So what should be the problem. is I'm missing something.

Is there any solution for this?
Thanks in advance.


Couple of things spring out...

- If your chip is 4M then you need to specify its size as 32m (32m BIT) on the esptool command line.
- you also need to load your user1 at 0x1000, esp_init_data_default.bin at 0x3FC000, and blank.bin at both 0xFE000 and 0x3FE000


hi @davydnorris ,i added things as said by you,
After compilation-->
SDK_PATH: /home/esp8266/Desktop/VISHAL/RTOS_SDK
BIN_PATH: /home/esp8266/Desktop/VISHAL/RTOS_SDK/bin/upgrade

bin crc: 771faa7f
Support boot_v1.2 and +
Generate user1.4096.new.4.bin successully in BIN_PATH
boot.bin------------>0x00000
user1.4096.new.4.bin--->0x01000
!!!

for uploading by different way i'm getting,

esp8266@esp8266-VirtualBox:~/Desktop/VISHAL/RTOS_SDK/bin$ sudo esptool.py --port /dev/ttyUSB0 write_flash --flash_mode qio --flash_size 32m 0x1000 user1.4096.new.4.bin 0x3FC000 esp_init_data_default.bin 0xFE000 blank.bin 0x3FE000 blank.bin
esptool.py v1.1
Connecting...

A fatal error occurred: Failed to connect to ESP8266



also
esp8266@esp8266-VirtualBox:~/Desktop/VISHAL/RTOS_SDK/bin$ sudo esptool.py --port /dev/ttyUSB0 write_flash --flash_mode qio --flash_size 32m 0x1000 user1.4096.new.4.bin 0x3FC000 esp_init_data_default.bin 0xFE000 blank.bin 0x3FE000 blank.bin
esptool.py v1.1
Connecting...
Running Cesanta flasher stub...
Writing 286720 @ 0x1000...
A fatal error occurred: Timed out waiting for packet header


these type of error i'm getting please guide me to solve these issue.
Thanks.

Re: Official GCC compiler VM from Espressif

PostPosted: Mon Oct 24, 2016 7:31 am
by davydnorris
Narasing wrote:
hi @davydnorris ,i added things as said by you,
After compilation-->
SDK_PATH: /home/esp8266/Desktop/VISHAL/RTOS_SDK
BIN_PATH: /home/esp8266/Desktop/VISHAL/RTOS_SDK/bin/upgrade

bin crc: 771faa7f
Support boot_v1.2 and +
Generate user1.4096.new.4.bin successully in BIN_PATH
boot.bin------------>0x00000
user1.4096.new.4.bin--->0x01000
!!!

for uploading by different way i'm getting,

esp8266@esp8266-VirtualBox:~/Desktop/VISHAL/RTOS_SDK/bin$ sudo esptool.py --port /dev/ttyUSB0 write_flash --flash_mode qio --flash_size 32m 0x1000 user1.4096.new.4.bin 0x3FC000 esp_init_data_default.bin 0xFE000 blank.bin 0x3FE000 blank.bin
esptool.py v1.1
Connecting...

A fatal error occurred: Failed to connect to ESP8266



also
esp8266@esp8266-VirtualBox:~/Desktop/VISHAL/RTOS_SDK/bin$ sudo esptool.py --port /dev/ttyUSB0 write_flash --flash_mode qio --flash_size 32m 0x1000 user1.4096.new.4.bin 0x3FC000 esp_init_data_default.bin 0xFE000 blank.bin 0x3FE000 blank.bin
esptool.py v1.1
Connecting...
Running Cesanta flasher stub...
Writing 286720 @ 0x1000...
A fatal error occurred: Timed out waiting for packet header


these type of error i'm getting please guide me to solve these issue.
Thanks.


OK so these errors look like a problem actually connecting to the serial port in both cases. You will need to solve the problem with the connection first.

- check you are connecting to the right port. Is your flash port USB0?
- you may want to put a speed on the command line too. There are command line options for that
- I had similar problems and I downloaded the flash tool from Espressif, which has a UI so it makes it easier to see what is happening

Re: Official GCC compiler VM from Espressif

PostPosted: Thu Mar 09, 2017 9:29 am
by markjuggles
What is the root password? The README file gives the password for the esp8266 user two times. It is "espressif" but this is not the root password. It might not matter if the esp8266 user was a member of sudoers but as it is, the network settings cannot be changed, no packages can be added, etc.

My plan was to add an editor, install git, and set up the network proxy so that the VM could access github.