Search found 22 matches

by aschweiz
Thu Jan 05, 2017 10:32 am
Forum: Report Bugs
Topic: Flags ignored in BLE advertising
Replies: 2
Views: 6313

Re: Flags ignored in BLE advertising

I think I've found the issue: It seems that the flags are lost in the BLE stack, in file "btc_gap_ble.c", function "btc_to_bta_adv_data". The input object "p_adv_data" still contains them, but they're not copied to the output object "bta_adv_data". By changing... if (p_adv_data->flag != 0) { mask = ...
by aschweiz
Wed Jan 04, 2017 3:34 pm
Forum: Report Bugs
Topic: Unable to add more than 1 characteristic to a service
Replies: 4
Views: 9043

(Solved) Re: Unable to add more than 1 characteristic to a service

Fyi, it's working fine after I've increased the number of handles in esp_ble_gatts_create_service :-)
by aschweiz
Fri Dec 23, 2016 4:43 pm
Forum: Report Bugs
Topic: Unexpectedly low floating-point performance in C
Replies: 24
Views: 141129

Re: Unexpectedly low floating-point performance in C

Hi Neil, that was also my first guess, but it turns out that it just takes 200 nanoseconds to toggle the output high and low again. Meanwhile, I also tried the idea with the loop and the performance is much better. Doing an "f1 += f2" 100 times takes only 64 microseconds, 640 nanoseconds per additio...
by aschweiz
Fri Dec 23, 2016 1:51 pm
Forum: Report Bugs
Topic: Unexpectedly low floating-point performance in C
Replies: 24
Views: 141129

Re: Unexpectedly low floating-point performance in C

additional info, assembly output of the compiler generated with -save-temps, plus some comments from the Xtensa instruction set architecture reference manual: call8 vTaskSuspendAll .LVL110: .loc 1 272 0 movi.n a11, 1 movi.n a10, 0x12 call8 gpio_set_level <------ t=0 .LVL111: .loc 1 273 0 l32r a3, .L...
by aschweiz
Fri Dec 23, 2016 1:48 pm
Forum: Report Bugs
Topic: Unexpectedly low floating-point performance in C
Replies: 24
Views: 141129

Unexpectedly low floating-point performance in C

Hi, according to the datasheet, the ESP32 seems to contain a hardware FPU, but in my tests, I get very bad FPU performance. For example, the following addition of two "float" variables and assignment to a third "float" variable (all 3 declared as volatile so that they don't get optimized away) takes...
by aschweiz
Wed Dec 21, 2016 3:29 pm
Forum: Report Bugs
Topic: Unable to add more than 1 characteristic to a service
Replies: 4
Views: 9043

Unable to add more than 1 characteristic to a service

I'm adding two characteristics to a service in the ESP_GATTS_CREATE_EVT event: gl_test.char_uuid[0].len = ESP_UUID_LEN_16; gl_test.char_uuid[0].uuid.uuid16 = ...; esp_ble_gatts_add_char(gl_test.service_handle, &gl_test.char_uuid[0], ESP_GATT_PERM_READ, ESP_GATT_CHAR_PROP_BIT_READ); gl_test.char_uuid...
by aschweiz
Wed Dec 21, 2016 1:46 pm
Forum: Report Bugs
Topic: Flags ignored in BLE advertising
Replies: 2
Views: 6313

Flags ignored in BLE advertising

The struct esp_ble_adv_params_t contains a 'flag' field:

uint8_t flag; /*!< Advertising flag of discovery mode */

It seems that this field is ignored in the implementation?

Greetings
Andreas
by aschweiz
Fri Dec 16, 2016 9:36 am
Forum: ESP-IDF
Topic: Issue with OTA partitions (invalid magic byte)
Replies: 10
Views: 20090

Re: Issue with OTA partitions (invalid magic byte)

Hi Daniel, there's another issue in the bootloader code, see here: http://www.esp32.com/viewtopic.php?f=14&t=615 I've "fixed" it in my checkout of bootloader_start, function bootloader_main(): sa = ota_select_map[0]; // TODO // The [128] is a workaround to make this consistent with the app_update co...
by aschweiz
Tue Dec 06, 2016 1:38 pm
Forum: ESP-IDF
Topic: Provide sample to update firmware into ESP32
Replies: 19
Views: 26560

Re: Provide sample to update firmware into ESP32

We've been trying to get OTA updates work too and have succeeded.
You may find our blog post useful: https://blog.classycode.com/over-the-ai ... .yujyiq29c

Feedback welcome :-)

cheers,
Andreas
by aschweiz
Thu Dec 01, 2016 4:19 pm
Forum: Report Bugs
Topic: OTA flash sector size inconsistent between bootloader and OTA component
Replies: 1
Views: 15294

OTA flash sector size inconsistent between bootloader and OTA component

Hi, I guess the following is a bug: The bootloader code assumes that the two flash sectors follow immediately after each other (bootloader_start.c): sa = ota_select_map[0]; sb = ota_select_map[1]; The app_update component assumes a fixed distance of the two structures of SPI_FLASH_SEC_SIZE (=4096) b...