]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agoMerge branch 'bugfix/gen_esp32part' into 'master'
Angus Gratton [Tue, 16 May 2017 07:03:11 +0000 (15:03 +0800)]
Merge branch 'bugfix/gen_esp32part' into 'master'

Partition table gen esp32part fixes: App offset errors, Python 3 support

As mentioned on forums, gen_esp32part.py wasn't erroring correctly if a non-64KB-aligned app partition was referenced.

Also merges a PR to add Python 2&3 support (with some tweaks). Not very useful in IDF right now, but useful for Arduino.

See merge request !751

7 years agoMerge branch 'feature/ulp_adc_example' into 'master'
Ivan Grokhotkov [Tue, 16 May 2017 05:53:46 +0000 (13:53 +0800)]
Merge branch 'feature/ulp_adc_example' into 'master'

examples: add ULP ADC example

- Add example of ULP sampling an input using ADC1, waking up the system when ADC reading goes out of given window.
- Add a pair of convenience functions: to configure ADC1 for use with ULP, and to set ULP wakeup interval.

Ref. TW11902

See merge request !720

7 years agoexamples: add ULP ADC example
Ivan Grokhotkov [Thu, 20 Apr 2017 08:13:09 +0000 (16:13 +0800)]
examples: add ULP ADC example

7 years agoMerge branch 'bugfix/bt_acl_tx' into 'master'
Jiang Jiang Jian [Fri, 12 May 2017 10:23:20 +0000 (18:23 +0800)]
Merge branch 'bugfix/bt_acl_tx' into 'master'

components/bt: update libbtdm.a with a bugfix for an assertion failure when ACL-…

…U transmission is resumed

See merge request !755

7 years agoMerge branch 'driver_merge_tmp/mcpwm' into 'master'
Jiang Jiang Jian [Fri, 12 May 2017 10:21:38 +0000 (18:21 +0800)]
Merge branch 'driver_merge_tmp/mcpwm' into 'master'

feature: Motor Control PWM(mcpwm) driver and examples

See merge request !698

7 years agoMerge branch 'feature/i2s_pdm_and_dac' into 'master'
Jiang Jiang Jian [Fri, 12 May 2017 10:21:17 +0000 (18:21 +0800)]
Merge branch 'feature/i2s_pdm_and_dac' into 'master'

Driver update: I2S pdm and built-in DAC

1. Modify I2S DAC built-in mode settings
2. Add I2S pdm mode
3. Correct I2S signal index in full-duplex mode
4. Modify dac output function
5. Add dac pad init functions
6. Modify DAC documentation

See merge request !740

7 years agoMerge branch 'bugfix/dualcore' into 'master'
Jiang Jiang Jian [Fri, 12 May 2017 10:19:31 +0000 (18:19 +0800)]
Merge branch 'bugfix/dualcore' into 'master'

component/soc: fix register access protection missing

- fix dport register access protection missing
- add rom function protect
- add normal register function check

See merge request !747

7 years agocomponents/bt: update libbtdm.a with a bugfix for an assertion failure when ACL-U...
wangmengyang [Fri, 12 May 2017 09:53:25 +0000 (17:53 +0800)]
components/bt: update libbtdm.a with a bugfix for an assertion failure when ACL-U transmission is resumed

7 years agoDriver update: I2S pdm and built-in DAC
Wangjialin [Wed, 3 May 2017 10:55:52 +0000 (18:55 +0800)]
Driver update: I2S pdm and built-in DAC

1. Modify I2S DAC built-in mode settings
2. Add I2S pdm mode
3. Correct I2S signal index in full-duplex mode
4. Modify dac output function
5. Add dac pad init functions
6. Modify DAC documentation
7. Add i2s_set_dac_mode API

7 years agofeature: add Motor Control PWM(mcpwm) driver
Kewal M Shah [Wed, 29 Mar 2017 08:39:35 +0000 (16:39 +0800)]
feature: add Motor Control PWM(mcpwm) driver

1. Name change from chopper to carrier, block diagram update, minor changes to example codes
2. mcpwm_reg.h changed, brought uniformity in comments, worked on suggestions, duty to accept float. Some name changes!
3. Minor readme changes and Indetation
4. Minor change:  move mcpwm_reg.h and mcpwm_struct.h to new path
5. Minor change: addition of BLDC example code and Readme
6. Name changed from epwm to mcpwm
7. Improve the reg name in mcpwm_struct.h
8. Name change chopper>carrier, deadband>deadtime

7 years agocomponent/esp32 : do more fix of dualcore bug
Tian Hao [Wed, 10 May 2017 07:45:04 +0000 (15:45 +0800)]
component/esp32 : do more fix of dualcore bug

1. the cache API in romcode will access DPORT register, so protect it.
2. fix STALL spelling.
3. check dport access by non-dport access function

7 years agoMerge branch 'bugfix/ble_fix_exception_build_sr_msg_#12124' into 'master'
Jiang Jiang Jian [Fri, 12 May 2017 07:24:58 +0000 (15:24 +0800)]
Merge branch 'bugfix/ble_fix_exception_build_sr_msg_#12124' into 'master'

component/bt: fix the exception in attp_buil_sr_msg when handling gatt write bug. bug number #12124.

 fix the exception in attp_buil_sr_msg when handling gatt write bug.

