make clean
./gen_misc_plus.sh 1
make clean
./gen_misc_plus.sh 2
I'm travelling at the moment, so i have no access to my files, but i'll post my examples when i'm back this weekend.
/bananis
Explore... Chat... Share...
#!/bin/bash -x
cd /SDK/app
#rm ./user/.output/eagle/debug/lib/libuser.a
touch user_main.c
make APP=$1
if [ $? == 0 ];then
rm ../bin/upgrade/user$1.bin ../bin/upgrade/user$1.dump ../bin/upgrade/user$1.S
cd E:/cygwin/SDK/app/.output/eagle/debug/image/
/SDK/xtensa/bin/xtensa-lx106-elf-objdump -x -s eagle.app.v6.out > ../../../../../bin/upgrade/user$1.dump
/SDK/xtensa/bin/xtensa-lx106-elf-objdump -S eagle.app.v6.out > ../../../../../bin/upgrade/user$1.S
#/SDK/xtensa/bin/xtensa-lx106-elf-objdump -x -s eagle.app.v6.out > user$1.dump
#/SDK/xtensa/bin/xtensa-lx106-elf-objdump -S eagle.app.v6.out > user$1.S
/SDK/xtensa/bin/xtensa-lx106-elf-objcopy --only-section .text -O binary eagle.app.v6.out eagle.app.v6.text.bin
/SDK/xtensa/bin/xtensa-lx106-elf-objcopy --only-section .data -O binary eagle.app.v6.out eagle.app.v6.data.bin
/SDK/xtensa/bin/xtensa-lx106-elf-objcopy --only-section .rodata -O binary eagle.app.v6.out eagle.app.v6.rodata.bin
/SDK/xtensa/bin/xtensa-lx106-elf-objcopy --only-section .irom0.text -O binary eagle.app.v6.out eagle.app.v6.irom0text.bin
//Below is the custom function BY CM
void ICACHE_FLASH_ATTR
at_setupCmdCiupdate_CUSTOM(uint8_t id,char *pPara)
{
char temp[64];
char ipTemp[64];
char field[4];
char len;
uint32 _ip;
pespconn = (struct espconn *)os_zalloc(sizeof(struct espconn));
pespconn->type = ESPCONN_TCP;
pespconn->state = ESPCONN_NONE;
pespconn->proto.tcp = (esp_tcp *)os_zalloc(sizeof(esp_tcp));
pespconn->proto.tcp->local_port = espconn_port();
pespconn->proto.tcp->remote_port = 80;
// UPDATE_CUSTOM=TRUE;
specialAtState = FALSE;
pPara++;
len = at_dataStrCpy(ipTemp, pPara, 20);
_ip = ipaddr_addr(ipTemp);
os_memcpy(&field, &_ip, 4);
//os_sprintf(temp,"%d,%d,%d,%d\r\n",field[0],field[1],field[2],field[3]);
// uart0_sendStr(temp);
if(host_ip.addr == 0 )
{
//os_memcpy(&pespconn->proto.tcp->remote_ip, &_ip, 4);
*((uint8 *) &pespconn->proto.tcp->remote_ip) = field[0];//192; //Host IP = 192.168.0.178
*((uint8 *) &pespconn->proto.tcp->remote_ip + 1) = field[1];//168;
*((uint8 *) &pespconn->proto.tcp->remote_ip + 2) = field[2];//0;
*((uint8 *) &pespconn->proto.tcp->remote_ip + 3) = field[3];//178;
espconn_regist_connectcb(pespconn, at_upDate_connect_cb);
espconn_regist_reconcb(pespconn, at_upDate_recon_cb);
espconn_connect(pespconn);
}
}
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]