Search found 121 matches

by newsettler_AI
Tue Dec 25, 2018 12:47 pm
Forum: General Discussion
Topic: Using spiffs and FreeRTOS tick hook causes crash
Replies: 2
Views: 13923

Re: Using spiffs and FreeRTOS tick hook causes crash

ESP_igrr, thanks a lot !

I tried apply IRAM_ATTR only for callback itself, but no success.

Now I added this attibutes to all functions in this callback aswell and it works fine :)
by newsettler_AI
Mon Dec 24, 2018 5:29 pm
Forum: General Discussion
Topic: Using spiffs and FreeRTOS tick hook causes crash
Replies: 2
Views: 13923

Using spiffs and FreeRTOS tick hook causes crash

Hi. In my project I'm using SPIFFS and some FreeRTOS tasks. One of this tasks (its LCD library) uses callback for ticks: https://github.com/espressif/esp-idf/blob/release/v3.1/components/esp32/include/esp_freertos_hooks.h#L90 Problem: each tasks works fine separatly. But when I'm trying use both I g...
by newsettler_AI
Sat Dec 22, 2018 7:00 pm
Forum: General Discussion
Topic: Esp32 , OpenOCD ,JTAG Error
Replies: 8
Views: 14231

Re: Esp32 , OpenOCD ,JTAG Error

I'm facing issue with start debugging under Eclipse... Command: bin/openocd -s share/openocd/scripts -f interface/jlink.cfg -f board/esp-wroom-32.cfg Output: Open On-Chip Debugger 0.10.0-dev (2018-11-05-04:10) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html a...
by newsettler_AI
Fri Dec 21, 2018 3:43 pm
Forum: General Discussion
Topic: CPU cant start (spiffs and adc?)
Replies: 4
Views: 5182

Re: CPU cant start (spiffs and adc?)

Yes, that option increases your main application stack. 8K is lots. Just wondering if that is your problem though. When I have had an overflow error I think that that was because I have exceeded my partition size. Not sure because I just increased everything. Takes so long to build on Windows so ju...
by newsettler_AI
Thu Dec 20, 2018 7:41 pm
Forum: General Discussion
Topic: CPU cant start (spiffs and adc?)
Replies: 4
Views: 5182

Re: CPU cant start (spiffs and adc?)

Issue was with stack memory allocation (other library require in some define 32KB). So sheduler cant start, my two functions causes overflow, so I thought problem is with them. Decreasing library memory to 18KB solves issue. Not sure, but does changing of this in sdkconfig : CONFIG_MAIN_TASK_STACK_S...
by newsettler_AI
Mon Dec 17, 2018 7:13 pm
Forum: General Discussion
Topic: CPU cant start (spiffs and adc?)
Replies: 4
Views: 5182

CPU cant start (spiffs and adc?)

Hi. I use spiffs in my project. I got error when added simple open-read function to app_main. function: void data_load() { FILE *file; file = fopen("/spiffs/data/my_data", "rb"); if(file == NULL) { printf("%s : Cant open file\n", __func__); return; } fread(&data_total.ID, sizeof(data_total.ID), 1, f...
by newsettler_AI
Fri Dec 07, 2018 12:51 pm
Forum: General Discussion
Topic: BLE: how to get mtu size?
Replies: 3
Views: 6638

Re: BLE: how to get mtu size?

Any ideas?
by newsettler_AI
Wed Dec 05, 2018 4:36 pm
Forum: General Discussion
Topic: BLE: how to get mtu size?
Replies: 3
Views: 6638

BLE: how to get mtu size?

Is there way to get mtu size via some IDF functions? I got in logs this number, so I suppose it should be stored somethere: BT_GATT: attribute value too long, to be truncated to 19[0m ... BT_GATT: attribute value too long, to be truncated to 22[0m I supposed to see it at ESP_GATTS_MTU_EVT event in g...
by newsettler_AI
Sat Dec 01, 2018 3:25 pm
Forum: General Discussion
Topic: Best way to store structure on flash?
Replies: 0
Views: 2434

Best way to store structure on flash?

I have such structures: typedef struct my_data_single_s { char uid[20]; struct connection_s{ char param_1[15]; char param_2[20]; }connection; struct measurement_s{ uint32_t timestamp; char name[50]; float longitude; float latitude; float offset; float value_1; float value_2; }measurement; }my_data_s...
by newsettler_AI
Thu Nov 29, 2018 2:39 pm
Forum: General Discussion
Topic: ESP_GATTS_READ_EVT infinite loop
Replies: 5
Views: 6397

Re: ESP_GATTS_READ_EVT infinite loop

Thanks for suggestion. Still I got some issues (now not loop, but on nrfConnect I got all zeroes in value field) My log: [2018-11-29_16:26:23][0;32mI (831083) BLE: update connection params status = 0, min_int = 16, max_int = 32,conn_int = 6,latency = 0, timeout = 2000[0m [2018-11-29_16:26:24][0;32mI...