Chat freely about anything...

User avatar
By BitBanger
#8124 Well I anxiously downloaded this new version and loaded it into an ESP-01 module. When I reset the module it only tx's the usual "trash" but then locked up. It never got "ready". I reflashed my module with the version I had been running, v0.9.4_14_12_19. I then attempted a "cloud" update with AT+CIUPDATE.
I saw the messages:
+CIPUPDATE:1
+CIPUPDATE:2
+CIPUPDATE:3
+CIPUPDATE:4

Then there was a pause of about 30 seconds, then the module rebooted. I then performed the cloud update to this version on two additional modules.

It worked flawlessly for me. I've been testing for about an hour and everything I've tried seems to work properly.

BB
User avatar
By pvvx
#8135 3) RTC_RAM 0x60001000 1kbytes.
system_rtc_mem_write/system_rtc_mem_read use 768 bytes at 0x60001040.
"2C-SDK-Espressif IoT SDK Programming Guide_v0.9.5.pdf" : Only “user data” area can be used by user. des_addr >=64 (next 512 bytes).
espconn_tcp_set_max_con write dword 0x600011FC (des_addr rtc_mem = 109), deep_sleep write 0x600011F8 (des_addr rtc_mem = 108), ... :D :lol:
The first 64 des_addr half-empty...
Espressif has no information on his chip and do not have the funds to hire a normal programmer? :shock:
User avatar
By Athena
#8214
pvvx wrote:Errors:
1) system_print_meminfo();
data : 0x3ffe8000 ~ 0x3ffe8aa0, len: 2720
rodata: 0x3ffe8aa0 ~ 0x3ffea258, len: 6072
bss : 0x3ffea258 ~ 0x3fff20f0, len: 32408
heap : 0x3fffc000 ~ 0x9f10, len: 1073684720
(heap-size) 0x3fffc000-0x9f10=1073684720 :)
2) WiFi AP struct: uint8 beacon_interval; // Note: support 100 ~ 60000 ms, default 100
byte = 60000 :)
3) more errors .... :)

Give SDK 0.9.5. patch!


:oops: :oops: :oops:
Yes... You got us .. Here is the patch http://bbs.espressif.com/viewtopic.php?f=5&t=154&p=557#p557

And RTC memory is 4Bytes as a count .. 64 means 64 X 4 =256 bytes..

Thanks for your interest in ESP8266 !
User avatar
By pvvx
#8235
Athena wrote:And RTC memory is 4Bytes as a count .. 64 means 64 X 4 =256 bytes..

For users - the following 512 bytes for "system area" of 256 bytes.
108*4 = 432. 0x60001048 + 432 = 0x600011F8 :)
espconn_tcp_set_max_con write dword 0x600011FC (des_addr rtc_mem = 109), deep_sleep write 0x600011F8 (des_addr rtc_mem = 108)?
Code: Select allsint8 ICACHE_FLASH_ATTR espconn_tcp_set_max_con(uint8 num)
{
   if ((num == 0) || (num > 5)) // corrected PV` -> remot_info premot[5] -> max 5!!!
      return ESPCONN_ARG;

   MEMP_NUM_TCP_PCB = num;
   return ESPCONN_OK;
}

ASM (liblwip.a):

espconn_tcp_set_max_con:

   beqz.n   a2, _38f
   l32r   a3, 37c ; [0x60000e00]
   memw
   s32i   a2, a3, 0x3fc ; 0x60000e00+0x3fc = 0x600011FC
   movi.n   a2, 0
   ret.n
_38f:
   movi.n   a2, -12
   ret.n

lwipopts.h:
Code: Select all/**
 * MEMP_NUM_TCP_PCB: the number of simulatenously active TCP connections.
 * (requires the LWIP_TCP option)
 */
#ifndef MEMP_NUM_TCP_PCB
#define MEMP_NUM_TCP_PCB                (*(volatile uint32*)0x600011FC)
#endif

and more errors....
Give SDK 0.9.5. patch2! patch3! patch4! ... :lol:
Attachments
rtc_ram.gif