]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agoMerge branch 'bugfix/OTA_and_flash_encryption_incompatible' into 'master'
Ivan Grokhotkov [Wed, 15 Feb 2017 05:24:10 +0000 (13:24 +0800)]
Merge branch 'bugfix/OTA_and_flash_encryption_incompatible' into 'master'

bootloader_support: fix bug OTA & flash encryption incompatible

github issue:https://github.com/espressif/esp-idf/issues/253

See merge request !464

7 years agoMerge branch 'bugfix/update_wifi_lib_to_include_some_fix_and_optimization' into ...
Jiang Jiang Jian [Mon, 13 Feb 2017 13:22:43 +0000 (21:22 +0800)]
Merge branch 'bugfix/update_wifi_lib_to_include_some_fix_and_optimization' into 'master'

esp32: update wifi lib for some fixes and optimizations

1. Reduce the default static rx buffer size from 25 to 10
2. Adjust ampdu interrupt size to 3, namely, raise 1 interrupt per 3-mpdu
3. Make a copy for all received packets, including AMSDU/AMPDU/MPDU
4. Fix softap mis-forward issue
5. Fix pp q full issue
6. Fix sniffer copy wrong content issue

See merge request !491

7 years agoMerge branch 'bugfix/btdm_blufi' into 'master'
Jiang Jiang Jian [Mon, 13 Feb 2017 06:52:46 +0000 (14:52 +0800)]
Merge branch 'bugfix/btdm_blufi' into 'master'

fix BLUFI bug

fix BLUFI bug with small MTU size

See merge request !493

7 years agoMerge branch 'bugfix/btdm_gatt_memleak' into 'master'
Jiang Jiang Jian [Mon, 13 Feb 2017 06:30:09 +0000 (14:30 +0800)]
Merge branch 'bugfix/btdm_gatt_memleak' into 'master'

component/bt : fix GATT disconnect memory leak bug

fix a bug of memory leak of GATT disconnection

See merge request !496

7 years agoMerge branch 'bugfix/btdm_demo_adv_raw_data' into 'master'
Jiang Jiang Jian [Mon, 13 Feb 2017 06:27:21 +0000 (14:27 +0800)]
Merge branch 'bugfix/btdm_demo_adv_raw_data' into 'master'

component/bt : use real adv data to set raw adv data

Use real advertising data to set raw advertising data in GATT-SERVER demo.

See merge request !492

7 years agocomponent/bt : fix GATT disconnect memory leak bug
Tian Hao [Mon, 13 Feb 2017 06:00:26 +0000 (14:00 +0800)]
component/bt : fix GATT disconnect memory leak bug

7 years agocomponent/bt : use real adv data to set raw adv data
Tian Hao [Fri, 10 Feb 2017 03:02:10 +0000 (11:02 +0800)]
component/bt : use real adv data to set raw adv data

7 years agocomponent/bt : fix BLUFI bug with small MTU size
Tian Hao [Wed, 8 Feb 2017 07:03:57 +0000 (15:03 +0800)]
component/bt : fix BLUFI bug with small MTU size

7 years agoesp32: update wifi lib for some fixes and optimizations
Liu Zhi Fu [Fri, 10 Feb 2017 02:28:03 +0000 (10:28 +0800)]
esp32: update wifi lib for some fixes and optimizations

1. Reduce the default static rx buffer size from 25 to 10
2. Adjust ampdu interrupt size to 3, namely, raise 1 interrupt per 3-mpdu
3. Make a copy for all received packets, including AMSDU/AMPDU/MPDU
4. Fix softap mis-forward issue
5. Fix pp q full issue
6. Fix sniffer copy wrong content issue

7 years agoMerge branch 'test/get_test_env_config_from_gitlab' into 'master'
Ivan Grokhotkov [Wed, 8 Feb 2017 08:56:38 +0000 (16:56 +0800)]
Merge branch 'test/get_test_env_config_from_gitlab' into 'master'

CI: get test env config from gitlab

Previous design was put test env config on local runners. It's not easy to manage as test runners count growing.

Now we'll put config files for test runners to a Gitlab repository. Test runners will get its config from Gitlab every time before running.

See merge request !480

7 years agoMerge branch 'bugfix/yield_other_core_prio_check_fix' into 'master'
Jeroen Domburg [Wed, 8 Feb 2017 04:19:34 +0000 (12:19 +0800)]
Merge branch 'bugfix/yield_other_core_prio_check_fix' into 'master'

Fix interrupting task on other CPU that has lower prio than current task on current CPU

Fix for a very subtle bug introduced somewhere in december. This bug would cause a cross-core interrupt to only be sent if the activated task has a higher priority than the task currently running on *this* cpu, instead of on the other CPU.

See merge request !475

7 years agoMerge branch 'bugfix/fix_several_wifi_misc_issues' into 'master'
Jiang Jiang Jian [Tue, 7 Feb 2017 03:15:58 +0000 (11:15 +0800)]
Merge branch 'bugfix/fix_several_wifi_misc_issues' into 'master'

esp32: fix several misc wifi issue

1. Fix ssid_str not free issue
2. Fix sniffer not work issue
3. Fix null parameter cause esp_wifi_init crash issue
4. Enable ap ampdu rx interface

See merge request !484

