Search found 3 matches
- Mon Apr 15, 2019 7:13 pm
- Forum: General Discussion
- Topic: Static variable (NVS handle) in a file getting overwritten
- Replies: 1
- Views: 2827
Static variable (NVS handle) in a file getting overwritten
I am initializing and using a file static nvs handle for getting and setting variables. static nvs_handle xNvsHandle; void vInitNVS() { esp_err_t err = nvs_flash_init(); if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) { ESP_ERROR_CHECK(nvs_flash_erase()); ESP_ERROR_CHEC...
- Thu Feb 07, 2019 5:28 am
- Forum: General Discussion
- Topic: Api usage in IRAM_ATTR interrupts
- Replies: 3
- Views: 6911
Re: Api usage in IRAM_ATTR interrupts
Thanks for the reply.
My question was specific to interrupts allocated using ESP_INTR_FLAG_IRAM.
So it seems like even other important functions such as memset or more importantly xQueueSendToBackFromISR cannot be used?
If yes, this does seem to limit the functionality of such ISRs quite a bit.
My question was specific to interrupts allocated using ESP_INTR_FLAG_IRAM.
So it seems like even other important functions such as memset or more importantly xQueueSendToBackFromISR cannot be used?
If yes, this does seem to limit the functionality of such ISRs quite a bit.
- Thu Feb 07, 2019 1:22 am
- Forum: General Discussion
- Topic: Api usage in IRAM_ATTR interrupts
- Replies: 3
- Views: 6911
Api usage in IRAM_ATTR interrupts
In one of the timer examples, the following is mentioned before an ISR definition: * Note: * We don't call the timer API here because they are not declared with IRAM_ATTR. * If we're okay with the timer irq not being serviced while SPI flash cache is disabled, * we can allocate this interrupt withou...