See merge request !743

7 years agoMerge branch 'bugfix/unit_test_fixes' into 'master'
Ivan Grokhotkov [Fri, 12 May 2017 06:53:46 +0000 (14:53 +0800)]
Merge branch 'bugfix/unit_test_fixes' into 'master'

Small unit-test-related fixes

Fixes for some small bugs found running unit tests with heap poisoning turned on.

All are bugs in the tests, except for one FreeRTOS fix (when deleting a task, check if it's running on the other CPU and preempt it if so.)

See merge request !746

7 years agoMerge branch 'bugfix/nvs_dynamic_key_names' into 'master'
Ivan Grokhotkov [Fri, 12 May 2017 06:53:18 +0000 (14:53 +0800)]
Merge branch 'bugfix/nvs_dynamic_key_names' into 'master'

nvs: remove search cache at page level

Since read cache was introduced at page level, search cache became
useless in terms of reducing the number of flash read operations.
In addition to that, search cache used an assumption that if pointers to
keys are identical, the keys are also identical, which was proven wrong
by applications which generate key names dynamically.

This change removes CachedFindInfo, and all its uses. This is done at
expense of a small extra number of CPU operations (looking up a value in
the read cache is slightly more expensive) but no extra flash read
operations.

Ref TW12505
Ref https://github.com/espressif/arduino-esp32/issues/365

See merge request !753

7 years agocomponent/bt: Add parameter check for attp_build_sr_msg function
island [Fri, 12 May 2017 06:30:33 +0000 (14:30 +0800)]
component/bt: Add parameter check for attp_build_sr_msg function

7 years agogen_esp32part: Run unit tests on host as part of gitlab-ci
Angus Gratton [Fri, 12 May 2017 02:30:27 +0000 (12:30 +1000)]
gen_esp32part: Run unit tests on host as part of gitlab-ci

7 years agoMerge branch 'bugfix/enlarge_wifi_task_stack_size_and_hmac_tx_queue_size' into 'master'
Jiang Jiang Jian [Fri, 12 May 2017 05:37:22 +0000 (13:37 +0800)]
Merge branch 'bugfix/enlarge_wifi_task_stack_size_and_hmac_tx_queue_size' into 'master'

esp32: update wifi lib to enlarge wifi task stack size

1. Enlarge wifi task stack size by 512Bytes to fix potential stack overflow issue
2. Modify wifi hmac tx queue size from 12 to 32 because we already limit the buffer number in ebuf
   management module

See merge request !750

7 years agonvs: remove search cache at page level
Ivan Grokhotkov [Fri, 12 May 2017 04:18:08 +0000 (12:18 +0800)]
nvs: remove search cache at page level

Since read cache was introduced at page level, search cache became
useless in terms of reducing the number of flash read operations.
In addition to that, search cache used an assumption that if pointers to
keys are identical, the keys are also identical, which was proven wrong
by applications which generate key names dynamically.

This change removes CachedFindInfo, and all its uses. This is done at
expense of a small extra number of CPU operations (looking up a value in
the read cache is slightly more expensive) but no extra flash read
operations.

Ref TW12505
Ref https://github.com/espressif/arduino-esp32/issues/365

7 years agogen_esp32part.py: Correctly error out for non-64KB aligned app partitions
Angus Gratton [Fri, 12 May 2017 02:07:59 +0000 (12:07 +1000)]
gen_esp32part.py: Correctly error out for non-64KB aligned app partitions

Also clean up error handling for verification errors in general.

Ref https://esp32.com/viewtopic.php?f=13&t=1838&p=8685#p8659

7 years agogen_esp32part.py: Update documentation link, add license
Angus Gratton [Fri, 12 May 2017 01:58:28 +0000 (11:58 +1000)]
gen_esp32part.py: Update documentation link, add license

7 years agogen_esp32part.py: Remaining Python 3 changes for unit tests to pass, plus unit tests
Angus Gratton [Fri, 12 May 2017 02:25:41 +0000 (12:25 +1000)]
gen_esp32part.py: Remaining Python 3 changes for unit tests to pass, plus unit tests

Ref https://github.com/espressif/esp-idf/pull/577

7 years agogen_esp32part: Make compatible with both python2.7 and python3.
David M. Palmer [Sat, 6 May 2017 18:47:26 +0000 (12:47 -0600)]
gen_esp32part: Make compatible with both python2.7 and python3.

Merges https://github.com/espressif/esp-idf/pull/577

7 years agoesp32: update wifi lib to enlarge wifi task stack size
Liu Zhi Fu [Fri, 12 May 2017 01:36:41 +0000 (09:36 +0800)]
esp32: update wifi lib to enlarge wifi task stack size

1. Enlarge wifi task stack size by 512Bytes to fix potential stack overflow issue
2. Modify wifi hmac tx queue size from 12 to 32 because we already limit the buffer number in ebuf
   management module

7 years agoMerge branch 'feature/get_chip_ver' into 'master'
Ivan Grokhotkov [Thu, 11 May 2017 04:05:55 +0000 (12:05 +0800)]
Merge branch 'feature/get_chip_ver' into 'master'

add API to get chip info

This change adds an API to get chip info, such as chip model, enabled capabilities, size of embedded flash, silicon revision.

Hello_world example is modified to print out the information about the chip. The example is also simplified by moving all code into the main task.

Ref TW12031.

See merge request !549

7 years agoMerge branch 'bugfix/update_wifi_lib_for_some_bugs' into 'master'
Ivan Grokhotkov [Thu, 11 May 2017 04:02:50 +0000 (12:02 +0800)]
Merge branch 'bugfix/update_wifi_lib_for_some_bugs' into 'master'

esp32: update wifi lib for some bugfix

1. Fix wifi ebuf free twice issue
2. Fix wifi internal assert issue
3. Fix a bug in esp_wifi_stop
4. Fix wifi crash issue
5. Fix wifi run out of memory when 10 udp connection stability test

See merge request !745

7 years agoMerge branch 'feature/base_mac_address' into 'master'
Ivan Grokhotkov [Thu, 11 May 2017 04:01:51 +0000 (12:01 +0800)]
Merge branch 'feature/base_mac_address' into 'master'

Optimize configuration of base MAC address

Application developer can call APIs to configure base MAC address
instead of using menuconfig.

See merge request !744

7 years agoesp32: update wifi lib for some bugfix
Liu Zhi Fu [Tue, 9 May 2017 14:15:08 +0000 (22:15 +0800)]
esp32: update wifi lib for some bugfix

1. Fix wifi ebuf free twice issue
2. Fix wifi internal assert issue
3. Fix a bug in esp_wifi_stop
4. Fix wifi crash issue
5. Fix 10 UDP connection test out of memory issue

7 years agofreertos tests: Use CCOMPARE1 always in xPortInIsrContext() test
Angus Gratton [Wed, 10 May 2017 07:26:25 +0000 (17:26 +1000)]
freertos tests: Use CCOMPARE1 always in xPortInIsrContext() test

Mismatched CCOMPARE meant test would only run once.

7 years agovfs uart tests: Avoid 1 byte heap overrun & memory leak
Angus Gratton [Wed, 10 May 2017 07:24:40 +0000 (17:24 +1000)]
vfs uart tests: Avoid 1 byte heap overrun & memory leak

7 years agofreertos: Preempt other CPU when deleting a task running on it
Angus Gratton [Wed, 10 May 2017 07:23:33 +0000 (17:23 +1000)]
freertos: Preempt other CPU when deleting a task running on it

Includes related fix to preemption unit tests (delete a queue after deleting the task blocked on it.)

7 years agounit test runer: Add capability to use ![tag] to run all-tests-except-tag
Angus Gratton [Wed, 10 May 2017 07:22:30 +0000 (17:22 +1000)]
unit test runer: Add capability to use ![tag] to run all-tests-except-tag

Mostly useful for running ![ignore] to skip ignored tests.

7 years agoMerge branch 'bugfix/dualcore_dport' into 'master'
Jiang Jiang Jian [Wed, 10 May 2017 03:27:01 +0000 (11:27 +0800)]
Merge branch 'bugfix/dualcore_dport' into 'master'

component/esp32 : fix dualcore bug

1. When dual core cpu run access DPORT register, must do protection.
2. If access DPORT register, must use DPORT_REG_READ/DPORT_REG_WRITE and DPORT_XXX register operation macro.

See merge request !742

7 years agoOptimize configuration of base MAC address
XiaXiaotian [Fri, 5 May 2017 14:24:56 +0000 (22:24 +0800)]
Optimize configuration of base MAC address

    Application developer can call APIs to configure base MAC address
    instead of using menuconfig.

7 years agoMerge branch 'bugfix/btdm_debug_gattc_adv' into 'master'
Jiang Jiang Jian [Tue, 9 May 2017 14:36:24 +0000 (22:36 +0800)]
Merge branch 'bugfix/btdm_debug_gattc_adv' into 'master'

component/bt: fix adv stop event bug and add attribute table create

- Fix bug that advertising stop event produced while calling start_adv function
- Modify gatt server adv data and scan rsp data raw setting
- Add create attribute table error msg
- Delete redundant printf in previous commits

See merge request !739

7 years agocomponent/soc : move dport access header files to soc
Tian Hao [Tue, 9 May 2017 10:06:00 +0000 (18:06 +0800)]
component/soc : move dport access header files to soc

1. move dport access header files to soc
2. reduce dport register write protection. Only protect read operation

7 years agocomponent/bt: fix the exception in attp_buil_sr_msg when handling gatt write bug...
Yulong [Tue, 9 May 2017 07:06:29 +0000 (03:06 -0400)]
component/bt: fix the exception in attp_buil_sr_msg when handling gatt write bug. bug number #12124.

7 years agocomponent/esp32 : fix dualcore bug
Tian Hao [Mon, 8 May 2017 12:03:04 +0000 (20:03 +0800)]
component/esp32 : fix dualcore bug

1. When dual core cpu run access DPORT register, must do protection.
2. If access DPORT register, must use DPORT_REG_READ/DPORT_REG_WRITE and DPORT_XXX register operation macro.

7 years agoMerge branch 'bugfix/spi_example' into 'master'
Jeroen Domburg [Mon, 8 May 2017 09:28:55 +0000 (17:28 +0800)]
Merge branch 'bugfix/spi_example' into 'master'

SPI: Various fixes (examples, mem leak, arg check)

- Fix SPI master example to use DMA-capable memory for display initialization. Fixes https://github.com/espressif/esp-idf/issues/551
- SPI master: Do not leak DMA descriptor pointer array on free
- SPI Master/Slave: Check if DMA'ed buffers actually live in DMA-capable memory

See merge request !735

7 years agoFix out-of-bounds on dmaworkaround_channels_busy
Jeroen Domburg [Mon, 8 May 2017 08:11:46 +0000 (16:11 +0800)]
Fix out-of-bounds on dmaworkaround_channels_busy

7 years agoMerge branch 'feature/save_esptool_flash_args' into 'master'
Ivan Grokhotkov [Mon, 8 May 2017 07:48:28 +0000 (15:48 +0800)]
Merge branch 'feature/save_esptool_flash_args' into 'master'

CI: save download config in CI build jobs:

IDF built app download config may change with some modification.
save the download configs for built APP in build stage.
then we can use the correct download config in test stage.

See merge request !676

7 years agoMerge branch 'bugfix/sntp_timezone' into 'master'
Ivan Grokhotkov [Mon, 8 May 2017 07:48:03 +0000 (15:48 +0800)]
Merge branch 'bugfix/sntp_timezone' into 'master'

examples: fix timezone for China in SNTP example

Daylight saving time isn’t observed in China.

Fixes https://github.com/espressif/esp-idf/issues/549

See merge request !722

7 years agocomponent/bt: fix adv stop event bug and add attribute table create
island [Sun, 7 May 2017 12:01:45 +0000 (20:01 +0800)]
component/bt: fix adv stop event bug and add attribute table create
error

- Fix bug that advertising stop event produced while calling start_adv function
- Modify gatt server adv data and scan rsp data raw setting
- add create attribute table error msg
- Delete redundant printf in previous commits

7 years agoMerge branch 'feature/btdm_gattc_add_API_prepare_write_char_desrc' into 'master'
Jiang Jiang Jian [Fri, 5 May 2017 12:34:41 +0000 (20:34 +0800)]
Merge branch 'feature/btdm_gattc_add_API_prepare_write_char_desrc' into 'master'

Component/bt:add API to prepare write descriptor for gattc

See merge request !734

7 years agoComponent/bt:add API to prepare write descriptor for gattc
zhiweijian [Fri, 28 Apr 2017 06:51:23 +0000 (14:51 +0800)]
Component/bt:add API to prepare write descriptor for gattc

7 years agoMerge branch 'bugfix/set_scan_bug_rebase_#10399' into 'master'
Jiang Jiang Jian [Fri, 5 May 2017 09:47:27 +0000 (17:47 +0800)]
Merge branch 'bugfix/set_scan_bug_rebase_#10399' into 'master'

component/bt: component/bt: Check own address and filter policy for validity.

rebase the invalid scan params not report error.

See merge request !736

7 years agoexamples: print chip info in hello_world example
Ivan Grokhotkov [Fri, 5 May 2017 06:10:37 +0000 (14:10 +0800)]
examples: print chip info in hello_world example

7 years agoadd esp_chip_info API
Ivan Grokhotkov [Thu, 2 Mar 2017 12:51:37 +0000 (20:51 +0800)]
add esp_chip_info API

7 years agoMerge branch 'bugfix/spiflash_fatfs_fixes_and_tests' into 'master'
Ivan Grokhotkov [Fri, 5 May 2017 09:03:17 +0000 (17:03 +0800)]
Merge branch 'bugfix/spiflash_fatfs_fixes_and_tests' into 'master'

FATFS fixes and tests

This MR includes a set of fixes related to FATFS, SDMMC, and wear levelling:

- `esp_vfs_fat_spiflash_mount` uses `FM_SFD` flag when creating the partition. The volume layout (given in `VolToPart` variable) was not compatible with SFD mode, so mkfs was failing. This fixes the volume layout to use "autodetect" for both volumes. Merges https://github.com/espressif/esp-idf/pull/559.

- fix `prepend_drive_to_path`function, which didn't prepend drive to path (while consuming 2k of stack space)

- fix stack overflow in vfs_fat_link function which allocated two 4kbyte `FIL` structures on the stack

- fix support for having two FATFS instances (in flash and SD) mounted at the same time

- unit tests written for FATFS on SDMMC are made common between SDMMC and WL implementations; FATFS unit tests on WL will run during CI

- fix inconsistent definition of PATH_MAX and ARG_MAX (TW12207, TW12104, https://github.com/espressif/esp-idf/issues/289)

See merge request !732

7 years agoMerge branch 'feature/freertos_timer_tests' into 'master'
Ivan Grokhotkov [Fri, 5 May 2017 09:02:55 +0000 (17:02 +0800)]
Merge branch 'feature/freertos_timer_tests' into 'master'

Unit tests: Add FreeRTOS timer tests

Basic unit tests for FreeRTOS timers.

See merge request !715

7 years agocomponent/bt:change the ESP_PUBLIC_ADDR to BLE_ADDR_TYPE_PUBLIC.
Yulong [Fri, 5 May 2017 08:46:08 +0000 (04:46 -0400)]
component/bt:change the ESP_PUBLIC_ADDR to BLE_ADDR_TYPE_PUBLIC.

7 years agocomponent/bt: component/bt: Check own address and filter policy for validity.
Yulong [Fri, 5 May 2017 08:31:24 +0000 (04:31 -0400)]
component/bt: component/bt: Check own address and filter policy for validity.

7 years agoMerge branch 'bugfix/bt_sniff_mode' into 'master'
Jiang Jiang Jian [Fri, 5 May 2017 08:27:37 +0000 (16:27 +0800)]
Merge branch 'bugfix/bt_sniff_mode' into 'master'

component/bt: fix some bugs related to bluetooth sniff mode in controller

1. fix some bugs in bluetooth sniff mode in controller
2. export some symbols to esp32.rom.ld including functions and global variables in ROM code
3. update libbtdm.a which includes "IRAM_ATTR" addition or removal for some functions

See merge request !729

7 years agoMerge branch 'feature/btdm_blufi_newcmd' into 'master'
Jiang Jiang Jian [Fri, 5 May 2017 08:25:41 +0000 (16:25 +0800)]
Merge branch 'feature/btdm_blufi_newcmd' into 'master'

Feature/btdm blufi newcmd

1.add a new cmd for blufi,esp32 close a gatt connection.

See merge request !697

7 years agoMerge branch 'bugfix/lwip_loopback' into 'master'
Jiang Jiang Jian [Fri, 5 May 2017 07:45:14 +0000 (15:45 +0800)]
Merge branch 'bugfix/lwip_loopback' into 'master'

fix(lwip): fix tcp connect fail when enable LOOPIF

when enable the LOOPIF, because of use the loopnetif, the TCP connect will fail. see TW12029

See merge request !711

7 years agoMerge branch 'feature/enable_wifi_ebuf_sanity_check' into 'master'
Jiang Jiang Jian [Fri, 5 May 2017 07:40:33 +0000 (15:40 +0800)]
Merge branch 'feature/enable_wifi_ebuf_sanity_check' into 'master'

esp32: update wifi lib to enable ebuf sanity check

The wifi ebuf sanity checking is disabled by default, this MR is to enable it by default. If we detect the last 4 Bytes of ebuf is not DEADBEEF, we assert the system, with the sanity checking, we can detect the ebuf memory corrupt easy.

See merge request !724

7 years agoMerge branch 'bugfix/readme_links' into 'master'
Ivan Grokhotkov [Fri, 5 May 2017 07:26:32 +0000 (15:26 +0800)]
Merge branch 'bugfix/readme_links' into 'master'

Fix broken links in readme

Merges https://github.com/espressif/esp-idf/pull/561

See merge request !733

7 years agonewlib: define PATH_MAX and ARG_MAX consistently
Ivan Grokhotkov [Fri, 5 May 2017 02:45:15 +0000 (10:45 +0800)]
newlib: define PATH_MAX and ARG_MAX consistently

Fixes https://github.com/espressif/esp-idf/issues/289.
Fixes https://github.com/espressif/esp-idf/issues/534.

7 years agovfs, fatfs: fix support for two FATFS instances (SD and flash)
Ivan Grokhotkov [Thu, 4 May 2017 11:57:11 +0000 (19:57 +0800)]
vfs, fatfs: fix support for two FATFS instances (SD and flash)

- fix null pointer dereference in VFS when VFS implementations are added
  and removed in different order

- vfs_fat_sdmmc, vfs_fat_spiflash: pass correct drive to mkfs
  (previously it would always do mkfs in the first drive)

- add test case

7 years agofatfs: clean up diskio code
Ivan Grokhotkov [Thu, 4 May 2017 11:50:13 +0000 (19:50 +0800)]
fatfs: clean up diskio code

- clean up diskio_spiflash, fix the max number of volumes supported
- move SDMMC code into a separate file

7 years agofatfs: run same fatfs tests for WL and SDMMC
Ivan Grokhotkov [Thu, 4 May 2017 08:48:44 +0000 (16:48 +0800)]
fatfs: run same fatfs tests for WL and SDMMC

This change moves actual test code into test_fatfs_common.c and
refactors setup/teardown code to be contained within separate functions.
For each SDMMC FATFS test, identical test is added which can run with
WL partition in flash.

7 years agounit tests: change type of flash_test partition to ‘fat’
Ivan Grokhotkov [Thu, 4 May 2017 08:42:22 +0000 (16:42 +0800)]
unit tests: change type of flash_test partition to ‘fat’

This change makes the spi_flash test partition usable for WL and FATFS
tests.

7 years agovfs_fat: allocate FIL structures on the heap in vfs_fat_link
Ivan Grokhotkov [Thu, 4 May 2017 06:49:33 +0000 (14:49 +0800)]
vfs_fat: allocate FIL structures on the heap in vfs_fat_link

vfs_fat_link opened two files to perform copy operation. File structures
were allocated on the stack. When _MAX_SS setting was increased in
ffconf.h due to wear levelling feature, the size of these structures
increased to ~4k each (~8k total). This exceeds stack size allocated for
tasks in most typical cases.

This change makes file structures dynamically allocated.

7 years agovfs_fat: fix prepend_drive_to_path
Ivan Grokhotkov [Thu, 4 May 2017 06:46:11 +0000 (14:46 +0800)]
vfs_fat: fix prepend_drive_to_path

Originally, prepend_drive_to_path was designed to be a macro, and it
modified local path variables to point to a temporary buffers.
When it was converted into a function, modification to path variables
were no longer visible outside of this function.

In addition to that, prepend_drive_to_path allocated 2k bytes on the
stack for temporary path buffers. This is replaced with path buffers
allocated as part of vfs_fat context object. Locking is added around
parts of code which use these temporary buffers.

Additionally, _lock member of vfs_fat_ctx_t was placed after the
variable-sized files array, which caused the first entry in the
array to be never used. This change fixes the order of members
and adds comments.

7 years agoUnit tests: Add FreeRTOS timer tests
Angus Gratton [Tue, 7 Mar 2017 00:31:46 +0000 (11:31 +1100)]
Unit tests: Add FreeRTOS timer tests

7 years agoWarn against and check for non-DMA-capable pointers being passed to SPI when DMA...
Jeroen Domburg [Fri, 5 May 2017 03:55:19 +0000 (11:55 +0800)]
Warn against and check for non-DMA-capable pointers being passed to SPI when DMA is used

7 years agocomponents/driver/spi_master: free dma descriptors
devsaurus [Tue, 2 May 2017 20:42:45 +0000 (22:42 +0200)]
components/driver/spi_master: free dma descriptors

Signed-off-by: Jeroen Domburg <jeroen@espressif.com>
7 years agoplace initialization sequence into DRAM to be reachable by DMA
Daniel [Mon, 1 May 2017 01:29:01 +0000 (03:29 +0200)]
place initialization sequence into DRAM to be reachable by DMA

Signed-off-by: Jeroen Domburg <jeroen@espressif.com>
7 years agoComponent/bt: add new cmd for blufi ,ESP32 close a gatt connection
zhiweijian [Fri, 21 Apr 2017 03:04:53 +0000 (11:04 +0800)]
Component/bt: add new cmd for blufi ,ESP32 close a gatt connection

7 years agoFix vfs_fat_spiflash failed to mount / f_mkfs()
Nineis K [Tue, 2 May 2017 16:23:45 +0000 (23:23 +0700)]
Fix vfs_fat_spiflash failed to mount / f_mkfs()

7 years agoesp32: update wifi lib to enable ebuf sanity check
Liu Zhi Fu [Wed, 3 May 2017 01:19:45 +0000 (09:19 +0800)]
esp32: update wifi lib to enable ebuf sanity check

Modify wifi ebuf sanity checking from disaled to enabled

7 years agocomponent/bt: fix some bugs related to bluetooth sniff mode in controller
wangmengyang [Thu, 27 Apr 2017 14:12:31 +0000 (22:12 +0800)]
component/bt: fix some bugs related to bluetooth sniff mode in controller

1. fix some bugs in bluetooth sniff mode in controller
2. export some symbols to esp32.rom.ld including functions and global variables in ROM code
3. update libbtdm.a which includes "IRAM_ATTR" addition or removal for some functions

7 years agoMerge branch 'feature/btdm_vhci_intnum' into 'master'
Jiang Jiang Jian [Thu, 4 May 2017 06:58:32 +0000 (14:58 +0800)]
Merge branch 'feature/btdm_vhci_intnum' into 'master'

change VHCI interrupt type to software interrupt

component/bt : change VHCI interrupt type to software interrupt(int no 7)

See merge request !717

7 years agoMerge branch 'bugfix/gattc_not_pro_svc_chg_evt_#12079' into 'master'
Jiang Jiang Jian [Thu, 4 May 2017 06:51:42 +0000 (14:51 +0800)]
Merge branch 'bugfix/gattc_not_pro_svc_chg_evt_#12079' into 'master'

component/bt:fix the bug with gatt client cant not receive the gatt server service change event.

fix the bug with gatt client cant not receive the gatt server service change event.

See merge request !726

7 years agoMerge branch 'bugfix/btdm_auto_rsp_comment' into 'master'
Jiang Jiang Jian [Thu, 4 May 2017 06:49:06 +0000 (14:49 +0800)]
Merge branch 'bugfix/btdm_auto_rsp_comment' into 'master'

component/bt : fix the comment

 fix the comment about auto response of GATT write/read operation

See merge request !730

7 years agocomponent/bt : fix the comment
Tian Hao [Wed, 3 May 2017 03:58:52 +0000 (11:58 +0800)]
component/bt : fix the comment

7 years agocomponent/bt:fix the bug with gatt client cant not receive the gatt server service...
Yulong [Wed, 3 May 2017 02:53:48 +0000 (22:53 -0400)]
component/bt:fix the bug with gatt client cant not receive the gatt server service change event.

7 years agoUpdate README.md
Xiaolong Zheng [Tue, 2 May 2017 21:17:54 +0000 (17:17 -0400)]
Update README.md

The link is broken

7 years agoMerge branch 'bugfix/ble_fix_bluedroid6.0_bug_from_7.1' into 'master'
Jiang Jiang Jian [Tue, 2 May 2017 11:38:50 +0000 (19:38 +0800)]
Merge branch 'bugfix/ble_fix_bluedroid6.0_bug_from_7.1' into 'master'

compoent/bt:Fixed the BT/BLE statck bug from bluedroid7.1.1

The bluedroid 7.1.1 has fixed some bug, synchronize to our SDK now.

See merge request !719

7 years agoMerge branch 'bugfix/gatts_cannot_set_value_#11754' into 'master'
Jiang Jiang Jian [Tue, 2 May 2017 11:37:45 +0000 (19:37 +0800)]
Merge branch 'bugfix/gatts_cannot_set_value_#11754' into 'master'

component/bt:Fixed the bug for #11754:GATT service should provide command to set…

… char/descriptor read value.

See merge request !721

7 years agobuild: add document about how to save flash args
He Yin Ling [Tue, 25 Apr 2017 02:40:22 +0000 (10:40 +0800)]
build: add document about how to save flash args

7 years agoCI: save download config in CI build jobs:
He Yin Ling [Tue, 18 Apr 2017 14:38:08 +0000 (22:38 +0800)]
CI: save download config in CI build jobs:

IDF built app download config may change with some modification.
save the download configs for built APP in build stage.
then we can use the correct download config in test stage.

7 years agoMerge branch 'bugfix/rtc_fast_freq_init' into 'master'
Ivan Grokhotkov [Fri, 28 Apr 2017 11:57:42 +0000 (19:57 +0800)]
Merge branch 'bugfix/rtc_fast_freq_init' into 'master'

esp32: select 8M clock as RTC_FAST_CLK on startup

Even though RTC_CLK_CONFIG_DEFAULT correctly had RTC_FAST_FREQ_8M as the
fast clock, the bootloader modified fast_freq field to the currently
selected RTC_FAST_CLK (so that the clock choice is not affected by the
bootloader). The application startup code never switched to 8M clock,
which caused the default (XTAL/4) to be used as RTC_FAST_CLK. This had
caused a number of issues, such as touch pads not working in deep sleep.

Fixes https://github.com/espressif/esp-idf/issues/542.
Ref TW12053.

See merge request !709

7 years agoMerge branch 'bugfix/assert_on_pin_task_nonexistent_cpu' into 'master'
Ivan Grokhotkov [Fri, 28 Apr 2017 11:55:26 +0000 (19:55 +0800)]
Merge branch 'bugfix/assert_on_pin_task_nonexistent_cpu' into 'master'

Assert when a new task is started on a nonexisting CPU

Previously, starting a task on a CPU ID higher than the amount of CPUs FreeRTOS is configured with would not start the task and possibly have unintended side effects due to some out-of-bounds array writes. Assert on this so the app aborts cleanly.

See merge request !701

7 years agoMerge branch 'bugfix/fix_wifi_ebuf_sanity_check_not_pass_issue' into 'master'
Ivan Grokhotkov [Fri, 28 Apr 2017 11:54:46 +0000 (19:54 +0800)]
Merge branch 'bugfix/fix_wifi_ebuf_sanity_check_not_pass_issue' into 'master'

esp32: update WiFi lib for ebuf sanity check fail issue

By default the WiFi canary check is disabled, before release 2.1, we only have canary check for AMPDU, in release2.1, we add sanity check for all kinds of dynamic ebuf, the checking is disabled by default for performance reason. We found some kinds of packets can't pass sanity check, this MR is to fix it.

See merge request !718

7 years agoexamples: fix timezone for China in SNTP example
Ivan Grokhotkov [Fri, 28 Apr 2017 11:37:14 +0000 (19:37 +0800)]
examples: fix timezone for China in SNTP example

Daylight saving time isn’t observed in China.

Fixes https://github.com/espressif/esp-idf/issues/549

7 years agocomponent/bt:Fixed the bug for #11754:GATT service should provide command to set...
Yulong [Fri, 28 Apr 2017 11:23:52 +0000 (07:23 -0400)]
component/bt:Fixed the bug for #11754:GATT service should provide command to set char/descriptor read value.

7 years agocompoent/bt:Fixed the BT/BLE statck bug from bluedroid7.1.1
Yulong [Fri, 28 Apr 2017 09:31:57 +0000 (05:31 -0400)]
compoent/bt:Fixed the BT/BLE statck bug from bluedroid7.1.1

7 years agoesp32: update WiFi lib for ebuf sanity check fail issue
Liu Zhi Fu [Fri, 28 Apr 2017 09:27:55 +0000 (17:27 +0800)]
esp32: update WiFi lib for ebuf sanity check fail issue

Fix WiFi ebuf sanity check issue

7 years agocomponent/bt : change VHCI interrupt type to software interrupt(int no 7)
Tian Hao [Fri, 28 Apr 2017 09:17:39 +0000 (17:17 +0800)]
component/bt : change VHCI interrupt type to software interrupt(int no 7)

7 years agoMerge branch 'bugfix/adjust_lwip_options_and_update_wifi_lib' into 'master'
Jiang Jiang Jian [Fri, 28 Apr 2017 08:07:25 +0000 (16:07 +0800)]
Merge branch 'bugfix/adjust_lwip_options_and_update_wifi_lib' into 'master'

esp32/lwip: adjust some lwip options and update wifi lib

1. Modify TCP TX window from 2 to 4 to keep RX/TX window same size
2. Modify TCPIP task stack default size from 2048 to 2560 to avoid stack overflow
3. Update wifi lib for TCP performance optimization

See merge request !714

7 years agoesp32/lwip: adjust some lwip options and update wifi lib
Liu Zhi Fu [Thu, 27 Apr 2017 13:58:38 +0000 (21:58 +0800)]
esp32/lwip: adjust some lwip options and update wifi lib

1. Modify TCP TX window from 2 to 4
2. Modify TCPIP task stack default size from 2048 to 2560
3. Update wifi lib for TCP performance optimization

7 years agoMerge branch 'bugfix/i2s_driver' into 'master'
Angus Gratton [Fri, 28 Apr 2017 00:00:07 +0000 (08:00 +0800)]
Merge branch 'bugfix/i2s_driver' into 'master'

I2S driver - fixed support for 24 and 32-bits, fixed tx/rx at the same time

- Modify sample can test with 24, 32-bits audio
- Add i2s sample README
- simply i2s_push function
- change sample rates, bits per sample, channel on fly

See merge request !483

7 years agoMerge branch 'feature/doc_get-started' into 'master'
Angus Gratton [Thu, 27 Apr 2017 23:14:12 +0000 (07:14 +0800)]
Merge branch 'feature/doc_get-started' into 'master'

doc: Getting Started guides

* [x] Redesign ReadTheDocs home page to cover the following sections:
  * Get Started (new  + revised contents, see below)
  * API Reference
  * H/W Reference
  * API Guides (former "What Else?")
  * Contribute
  * Resources

* [x] Convert "Getting Started" guides from PDF to RST, review and update
  * ESP32-DevKitC Getting Started Guide
  * ESP-WROVER-KIT Getting Started Guide

* [x] Review installation  manuals for Windows, Linux and MacOS

  * Separate "Standard / cookie cutter" contents from "Advanced / customize this installation" contents
  * Harmonize "Standard" installation instructions by providing distinct sections

      * (1) Install Prerequisites
      * (2) Install Toolchain (binary only)
      * (-) O/S flavors, ref to "Advanced" installation

* [x] Extract / update existing instructions common to all O/S - idf-template based
  * (3) Get esp-idf
  * (4) Start a Project
  * (5) Connect
  * (6) Build and Flash
  * (7) Monitor

* [x] Correct partition table address from 0x4000 to 0x8000 in `docs/get-started/make-project.rst` and `README.md`

See merge request !612

7 years agoGetting started guides
krzychb [Sun, 26 Mar 2017 22:01:52 +0000 (00:01 +0200)]
Getting started guides

7 years agoMerge branch 'feature/ci_minor_fixes' into 'master'
Ivan Grokhotkov [Thu, 27 Apr 2017 16:25:13 +0000 (00:25 +0800)]
Merge branch 'feature/ci_minor_fixes' into 'master'

ci minor fixes

See merge request !707

7 years agoMerge branch 'bugfix/spi_master_ci_test_fix' into 'master'
Ivan Grokhotkov [Thu, 27 Apr 2017 16:24:28 +0000 (00:24 +0800)]
Merge branch 'bugfix/spi_master_ci_test_fix' into 'master'

Fix SPI master CI test

CI test fails because the values it checks haven't been updated to the changes in the clock calculations. This fixes that.

See merge request !710

7 years agoMerge branch 'bugfix/freertos_suspend_resume' into 'master'
Jiang Jiang Jian [Thu, 27 Apr 2017 13:16:15 +0000 (21:16 +0800)]
Merge branch 'bugfix/freertos_suspend_resume' into 'master'

freertos: Enable vTaskSuspend()/vTaskResume() API

Adds relevant unit tests.

TW11878

See merge request !702

7 years agoMerge branch 'bugfix/btdm_gattc_adv_bug' into 'master'
Jiang Jiang Jian [Thu, 27 Apr 2017 13:13:16 +0000 (21:13 +0800)]
Merge branch 'bugfix/btdm_gattc_adv_bug' into 'master'

component/bt: Fix memory leakage, connection fail bugs

- Fix memory leakage while deregisting gatt app
- Fix Android connection failed problem
- Fix service_uuid_len error in adv data

See merge request !706

7 years agoMerge branch 'feature/btdm_ble_bt_separa' into 'master'
Jiang Jiang Jian [Thu, 27 Apr 2017 13:12:44 +0000 (21:12 +0800)]
Merge branch 'feature/btdm_ble_bt_separa' into 'master'

Feature/btdm ble bt separa

@Jack @snake @igrokhotkov @angus @island please help to review the code.
Separate the bt/ble code. After the separate, can save 15k~25k ram & 240k~460k code size(depending on the menuconfig).

See merge request !684

7 years agoMerge branch 'feature/opt_scan_before_connect' into 'master'
Jiang Jiang Jian [Thu, 27 Apr 2017 13:11:13 +0000 (21:11 +0800)]
Merge branch 'feature/opt_scan_before_connect' into 'master'

optimize scan before station connecting to AP

1. Store the information of AP(ssid, password, bssid, channel, etc)
    into nvs when station connects to AP successfully. If station
    connects to the same AP next time, it will scan the stored channel of the AP
    first.

2. Add a parameter of channel for scanning before connecting to AP.
    If the channel is set to 0, station will scan full channels. If it
    is set to 1~13, station will only scan the channel.

See merge request !704