7 years agoesp32: fix several misc wifi issue
Liu Zhi Fu [Mon, 6 Feb 2017 09:56:42 +0000 (17:56 +0800)]
esp32: fix several misc wifi issue

1. Fix ssid_str not free issue
2. Fix sniffer not work issue
3. Fix null parameter cause esp_wifi_init crash issue
4. Enable ap ampdu rx interface

7 years agoFix interrupting task on other CPU that has lower prio than current task on current CPU
Jeroen Domburg [Fri, 27 Jan 2017 09:17:05 +0000 (17:17 +0800)]
Fix interrupting task on other CPU that has lower prio than current task on current CPU

7 years agoMerge branch 'bugfix/esp32_core_dump_wd_uart' into 'master'
Ivan Grokhotkov [Mon, 6 Feb 2017 09:44:08 +0000 (17:44 +0800)]
Merge branch 'bugfix/esp32_core_dump_wd_uart' into 'master'

esp32: Fixes watchdog problem when printing core dump to uart

1) Fixes watchdog problem when printing core dump to uart
2) Also fixes generation of core dumps when flash cache is disabled

See merge request !472

7 years agoMerge branch 'bugfix/ethernet_flow_ctrl' into 'master'
Wu Jian Gang [Mon, 6 Feb 2017 05:42:18 +0000 (13:42 +0800)]
Merge branch 'bugfix/ethernet_flow_ctrl' into 'master'

ethernet:disable flow control when select l2_to_l3_copy_mode

Disable flow control when select l2_to_l3_copy_mode ,because this mode can not touch flow control watermark  .

See merge request !482

7 years agoethernet:disable flow control when select l2_to_l3_copy_mode
shangke [Mon, 6 Feb 2017 03:19:16 +0000 (11:19 +0800)]
ethernet:disable flow control when select l2_to_l3_copy_mode

7 years agoOTA: Always clean up OTA handle regardless of esp_ota_end() result
Angus Gratton [Thu, 2 Feb 2017 23:07:30 +0000 (10:07 +1100)]
OTA: Always clean up OTA handle regardless of esp_ota_end() result

As reported on forum: http://esp32.com/viewtopic.php?f=14&t=1093

7 years agoCI: get test env config from gitlab
He Yin Ling [Thu, 2 Feb 2017 13:59:00 +0000 (21:59 +0800)]
CI: get test env config from gitlab

Previous design was put test env config on local runners. It's not easy
to manage as test runners count growing. Now we'll put config files for
test runners to a Gitlab repository. Test runners will get its config
from Gitlab every time before running.

7 years agoesp32: Fixes watchdog problem when printing core dump to uart
Alexey Gerenkov [Thu, 19 Jan 2017 17:24:55 +0000 (20:24 +0300)]
esp32: Fixes watchdog problem when printing core dump to uart

Also fixes generation of core dumps when flash cache is disabled

7 years agoMerge branch 'bugfix/esp32_core_dump_esptool_search_path' into 'master'
Ivan Grokhotkov [Wed, 1 Feb 2017 05:59:40 +0000 (13:59 +0800)]
Merge branch 'bugfix/esp32_core_dump_esptool_search_path' into 'master'

esp32: Fixed search path for esptool

@igrokhotkov @angus Could you review the fix?

See merge request !474

7 years agoMerge branch 'bugfix/esp32_core_dump_doc' into 'master'
Ivan Grokhotkov [Wed, 1 Feb 2017 05:59:15 +0000 (13:59 +0800)]
Merge branch 'bugfix/esp32_core_dump_doc' into 'master'

esp32: Fixed and updated core dump docs

See merge request !473

7 years agoMerge branch 'feature/openssl_option' into 'master'
Angus Gratton [Fri, 27 Jan 2017 00:37:02 +0000 (08:37 +0800)]
Merge branch 'feature/openssl_option' into 'master'

components/openssl: refactor openssl debugging and assert function

1. add openssl option at menuconfig
2. remove SSL_ERR to reduce complexity
3. add more functions about debugging and assert

According these, our coders and customers may use and debug the OpenSSL code easily.

See merge request !400

7 years agoMerge branch 'bugfix/encrypted_partition_flag' into 'master'
Angus Gratton [Fri, 27 Jan 2017 00:34:08 +0000 (08:34 +0800)]
Merge branch 'bugfix/encrypted_partition_flag' into 'master'

Use PART_FLAG_ENCRYPTED value in gen_esp32part.py

Currently paritions marked as encrypted by gen_esp32part.py are not
recognized as such and encrypted writes don't work.

This is part of espressif/esp-idf#253

Merges Pull Request #293 https://github.com/espressif/esp-idf/pull/293

See merge request !470

7 years agoMerge branch 'feature/custom_partition_table_csv_path' into 'master'
Angus Gratton [Fri, 27 Jan 2017 00:33:41 +0000 (08:33 +0800)]
Merge branch 'feature/custom_partition_table_csv_path' into 'master'

Allow providing custom PARTITION_TABLE_CSV_PATH

Provide direct absolute path to CSV, without project_path

Github pull request #296: https://github.com/espressif/esp-idf/pull/296

See merge request !469

7 years agoMerge branch 'bugfix/spi_multiple_cs_fix' into 'master'
Angus Gratton [Fri, 27 Jan 2017 00:33:16 +0000 (08:33 +0800)]
Merge branch 'bugfix/spi_multiple_cs_fix' into 'master'

