Flashing AT Command

Roger
Posts: 2
Joined: Wed Apr 05, 2017 12:27 am

Flashing AT Command

Postby Roger » Wed Apr 05, 2017 12:43 am

A couple of questions

(1) In the Download Tool V3.4.4 what is:
(a) Device Master Key?
(b) the correct setting for the SPI Mode on the WROOM-02?
(c) the Xtal frequency and SPI speed on the WROOM-02?

(2) In the ESP8266 NONOS_SDK V2.0.0_16_08_10
(a) There are 2 folders "at" and "at_sdio". I assume at_sdio uses the SIO port for I/O instead of the UART?
(b) Where is the documentation about how to use the SIO port for AT commands?
(c) In the file at/readme.md it says #BOOT MODE and #NON-BOOT MODE. What is the difference between these modes?
(d) In the file at/readme.md it shows how it can be flashed OTA. How do you tell it which of at or at sdio you want to be flashed?
(e) When using the flash tool, the 4 files mentioned i.e. boot,,,, user,,,, esp_init.... blank.... are sufficient to flash the device?

Thanks in advance --- Roger

User avatar
pratik
Posts: 361
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: Flashing AT Command

Postby pratik » Wed Apr 05, 2017 2:09 pm

(1) In the Download Tool V3.4.4 what is:
(a) Device Master Key?
> You may ignore the field (leave it as it is) right now. It is not a functional official feature as of right now. We will update on it soon.
(b) the correct setting for the SPI Mode on the WROOM-02?
> You may go for QIO mode on this one. DIO will work on pretty much every module.
(c) the Xtal frequency and SPI speed on the WROOM-02?
> The crystal frequency is 26 MHz

(2) In the ESP8266 NONOS_SDK V2.0.0_16_08_10
(a) There are 2 folders "at" and "at_sdio". I assume at_sdio uses the SIO port for I/O instead of the UART?
> Yes, at is for UART based communication, and at_sdio for SDIO based systems.
(b) Where is the documentation about how to use the SIO port for AT commands?
> The SDIO based system uses the same commands as the UART mode. The SDIO interface is an international standard and therefore, there is no specific device-level documentation required. You may refer to standard SDIO rev.2.0 documentation.
(c) In the file at/readme.md it says #BOOT MODE and #NON-BOOT MODE. What is the difference between these modes?
> Boot mode is when you use user1.bin and user2.bin and that helps implement online updates for ESP8266. In non-boot mode, there is no provision for supplying online updates to firmware over WiFi. Please refer to the FAQ and Getting Started Guide for more information:
http://www.espressif.com/products/hardware/esp8266ex/
(d) In the file at/readme.md it shows how it can be flashed OTA. How do you tell it which of at or at sdio you want to be flashed?
> Please use the UPDATE AT command for updating the flash OTA. The firmware knows which type it is (set at the time of compiling) and boot.bin handles the stuff that determines how to proceed with flashing an update.
(e) When using the flash tool, the 4 files mentioned i.e. boot,,,, user,,,, esp_init.... blank.... are sufficient to flash the device?
> Yes, boot BIN manages booting and flash updates. User BIN is the main application BIN (user1 and user2 are updated alternatively, so that the device is not bricked if a flash update fails without properly completing. One of the BINs is definitely reliable at all times). Init BIN contains initialization parameters and blank BIN is used to erase some sectors that store application information.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Roger
Posts: 2
Joined: Wed Apr 05, 2017 12:27 am

Re: Flashing AT Command

Postby Roger » Thu May 11, 2017 11:16 pm

Hello Pratik,

Thanks for your very helpful reply, sorry I am late replying!

I have a few other questions maybe you could answer for me:
1. What's the different between BOOT and NON-BOOT binaries. I know one difference is NON-BOOT doesn't implement AT+CIUPDATE, what are other differences and how do you find out about them?
2. Expressif flash tool shows the flash size (on WROOM-02 module) as 32M when it is only 16M ??
3. What's the difference between the 16Mbit and the 16Mbit-C1 binaries and how do you decide which to use? Where does it discuss this in Expressif docs?
4. I have flashed user1......bin. When is user2....bin used? Where does it discuss this in Expressif docs?
5. Is there a list of all the possible responses to AT commands, with various errors I sometimes see new ones. If this is to be used as the heart of an application we need to know all responses so they can be recognised and acted upon.

Thanks in advance... Roger

Her Majesty
Posts: 86
Joined: Mon Oct 27, 2014 11:09 am

Re: Flashing AT Command

Postby Her Majesty » Fri May 12, 2017 9:49 am

Here is the documentations http://www.espressif.com/en/support/download/documents.
I think most of your questions can be answered in the documentation.
Maybe you can start with the ESP8266 SDK Getting Started Guide.

User avatar
pratik
Posts: 361
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: Flashing AT Command

Postby pratik » Sun May 14, 2017 8:58 pm

Right.
Please read all the documentations, especially the nonOS API reference, and the Getting Started Guide.
Even if you do not understand everything the first time, I suggest reading the document fully at least 3-4 times. Then you will be able to get the bigger picture and understand the whole system. :)
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Who is online

Users browsing this forum: Google [Bot] and 2 guests