1) Download the required tools
a) Download the Lubuntu VirtualBox image which is provided by Espressif.
(Provide compiler tool-chain already)
b) Download the latest SDK.
c) Download the FLASH programming tools. (For Windows)
2) According to the readme file, copy the SDK to the share folder.
e.g. Place in D:\Share
After that, setup the share folder path in VirtualBox (D:\Share <-> Share).
VBoxImage default username: esp8266
VBoxImage default password: espressif
{SDK} means ~/Share/esp_iot_sdk_v1.3.0
3) Copy {SDK}/examples/at/ to {SDK}/app/
4) In {SDK}/app/user/user_main.c
modify to
void ICACHE_FLASH_ATTR
at_testCmdTest(uint8_t id)
{
uint8 buffer[32] = {0};
os_sprintf(buffer, "%s\r\n", "my at_testCmdTest");
at_port_print(buffer);
at_response_ok();
}
4) cd {SDK}/app/
5) ./gen_misc.sh
Select below options:
boot_v1.2+
user1.bin
spi speed: default
spi mode: default
spi size and map: 1024KB( 512KB+ 512KB)
6) Download the user1.1024.new.?.bin to the FLASH ---> 0x1000
7) Try to run AT+TEST=? in CuteCOM.
it should return my at_testCmdTest.