Add missing variable initialisation to make SPI work for multiple CS

Ref https://github.com/espressif/esp-idf/pull/277
From PR: "I am not especially familiar with this platform or with esp-idf -- so review with care.

The spi-master driver would not work for me when the number of devices on a bus exceeded 1 (caused device hang). I believe this is because cur_cs is not properly set (anywhere), and yet is used. This is likely just not noticed because 0 is presumably the correct value when there's only 1 device (and I'm guessing multi-device setup is not tested as thoroughly).

Simply setting cur_cs to the correct slot value resolves the problem and multiple devices on a single bus behave correctly in my test environment."

Looks like a small oversight on my side.

See merge request !468

7 years agoesp32: Fixed search path for esptool
Alexey Gerenkov [Thu, 26 Jan 2017 15:01:55 +0000 (18:01 +0300)]
esp32: Fixed search path for esptool

7 years agoesp32: Fixed and updated core dump docs
Alexey Gerenkov [Thu, 26 Jan 2017 15:47:10 +0000 (18:47 +0300)]
esp32: Fixed and updated core dump docs

7 years agoMerge branch 'bugfix/fix_two_wifi_datapath_issues' into 'master'
Jiang Jiang Jian [Thu, 26 Jan 2017 13:52:28 +0000 (21:52 +0800)]
Merge branch 'bugfix/fix_two_wifi_datapath_issues' into 'master'

esp32: udpate wifi lib to fix two datapath issues

1. fix ampdu<->mpdu<->ampdu switch may cause rx slow issue by put mpdu into ampdu reorder queue
2. fix each ac first sending always fail issue by adding retry

See merge request !471

7 years agoFreeRTOS: esp_crosscore_int_send_yield() should be in IRAM
Angus Gratton [Thu, 26 Jan 2017 07:31:15 +0000 (18:31 +1100)]
FreeRTOS: esp_crosscore_int_send_yield() should be in IRAM

Possible for xQueueGenericSendFromISR -> xTaskRemoveFromEventQueueList
-> taskYIELD_OTHER_CORE code path to occur while cache is off.

7 years agoOTA: Fix issues with encrypted OTA
Angus Gratton [Thu, 26 Jan 2017 07:30:32 +0000 (18:30 +1100)]
OTA: Fix issues with encrypted OTA

- OTA source can write non-16-byte multiples of data
- Assumption that empty ota_data is 0xFFFFFFFF untrue when encrypted

7 years agoesp32: udpate wifi lib to fix two datapath issues
Liu Zhi Fu [Thu, 26 Jan 2017 07:35:04 +0000 (15:35 +0800)]
esp32: udpate wifi lib to fix two datapath issues

1. fix ampdu<->mpdu<->ampdu switch may cause rx slow issue by put mpdu into ampdu reorder queue
2. fix each ac first sending always fail issue by adding retry

7 years agoFlash encryption: Temporary fix for issue with stale cache reads
Angus Gratton [Thu, 26 Jan 2017 07:29:18 +0000 (18:29 +1100)]
Flash encryption: Temporary fix for issue with stale cache reads

Seems doing certain kinds of short reads while flash encryption is
enabled will return stale data. This fixes it, but is probably a
little heavy-handed performance wise.

7 years agoOTA: Improve verification of OTA image before writing, incl. secure boot
Angus Gratton [Thu, 26 Jan 2017 05:18:58 +0000 (16:18 +1100)]
OTA: Improve verification of OTA image before writing, incl. secure boot

Verify 0xE9 magic byte on first write, verify entire image before
switching.

Enable verification for secure boot signature (was using invalid ifdef
guard)

7 years agoOTA: Fall back to factory partition if ota data partition is invalid
Angus Gratton [Thu, 26 Jan 2017 05:19:45 +0000 (16:19 +1100)]
OTA: Fall back to factory partition if ota data partition is invalid

7 years agobootloader_support: fix bug OTA & flash encryption incompatible
Tian Zhong Xing [Tue, 24 Jan 2017 10:30:13 +0000 (18:30 +0800)]
bootloader_support: fix bug OTA & flash encryption incompatible

ota data partition should be encrypted unconditionally when flash encrypt enable

7 years agoMerge branch 'feature/add_build_at_job_in_ci' into 'master'
Ivan Grokhotkov [Thu, 26 Jan 2017 02:46:45 +0000 (10:46 +0800)]
Merge branch 'feature/add_build_at_job_in_ci' into 'master'

CI: add job to check build esp-at in esp-idf

Add a job to check if latest IDF breaks `esp-at` build.

As `esp-at` is an application and has its own CI, we don't save binary as artifacts.

See merge request !462

7 years agocomponents/openssl: Add more debugging information at platform level
Dong Heng [Thu, 26 Jan 2017 02:12:58 +0000 (10:12 +0800)]
components/openssl: Add more debugging information at platform level

7 years agoUse PART_FLAG_ENCRYPTED value in gen_esp32part.py
Deomid Ryabkov [Tue, 24 Jan 2017 14:42:02 +0000 (14:42 +0000)]
Use PART_FLAG_ENCRYPTED value in gen_esp32part.py

Currently paritions marked as encrypted by gen_esp32part.py are not
recognized as such and encrypted writes don't work.

This is part of espressif/esp-idf#253

