-->
Page 1 of 2

Is there firmware running if I load a sketch w/ Arduino IDE?

PostPosted: Mon May 30, 2016 12:23 am
by jpms
Im trying to understand what is the difference between using the Arduino IDE with the ESP8266 module versus flashing my ESP with Espressif's SDK.

- If I load a sketch through Arduino IDE, is firmware still running in the ESP?
- Where is that firmware sitting? in the flash memory? Is it partitioned?
-If firmware is still in play when using Arduino IDE, how may I invoke AT commands?
- I've seen this command to get the firmware version AT+GMR, but where do I run it if I am using the Arduino IDE?

Would really appreciate if someone dares try to make me understand.

Re: Is there firmware running if I load a sketch w/ Arduino

PostPosted: Tue May 31, 2016 7:14 am
by eduperez
Your sketch is the firmware!!!

The ArduinoIDE just compiles your sketch into some code that is uploaded to the ESP, replacing whatever firmware might have been there previously. The SDK does exactly the same, but instead of compiling an Arduino sketch, it compiles your C code.

AT commands are provided by "the AT firmware"; as soon as you upload your code, that firmware gets deleted, and thus you can no longer use AT commands.

Re: Is there firmware running if I load a sketch w/ Arduino

PostPosted: Sun Jul 10, 2016 12:06 pm
by PaulV888
Hi,

I have a related question, when you look at the flash loader there are 4 pieces of firmware
blank.bin -> Probably nothing to worry about
boot_v1_x.bin -> Is this being used by the Arduino compiled code and should this be up to date?
esp_init_data_default.bin -> Same question here
user1.1024.new.2.bin -> This is the AT code, and is clear it will be overwritten.

Thanks
Paul
(Newbie)

Re: Is there firmware running if I load a sketch w/ Arduino

PostPosted: Sun Jul 17, 2016 12:17 am
by mrburnette
When using as an Arduino, the memory map is:
Code: Select allThe following diagram illustrates flash layout used in Arduino environment:

|--------------|-------|---------------|--|--|--|--|--|
^              ^       ^               ^     ^
Sketch    OTA update   File system   EEPROM  WiFi config (SDK)


See: https://github.com/esp8266/Arduino/blob/master/doc/filesystem.md#flash-layout

Ray