Search found 52 matches

by dkinzer
Fri Feb 19, 2016 12:18 am
Forum: ESP8266 SDK
Topic: Linking Libraries to Flash ICACHE_FLASH_ATTR
Replies: 4
Views: 3541

Re: Linking Libraries to Flash ICACHE_FLASH_ATTR

You can write a different linker script that will force code from specific libraries into the Flash section. Go look at the Arduino code base where they use the technique to ensure that library routines are in Flash.
by dkinzer
Wed Dec 16, 2015 11:51 pm
Forum: ESP8266 SDK
Topic: GPIO16 and setting RST line
Replies: 3
Views: 8824

Re: GPIO16 and setting RST line

Could anyone help me with some code to set GPIO16 low For future reference, the Arduino-ESP8266 code is a good place to begin researching how to accomplish something on the ESP8266. To use GPIO16, you must map it to be an I/O pin somewhere in your initialization: uint32_t val; // map GPIO16 as an I...
by dkinzer
Wed Nov 18, 2015 11:49 pm
Forum: ESP8266 SDK
Topic: how to config the spiffs and put a html file in the spi flash?
Replies: 4
Views: 8074

Re: how to config the spiffs and put a html file in the spi flash?

2MB is this means the spiffs file system size or the actual flash IC capacity ? I forgot to show how I mount the SPIFFS. #define LOG_PAGE_SIZE 256 #define FLASH_SECTOR_SIZE 4096 static s32_t flash_read(u32_t addr, u32_t size, u8_t *dst); static s32_t flash_write(u32_t addr, u32_t size, u8_t *src); ...
by dkinzer
Wed Nov 18, 2015 12:23 am
Forum: ESP8266 SDK
Topic: how to config the spiffs and put a html file in the spi flash?
Replies: 4
Views: 8074

Re: how to config the spiffs and put a html file in the spi flash?

I am using RTOS SDK which supply spiffs.h there are some parameters should be configed before we using spiffs I would recommend looking at some code that uses SPIFFS, e.g. nodemcu. I use SPIFFS in my code but I use the SINGLETON mode where the configuration parameters are specified in spiffs_config...
by dkinzer
Mon Nov 16, 2015 9:21 am
Forum: ESP8266 SDK
Topic: RTC Interrupt Handling
Replies: 2
Views: 2899

Re: RTC Interrupt Handling

Is it possible that the RTC interrupt is beign "interrupted" by another one (some other ESP8266 task)? The ESP has non-maskable interrupts. These can interrupt "normal" interrupt service routines even if interrupts are disabled. I've see discussion of a method to block non-maska...
by dkinzer
Sun Nov 15, 2015 1:09 am
Forum: ESP8266 SDK
Topic: RTOS_SDK V1.3 do not fit my code any more
Replies: 14
Views: 14912

Re: RTOS_SDK V1.3 do not fit my code any more

MEMORY { dport0_0_seg : org = 0x3FF00000, len = 0x10 dram0_0_seg : org = 0x3FFE8000, len = 0x14000 iram1_0_seg : org = 0x40100000, len = 0x8000 irom0_0_seg : org = 0x40210000, len = 0x7C000 } You should change the length of irom0_0_seg to 0x6c000. As it is, the linker script would allow the irom0 s...
by dkinzer
Thu Oct 08, 2015 11:13 pm
Forum: ESP8266 SDK
Topic: Interrupts and sdk func
Replies: 8
Views: 5683

Re: Interrupts and sdk func

But it is an SDK Function that may be also cached from rom. I will give it a try. It isn't. And, by the way, it isn't necessary to just blindly try something. As I mentioned you can generate a .sym file and confirm with certainty whether a particular function (SDK or otherwise) is in .irom0.text. T...
by dkinzer
Thu Oct 08, 2015 3:34 am
Forum: ESP8266 SDK
Topic: Interrupts and sdk func
Replies: 8
Views: 5683

Re: Interrupts and sdk func

is it allowed to use sdk functions (os_malloc, strcpy) in interrupts (GPIO)? In an ISR, it is not allowed to call a function, either directly or indirectly, that resides in .irom0.text. If you are unsure where a function is located, consult the .sym file (which can be generated from the .elf file b...
by dkinzer
Sat Oct 03, 2015 11:16 pm
Forum: ESP8266 SDK
Topic: Why is RTC timer lost during deep sleep?
Replies: 10
Views: 11387

Re: Why is RTC timer lost during deep sleep?

tve wrote:is it expected that after a deep sleep system_get_rst_info->reason == REASON_EXT_SYS_RST and not REASON_DEEP_SLEEP_AWAKE ?
That is a bug in v1.3.0 (and probably earlier) of the SDK. It was fixed in a special build of v1.3.0 but I haven't checked to see if the correction made it into v1.4.0.
by dkinzer
Sat Oct 03, 2015 5:54 am
Forum: ESP8266 SDK
Topic: Meaning of ICACHE_FLASH_ATTR
Replies: 19
Views: 21714

Re: Meaning of ICACHE_FLASH_ATTR

eriksl wrote:You never know what IRAM-bound functions (including in the SDK!) call these functions and cause unexpected crashes. I've been there.
What were the circumstances? What ISR and what function(s)?

Go to advanced search