7 years agoAdd missing variable initialisation.
Dermot Duffy [Sat, 21 Jan 2017 15:39:36 +0000 (15:39 +0000)]
Add missing variable initialisation.

Signed-off-by: Jeroen Domburg <jeroen@espressif.com>
7 years agoMerge branch 'lwip/optimize_dhcpc_taken_time' into 'master'
Jiang Jiang Jian [Wed, 25 Jan 2017 13:39:17 +0000 (21:39 +0800)]
Merge branch 'lwip/optimize_dhcpc_taken_time' into 'master'

lwip: optimize the dhcp client

1. modify the discover retry backoff time from (2,4,8,16,32,60,60)s to (500m,1,2,4,8,15,15)s.
2. add DHCP_DOES_ARP_CHECK to menuconfig for users to specify if do a ARP check on the offered address.
   If enable, one more second will be taken.

See merge request !459

7 years agoMerge branch 'bugfix/btdm_debug_gatt_attr_table' into 'master'
Ivan Grokhotkov [Wed, 25 Jan 2017 03:48:09 +0000 (11:48 +0800)]
Merge branch 'bugfix/btdm_debug_gatt_attr_table' into 'master'

component/bt: Fix Gatt table read_req bug and advertising channel 39 not available bug

1. Fix Gatt table read request bug
2. Fix advertising channel 39 not available bug

See merge request !463

7 years agocomponent/bt: Fix Gatt table read_req bug and advertising channel 39 not available bug
Island [Tue, 24 Jan 2017 10:38:50 +0000 (18:38 +0800)]
component/bt: Fix Gatt table read_req bug and advertising channel 39 not available bug

7 years agoAllow providing custom PARTITION_TABLE_CSV_PATH
Deomid Ryabkov [Wed, 21 Dec 2016 18:18:42 +0000 (18:18 +0000)]
Allow providing custom PARTITION_TABLE_CSV_PATH

Provide direct absolute path to CSV, without project_path

7 years agocomponents/openssl: fixes for github issues 219
Dong Heng [Tue, 24 Jan 2017 09:36:32 +0000 (17:36 +0800)]
components/openssl: fixes for github issues 219

"SSL_write" doesn't send large buffers correctly

7 years agoCI: add job to check build esp-at in esp-idf
He Yin Ling [Tue, 24 Jan 2017 07:05:39 +0000 (15:05 +0800)]
CI: add job to check build esp-at in esp-idf

7 years agolwip: optimize the dhcp client
qiyueixa [Sun, 22 Jan 2017 12:32:39 +0000 (20:32 +0800)]
lwip: optimize the dhcp client

1. modify the discover retry backoff time from (2,4,8,16,32,60,60)s to (500m,1,2,4,8,15,15)s.
2. add DHCP_DOES_ARP_CHECK to menuconfig for users to specify if do a ARP check on the offered address.
   If enable, one more second will be taken in obtaining IP address.
3. update wifi libs

7 years agoMerge branch 'feature/spi_flash_write_16bytes' into 'master' v2.0-rc1
Ivan Grokhotkov [Fri, 20 Jan 2017 12:09:48 +0000 (20:09 +0800)]
Merge branch 'feature/spi_flash_write_16bytes' into 'master'

SPI Flash: Allow 16 byte aligned encrypted writes

Also includes some improved documentation

See merge request !456

7 years agospi_flash: Move FLASH_PAGE_SIZE constant into esp_spi_flash.h
Angus Gratton [Fri, 6 Jan 2017 00:24:24 +0000 (11:24 +1100)]
spi_flash: Move FLASH_PAGE_SIZE constant into esp_spi_flash.h

7 years agodocs: spi_flash: Add flash encryption ops, remove boilerplate
Angus Gratton [Fri, 6 Jan 2017 00:17:29 +0000 (11:17 +1100)]
docs: spi_flash: Add flash encryption ops, remove boilerplate

7 years agospi_flash_write_encrypted: Allow 16-byte aligned block writes
Angus Gratton [Wed, 4 Jan 2017 06:53:15 +0000 (17:53 +1100)]
spi_flash_write_encrypted: Allow 16-byte aligned block writes

As each 32 byte write has two identical 16 byte AES blocks, it's
possible to write them separately.

7 years agospi_flash: Flush flash cache if flash_mmap()ing a written-to page
Angus Gratton [Thu, 5 Jan 2017 04:51:02 +0000 (15:51 +1100)]
spi_flash: Flush flash cache if flash_mmap()ing a written-to page

Without this, it's possible for stale information to be read from
cache via mmap, even if the MMU table entry had been invalidated
prior to writing flash (if  the same MMU table entry was re-used after
writing flash.)

7 years agospiflash: Add spi_flash_read_encrypted() function
Angus Gratton [Wed, 4 Jan 2017 06:37:15 +0000 (17:37 +1100)]
spiflash: Add spi_flash_read_encrypted() function

7 years agoMerge branch 'feature/deploy_tags' into 'master'
Ivan Grokhotkov [Fri, 20 Jan 2017 11:38:02 +0000 (19:38 +0800)]
Merge branch 'feature/deploy_tags' into 'master'

ci: deploy code and docs for tags

Currently deploy happens only for the master branch.
This change is needed to support tags in release branches.

See merge request !458

