Search found 300 matches

by jcsbanks
Sat Aug 18, 2018 3:32 pm
Forum: ESP32 IDF
Topic: Avoiding race condition between interrupt on one core and task on the other core
Replies: 5
Views: 1912

Re: Avoiding race condition between interrupt on one core and task on the other core

Interestingly, when I try this, I get an assert "coreID == mux->owner" failed when doing vPortCPUReleaseMutex with tasks distributed between the cores. This suggests that it is not core safe? On a side note, I'd also got caught out by a race between the cores when using the high resolution timer to ...
by jcsbanks
Wed Aug 15, 2018 10:21 am
Forum: ESP32 IDF
Topic: Including source in subdirectory tree - had a working solution, now I've broken it :)
Replies: 2
Views: 1289

Re: Including source in subdirectory tree - had a working solution, now I've broken it :)

Thanks @ESP_Angus. COMPONENT_SRCDIRS := $(shell find $(COMPONENT_PATH)/src -type d -printf 'src/%P ') Result: COMPONENT_SRCDIRS=src/ src/SeedKey src/SeedKey/MED17 src/SeedKey/MED17/1.1 src/SeedKey/MED17/8.3 The C++ project being brought in by a colleague has source spread through a tree like this. T...
by jcsbanks
Tue Aug 14, 2018 10:33 pm
Forum: ESP32 IDF
Topic: Avoiding race condition between interrupt on one core and task on the other core
Replies: 5
Views: 1912

Avoiding race condition between interrupt on one core and task on the other core

Apart from pinning the task that initialises the interrupt and the task that races with the interrupt to the same core, which works, I wondered if there is a more elegant solution? In a single core situation it seems sufficient to have a critical section around the code in the task, and then the tas...
by jcsbanks
Tue Aug 14, 2018 4:49 pm
Forum: ESP32 IDF
Topic: Including source in subdirectory tree - had a working solution, now I've broken it :)
Replies: 2
Views: 1289

Including source in subdirectory tree - had a working solution, now I've broken it :)

I have a component with a number of subdirectories, and they are only going to grow in number. Initially I had to use the first line (now commented) in this component.mk, but after some searching came up with the second line to find the subdirectories and add them to COMPONENT_SRCDIRS, and didn't re...
by jcsbanks
Tue Aug 14, 2018 4:24 pm
Forum: ESP32 IDF
Topic: nvs: nvs_flash_init_custom "item should have been present in cache" when flashing with ESP-IDF 3.1 after 3.2
Replies: 5
Views: 3469

Re: nvs: nvs_flash_init_custom "item should have been present in cache" when flashing with ESP-IDF 3.1 after 3.2

Thanks guys! The reason for wanting to go back was ping times 100ms on 3.2 vs 1ms on 3.1, but it was not due to ESP IDF 3.2, but because I changed from AP to STA as the other computer has wired ethernet instead of WiFi. When there is concurrent WiFi traffic with either ESP IDF version, the ping time...
by jcsbanks
Tue Aug 14, 2018 3:02 pm
Forum: ESP32 IDF
Topic: nvs: nvs_flash_init_custom "item should have been present in cache" when flashing with ESP-IDF 3.1 after 3.2
Replies: 5
Views: 3469

Re: nvs: nvs_flash_init_custom "item should have been present in cache" when flashing with ESP-IDF 3.1 after 3.2

WiFi code at beginning of main(): void app_main() { nvs_flash_init(); tcpip_adapter_init(); ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) ); wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT(); ESP_ERROR_CHECK( esp_wifi_init(&cfg) ); ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM...
by jcsbanks
Tue Aug 14, 2018 2:59 pm
Forum: ESP32 IDF
Topic: nvs: nvs_flash_init_custom "item should have been present in cache" when flashing with ESP-IDF 3.1 after 3.2
Replies: 5
Views: 3469

Re: nvs: nvs_flash_init_custom "item should have been present in cache" when flashing with ESP-IDF 3.1 after 3.2

ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,...
by jcsbanks
Tue Aug 14, 2018 2:57 pm
Forum: ESP32 IDF
Topic: nvs: nvs_flash_init_custom "item should have been present in cache" when flashing with ESP-IDF 3.1 after 3.2
Replies: 5
Views: 3469

nvs: nvs_flash_init_custom "item should have been present in cache" when flashing with ESP-IDF 3.1 after 3.2

I have a DEVKIT C that I have been working with on one computer, then installed ESP-IDF on a new computer. I wanted to test something on the old computer/old build, it flashed OK, then crashes with nvs_flash_init. The DEVKIT can be flashed on the new computer and works again. Rebooting... ets Jun 8 ...
by jcsbanks
Fri Aug 03, 2018 8:19 am
Forum: Hardware
Topic: About the CAN controller.
Replies: 174
Views: 111713

Re: About the CAN controller.

I use the same board without problems as long as I do not use my Dell XPS18 USB port as power supply.
by jcsbanks
Thu Aug 02, 2018 1:42 pm
Forum: Hardware
Topic: ESP-WROM-32 + SPIRAM is now possible
Replies: 7
Views: 10320

Re: ESP-WROM-32 + SPIRAM is now possible

Idea of this has come up because of WROOM 32 D modules with 16MB flash in limited quantity being available. We have a design with WROOM 32 with 16MB external flash which uses the same pins as internal flash except GPIO 27 for CS. Wondering about replacing the external flash with 3.3V PSRAM but keepi...

Go to advanced search