Search found 165 matches

by AgentSmithers
Wed Apr 17, 2019 1:51 am
Forum: ESP8266 SDK
Topic: ets_putc and VAlist with PrintF
Replies: 0
Views: 1201

ets_putc and VAlist with PrintF

Anyone know how to get vasprintF to operate? I am trying to hook os_printf() to allow it to pass through multiple functions however I can't seem to get the VA list to render correctly via passing as arg to a nested function.. For my function below I keep getting undefined but when I replace it with ...
by AgentSmithers
Mon Apr 08, 2019 7:26 am
Forum: ESP8266 SDK
Topic: dev 1153 ?
Replies: 8
Views: 1902

Re: dev 1153 ?

Well done! I think I've experienced this before so Ill note it.
by AgentSmithers
Tue Mar 19, 2019 7:14 am
Forum: ESP8266 SDK
Topic: Writing SPI data to Address 0x710fe
Replies: 2
Views: 672

Re: Writing SPI data to Address 0x710fe

So after a bunch of reading of https://www.espressif.com/sites/default/files/documentation/2c-esp8266_non_os_sdk_api_reference_en.pdf and https://www.pjrc.com/teensy/W25Q128FV.pdf Along with debug testing it seems I can pretty much write anywhere I want with any length of bytes as long as its less t...
by AgentSmithers
Mon Mar 18, 2019 12:37 pm
Forum: ESP8266 SDK
Topic: Writing SPI data to Address 0x710fe
Replies: 2
Views: 672

Re: Writing SPI data to Address 0x710fe

May need to adjust my code here but yea looks like there may be a 256 byte segment in the SPI flash? os_printf("stackptr is %x remainder is %u", SPIStackWritePtr, (SPIStackWritePtr % 0x100)); if (SPIStackWritePtr % 0x100 < 4 ) { os_printf("stackptr is %x setting to +%u\r\n", SPIS...
by AgentSmithers
Mon Mar 18, 2019 12:07 pm
Forum: ESP8266 SDK
Topic: Writing SPI data to Address 0x710fe
Replies: 2
Views: 672

Writing SPI data to Address 0x710fe

Hey guys, I wanted to ping you.. I am currently optimizing my SPI write functions to handle writing data to the chip and am running into a snag. Is there a limitation of 4-byte alignment only when crossing a boundary of the memory of the value 0x100? Let me try to rephrase, If I write 6 bytes to the...
by AgentSmithers
Tue Mar 12, 2019 7:41 am
Forum: ESP8266 SDK
Topic: os_malloc and os_zallc HANGs forever and Triggers WDT
Replies: 1
Views: 528

Re: os_malloc and os_zallc HANGs forever and Triggers WDT

I found the issue. After many burned hours I found that a buffer overflow was occurring.. To recreate the WDT issue, Alloc 8 bytes, write 9 then alloc again.. should hang indef due to a boundary pointer more than likely being overwritten.
:(
by AgentSmithers
Sun Mar 10, 2019 7:45 am
Forum: ESP8266 SDK
Topic: os_malloc and os_zallc HANGs forever and Triggers WDT
Replies: 1
Views: 528

os_malloc and os_zallc HANGs forever and Triggers WDT

Hi Everyone, Anyone knows the underlying reason on why or how malloc and zalloc hang when exhausted out of memory vs. returning NULL or failure. It's hanging at that point then the WDT kicks off and if I disable the WDT both Software and Hardware it hangs forever and never returns. I was hoping it j...
by AgentSmithers
Fri Mar 08, 2019 12:28 am
Forum: ESP8266 SDK
Topic: WDT kicked off by OS_PRINTF
Replies: 2
Views: 644

Re: WDT kicked off by OS_PRINTF

To resolve this, avoid recursive functions. I had to craft a while loop to replace my function call with logic that would emulate the function call within the loop. Instead of the function being able to chunk out 60 or so in the work queue it was able to do several 100 before the chip's WDT actually...
by AgentSmithers
Wed Mar 06, 2019 2:43 am
Forum: ESP8266 SDK
Topic: WDT kicked off by OS_PRINTF
Replies: 2
Views: 644

Re: WDT kicked off by OS_PRINTF

So in my function I only allocate one Variable with the char buffer[4] that remains open and called to itself will then allocate another 4 bytes at a time growing in size until the end of the stack is meet then everything is freed. The issue is coming a bit more clear now after adjusting the buffer ...
by AgentSmithers
Tue Mar 05, 2019 7:45 am
Forum: ESP8266 SDK
Topic: WDT kicked off by OS_PRINTF
Replies: 2
Views: 644

WDT kicked off by OS_PRINTF

Hi Everyone! I am having quite a strange issue. I am getting the WDT kicked off when calling a function that transverses and calls itself drilling through nodes. About 20-30 times in on calling itself the function enter and then calls system_soft_wdt_feed to reset the WDT and then does a printf to d...

Go to advanced search