7 years agoci: deploy code and docs for release branches
Ivan Grokhotkov [Fri, 20 Jan 2017 07:46:09 +0000 (15:46 +0800)]
ci: deploy code and docs for release branches

Currently deploy happens only for the master branch.
This change is needed to support release branches.

7 years agoMerge branch 'bugfix/misc_fixes' into 'master'
Ivan Grokhotkov [Fri, 20 Jan 2017 09:53:12 +0000 (17:53 +0800)]
Merge branch 'bugfix/misc_fixes' into 'master'

Misc fixes (including Github PRs)

Collection of single commit fixes, including several from Github.

See merge request !457

7 years agoMerge branch 'feature/docs_gh_link_roles' into 'master'
Ivan Grokhotkov [Fri, 20 Jan 2017 09:47:34 +0000 (17:47 +0800)]
Merge branch 'feature/docs_gh_link_roles' into 'master'

docs: use custom roles to generate GitHub links

This change replaces direct links to GitHub master branch with
auto-generated links using docutils custom roles.
These auto-generated links point to the tree or blob for the git commit
ID (or tag) of the repository. This is needed to ensure that links don’t
become broken when files in master branch are moved around or deleted.

The following roles are introduced:

```
- :idf:`path` - points to directory inside ESP-IDF
- :idf_blob:`path` - points to file inside ESP-IDF
- :idf_raw:`path` - points to raw view of the file inside ESP-IDF
- :component:`path` - points to directory inside ESP-IDF components dir
- :component_blob:`path` - points to file inside ESP-IDF components dir
- :component_raw:`path` - points to raw view of the file inside ESP-IDF
  components dir
- :example:`path` - points to directory inside ESP-IDF examples dir
- :example_blob:`path` - points to file inside ESP-IDF examples dir
- :example_raw:`path` - points to raw view of the file inside ESP-IDF
  examples dir
```

A check is added to the CI build script, which searches RST files for
presence of hard-coded links (identified by tree/master, blob/master,
or raw/master part of the URL).
This check can be run manually: cd docs && make gh-linkcheck

Additionally, Sphinx linkcheck build type is used to create new CI test,
which check for broken links. This test has to be triggered explicitly,
because including it in normal build process (when the commit is not yet
deployed to Github) will not work. It can be triggered in a regular
fashion using a combination of cron and Curl, similar to stress tests.

See merge request !455

7 years agodocs: use custom roles to generate GitHub links
Ivan Grokhotkov [Thu, 19 Jan 2017 08:16:06 +0000 (16:16 +0800)]
docs: use custom roles to generate GitHub links

This change replaces direct links to GitHub master branch with
auto-generated links using docutils custom roles.
These auto-generated links point to the tree or blob for the git commit
ID (or tag) of the repository. This is needed to ensure that links don’t
become broken when files in master branch are moved around or deleted.

The following roles are introduced:

- :idf:`path` - points to directory inside ESP-IDF
- :idf_blob:`path` - points to file inside ESP-IDF
- :idf_raw:`path` - points to raw view of the file inside ESP-IDF
- :component:`path` - points to directory inside ESP-IDF components dir
- :component_blob:`path` - points to file inside ESP-IDF components dir
- :component_raw:`path` - points to raw view of the file inside ESP-IDF
  components dir
- :example:`path` - points to directory inside ESP-IDF examples dir
- :example_blob:`path` - points to file inside ESP-IDF examples dir
- :example_raw:`path` - points to raw view of the file inside ESP-IDF
  examples dir

A check is added to the CI build script, which searches RST files for
presence of hard-coded links (identified by tree/master, blob/master,
or raw/master part of the URL).
This check can be run manually: cd docs && make gh-linkcheck

Additionally, Sphinx linkcheck build type is used to create new CI test,
which check for broken links. This test has to be triggered explicitly,
because including it in normal build process (when the commit is not yet
deployed to Github) will not work. It can be triggered in a regular
fashion using a combination of cron and Curl, similar to stress tests.

7 years agoMerge branch 'feature/esptool_v20_beta' into 'master'
Angus Gratton [Fri, 20 Jan 2017 07:45:03 +0000 (15:45 +0800)]
Merge branch 'feature/esptool_v20_beta' into 'master'

Update esptool.py to v2.0-beta1

* Minor bug fixes, no major functionality changes from the esp-idf perspective.
* Now tracks master branch of esptool repo (finally!)
* Supports Python 3, although our other esp-idf Python tools don't yet support Python 3.

See merge request !396

7 years agogatts_demo: re-enter advertising after client disconnects
Mike Ryan [Thu, 12 Jan 2017 00:40:37 +0000 (16:40 -0800)]
gatts_demo: re-enter advertising after client disconnects

In the existing tree, after a connected client disconnects the device
will never re-enter the advertising state. Additional clients will not
be able to discover or connect to the device. This patch forces the
device back into the advertising state upon disconnection.

Resolves Pull Request #217 https://github.com/espressif/esp-idf/pull/217

7 years agoAdd missing bit from LEDC interrupt state struct.
Dermot Duffy [Sat, 31 Dec 2016 01:09:54 +0000 (01:09 +0000)]
Add missing bit from LEDC interrupt state struct.

Resolves #191 https://github.com/espressif/esp-idf/pull/191

7 years agonetconn_gethostbyname: Fix race reporting success
Jan Schmidt [Fri, 20 Jan 2017 03:17:03 +0000 (14:17 +1100)]
netconn_gethostbyname: Fix race reporting success

If the DNS request is dispatched and performed very quickly,
then it can complete before tcpip_callback() actually returns,
in which case we'll destroy the actual err_t error value passed
in the message. Use a local variable for the tcpip_callback
error code so that can't happen.

Resolves #269 https://github.com/espressif/esp-idf/pull/269

7 years agogpio: Attach gpio intr to the isr_server on the right core.
Jan Schmidt [Thu, 19 Jan 2017 12:46:41 +0000 (23:46 +1100)]
gpio: Attach gpio intr to the isr_server on the right core.

Make sure GPIO interrupts get attached to the core that
the ISR service routine is running on, otherwise they
don't arrive.

7 years agoesp_panic.h: Add C++ include guards
Angus Gratton [Tue, 17 Jan 2017 23:57:53 +0000 (10:57 +1100)]
esp_panic.h: Add C++ include guards

7 years agobt: esp_ble_gatts_send_indicate: Fix description
Angus Gratton [Thu, 12 Jan 2017 02:30:39 +0000 (13:30 +1100)]
bt: esp_ble_gatts_send_indicate: Fix description

7 years agoMerge branch 'bugfix/ci_test_result_always_fail' into 'master'
Ivan Grokhotkov [Fri, 20 Jan 2017 03:13:41 +0000 (11:13 +0800)]
Merge branch 'bugfix/ci_test_result_always_fail' into 'master'

CI: fix bug that test result always fail

CI test report jobs always fails because of 2 bugs:

1. merge/rebase error: the variable used to log test result is modified during merge/rebase
2. path of unit test module definition file is not correct

See merge request !454

7 years agoCI: fix merge error on test report job
He Yin Ling [Thu, 19 Jan 2017 15:37:12 +0000 (23:37 +0800)]
CI: fix merge error on test report job

the variable used to save report result is changed by merge error

7 years agoMerge branch 'bugfix/ethernet_flow_control' into 'master'
Jiang Jiang Jian [Thu, 19 Jan 2017 14:16:40 +0000 (22:16 +0800)]
Merge branch 'bugfix/ethernet_flow_control' into 'master'

ethernet: limit rx buf num when flow ctrl enable.

See merge request !452

7 years agoCI: fix bug that test result always fail
He Yin Ling [Thu, 19 Jan 2017 10:59:50 +0000 (18:59 +0800)]
CI: fix bug that test result always fail

the path of module definition file from unit test is not correct

7 years agoMerge branch 'feature/btdm_raw_adv' into 'master'
Jiang Jiang Jian [Thu, 19 Jan 2017 10:57:39 +0000 (18:57 +0800)]
Merge branch 'feature/btdm_raw_adv' into 'master'

Feature/btdm raw adv

Add APIs to set raw advertising data and scan response data by user self.

See merge request !451

7 years agoMerge branch 'bugfix/fix_ap_not_reply_ba_issue' into 'master'
Wu Jian Gang [Thu, 19 Jan 2017 10:27:48 +0000 (18:27 +0800)]
Merge branch 'bugfix/fix_ap_not_reply_ba_issue' into 'master'

esp32: update wifi lib to fix ap not respond BA bug

Currently softap doesn't replay BA when receiving AMPDU, this fix is to fix this bug

See merge request !453

7 years agoesp32: update wifi lib to fix ap not respond BA bug
Liu Zhi Fu [Thu, 19 Jan 2017 09:32:27 +0000 (17:32 +0800)]
esp32: update wifi lib to fix ap not respond BA bug

Currently softap doesn't respond BA when receiving AMPDU, this fix is to fix this bug

7 years agocomponent/bt : add api to set raw adv_data/scan_rsp_data
Tian Hao [Thu, 19 Jan 2017 03:49:59 +0000 (11:49 +0800)]
component/bt : add api to set raw adv_data/scan_rsp_data

1. add api to set raw scan response data
2. add api to set raw scan response data
3. update doxygen
4. add menuconfig to config gatt server demo

7 years agoethernet: limit rx buf num when flow ctrl enable.
shangke [Thu, 19 Jan 2017 08:45:30 +0000 (16:45 +0800)]
ethernet: limit rx buf num when flow ctrl enable.

7 years agoMerge branch 'bugfix/phy_auto_init' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 05:27:17 +0000 (13:27 +0800)]
Merge branch 'bugfix/phy_auto_init' into 'master'

Move PHY options out of WiFi config, improve descriptions

- move PHY-related settings into new menu, make it dependent on WIFI_ENABLED || BT_ENABLED

- improve descriptions of Ethernet Kconfig options

See merge request !443

7 years agokconfig: define ESP32_PHY_MAX_TX_POWER if PHY_ENABLED
Ivan Grokhotkov [Thu, 19 Jan 2017 02:58:09 +0000 (10:58 +0800)]
kconfig: define ESP32_PHY_MAX_TX_POWER if PHY_ENABLED

ESP32_PHY_MAX_TX_POWER option is only meaningful for WiFi, so previous
change made it depend on WIFI_ENABLED. However if WiFi is not enabled,
but BT is, this option becomes undefined which breaks phy_init_data
generation.

This change turns ESP32_PHY_MAX_TX_POWER into a hidden parameter, which
depends on PHY_ENABLED. New user-visible parameter,
ESP32_PHY_MAX_WIFI_TX_POWER is introduced which depends on WIFI_ENABLED
and is used as default value for ESP32_PHY_MAX_TX_POWER if WIFI_ENABLED
is set. Otherwise ESP32_PHY_MAX_WIFI_TX_POWER is set to 20.

7 years agoMerge branch 'feature/category_readme' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 02:19:06 +0000 (10:19 +0800)]
Merge branch 'feature/category_readme' into 'master'

Readme and links to example category folders

- Added README.md to example category folders, for BT ref. https://github.com/espressif/esp-idf/issues/262
- Added links from api category TOC to example category folders

See merge request !450

7 years agoMerge branch 'bugfix/console_uart_none' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 02:18:33 +0000 (10:18 +0800)]
Merge branch 'bugfix/console_uart_none' into 'master'

Fix compilation if CONSOLE_UART is set to NONE

CONFIG_CONSOLE_UART_BAUDRATE is not defined

See merge request !445

7 years agoMerge branch 'bugfix/lwip_tcpip_printf' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 02:18:12 +0000 (10:18 +0800)]
Merge branch 'bugfix/lwip_tcpip_printf' into 'master'

TCPIP: Do not printf if debug level is not correct

See merge request !448

7 years agoMerge branch 'bugfix/dhcp_debug_printf' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 02:17:53 +0000 (10:17 +0800)]
Merge branch 'bugfix/dhcp_debug_printf' into 'master'

DHCP: Do not printf if debug is not enabled

See merge request !447

7 years agoMerge branch 'bugfix/frc1_timer_clear' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 02:17:36 +0000 (10:17 +0800)]
Merge branch 'bugfix/frc1_timer_clear' into 'master'

newlib: fix register used for DPORT/RTC bug workaround

While there was no register at DR_REG_FRC_TIMER_BASE + 0x60, due to
peripheral address space wraparound this write actually affected one of
FRC2 registers, which is used by WiFi stack to implement legacy
ets_timer APIs.
This change uses FRC_TIMER_LOAD_REG(0) instead, which can be set to
known value safely.

See merge request !449

7 years agoMerge branch 'bugfix/flash_op_unpinned_task' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 02:14:34 +0000 (10:14 +0800)]
Merge branch 'bugfix/flash_op_unpinned_task' into 'master'

fixes for issues observed when using spi_flash

This MR fixes three unrelated issues:

- Race condition in spi_flash_enable_interrupts_caches_and_other_cpu
  when operations on unpinned tasks are performed.
  The issue is reported in https://github.com/espressif/esp-idf/pull/258

- esp_intr_noniram_disable doesn’t disable interrupts when compiled in
  release mode. This issue manifested itself with an illegal instruction
  exception when task WDT ISR was called at the time when flash was
  disabled.
  Fixes https://github.com/espressif/esp-idf/issues/263.

- Tick hooks on CPU1 were not called if CPU0 scheduler was disabled for
  significant amount of time (which could happen when doing flash erase).
  The issue manifested itself as “INT WDT timeout on core 1” error.
  Fixes https://github.com/espressif/esp-idf/issues/219.

See merge request !441

7 years agophyinit: Use PHY config to enable, don't need phy_get_romfunc_addr to init
Angus Gratton [Thu, 19 Jan 2017 00:18:44 +0000 (11:18 +1100)]
phyinit: Use PHY config to enable, don't need phy_get_romfunc_addr to init

7 years agoAdded links from api category TOC to example category folders
krzychb [Wed, 18 Jan 2017 20:04:11 +0000 (21:04 +0100)]
Added links from api category TOC to example category folders

Typo fix in bluetooth README.md

7 years agoAdded README.md to example category folders
krzychb [Wed, 18 Jan 2017 20:03:15 +0000 (21:03 +0100)]
Added README.md to example category folders

7 years agonewlib: fix register used for DPORT/RTC bug workaround
Ivan Grokhotkov [Wed, 18 Jan 2017 14:49:41 +0000 (22:49 +0800)]
newlib: fix register used for DPORT/RTC bug workaround

While there was no register at DR_REG_FRC_TIMER_BASE + 0x60, due to
peripheral address space wraparound this write actually affected one of
FRC2 registers, which is used by WiFi stack to implement legacy
ets_timer APIs.
This change uses FRC_TIMER_LOAD_REG(0) instead, which can be set to
known value safely.

7 years agoMerge branch 'bugfix/docs_cleanup' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 16:33:31 +0000 (00:33 +0800)]
Merge branch 'bugfix/docs_cleanup' into 'master'

Organize examples and API documentation - supplement to !430

This supplement to !430, both intended to replace bulky  !421.

1. Fixed broken links
2. Added links to available examples in API documentation, where missing
3. Updated links to point directly to example folder (to show README.md with example description)
4. Added README.md in docs folder info to point reader to ReadTheDocs instead of doc sources, ref. https://github.com/espressif/esp-idf/issues/243
5. Fixed some typo errors / Sphinx warnings
6. Fixed memory leak in example, ref. https://github.com/espressif/esp-idf/issues/209

See merge request !440

7 years agoethernet: improve kconfig option descriptions
Ivan Grokhotkov [Wed, 18 Jan 2017 16:32:10 +0000 (00:32 +0800)]
ethernet: improve kconfig option descriptions

Also limit suggested EMAC task priority range to 22, as the top priority
should be used only by IPC tasks.

7 years agokconfig: move PHY-related settings into new menu
Tian Hao [Wed, 18 Jan 2017 12:05:26 +0000 (20:05 +0800)]
kconfig: move PHY-related settings into new menu

- PHY options must be shown when either WIFI or BT is enabled.

- Add clarification that TX power option applies to WiFi only.

7 years agofreertos: call tick hooks on CPU1 even if CPU0 scheduler is suspended
Ivan Grokhotkov [Wed, 18 Jan 2017 15:14:29 +0000 (23:14 +0800)]
freertos: call tick hooks on CPU1 even if CPU0 scheduler is suspended

The block which dispatches ticks on CPU1 was a copy of the code block
for the normal path (CPU0). It used to check uxPendedTicks, with the
logic that uxPendedTicks can be 0 iff the scheduler is not suspended.

On CPU1 however, uxPendedTicks is not related to the state of the
scheduler (as uxPendedTicks is updated on CPU0). Due to this, if CPU0
scheduler was suspended, and uxPendedTicks happened to be nonzero,
tick hooks on CPU1 didn’t run, even though CPU1 scheduler was working.

This change removes the check for uxPendedTicks in CPU1 code path,
so that the tick hooks on CPU1 always get called (as for the CPU0 code
path).

7 years agoDo not printf if debug level is not correct
me-no-dev [Wed, 18 Jan 2017 14:13:09 +0000 (16:13 +0200)]
Do not printf if debug level is not correct

7 years agoDo not printf if debug is not enabled
me-no-dev [Wed, 18 Jan 2017 14:06:54 +0000 (16:06 +0200)]
Do not printf if debug is not enabled

7 years agoFix compilation if CONSOLE_UART is set to NONE
me-no-dev [Wed, 18 Jan 2017 13:36:10 +0000 (15:36 +0200)]
Fix compilation if CONSOLE_UART is set to NONE

CONFIG_CONSOLE_UART_BAUDRATE is not defined

7 years agoMerge branch 'bug/tw7809_sta_no_rewiring_softap' into 'master'
Jiang Jiang Jian [Wed, 18 Jan 2017 12:45:08 +0000 (20:45 +0800)]
Merge branch 'bug/tw7809_sta_no_rewiring_softap' into 'master'

tw7809: fix station no rewiring softap probability

See merge request !444

7 years agotw7809: fix station no rewiring softap probability
XiaXiaotian [Wed, 18 Jan 2017 12:17:03 +0000 (20:17 +0800)]
tw7809: fix station no rewiring softap probability

7 years agoMerge branch 'bugfix/partition_write_encrypted' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 10:32:03 +0000 (18:32 +0800)]
Merge branch 'bugfix/partition_write_encrypted' into 'master'

Allow writes to encrypted partitions

There is a size alignment requirement but it is checked by
spi_flash_write_encrypted. However, this check flat-out bans encrypted
writes.

Original PR on Github: https://github.com/espressif/esp-idf/pull/249

See merge request !432

7 years agointr_alloc: mark inline asm operand as earlyclobber
Ivan Grokhotkov [Wed, 18 Jan 2017 10:31:06 +0000 (18:31 +0800)]
intr_alloc: mark inline asm operand as earlyclobber

When compiling in release mode, compiler was choosing same register for
oldint and intmask variables, so INTENABLE was never modified.
This effectively broke disabling of non-IRAM interrupts during flash
operations, observed in the existing tests if task watchdog is enabled.
This change adds an extra constraint tells the compiler that output
operand should not be placed into the same register as an input one.

7 years agoMerge branch 'bugfix/btdm_isr_cache' into 'master'
Jiang Jiang Jian [Wed, 18 Jan 2017 09:38:55 +0000 (17:38 +0800)]
Merge branch 'bugfix/btdm_isr_cache' into 'master'

component/bt : move some codes of controller to iram

1. mv codes which called by isr into iram
2. mv libcoexist.a into iram

See merge request !442

7 years agoMerge branch 'feature/parse_unit_test_cases_from_test_files' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 09:23:04 +0000 (17:23 +0800)]
Merge branch 'feature/parse_unit_test_cases_from_test_files' into 'master'

Parse unit test cases from test files

As of now, we need to sync three different places when adding new unit test cases. The plan is to add a python script in tools/unit-test-app. This script would parse unit test cases from the C files with tests and generate the needed YAML files in components/idf_test/unit_test. CI would run this script in build stage to create the files and unit-test stage would use the generated files to run tests.

To get the needed test metadata, we need to add some more tags in the test case functions. For example:

```
TEST_CASE("SYS_LIB_0102 test time functions", "[stdlib][fails][env=UT_T1_APC]")
{
    //...
}
```

Reason for this kind of implementation is that we need the YAML files for generating documents.

See merge request !275

7 years agoCI: add script for parsing unit test cases for CI from test files
antti [Wed, 7 Dec 2016 05:58:51 +0000 (13:58 +0800)]
CI: add script for parsing unit test cases for CI from test files

Add python script that parses list of unit test cases for CI from component test folder

Modify .gitlab-ci.yml to run this script as part of build unit tests stage