]> granicus.if.org Git - esp-idf/log
esp-idf
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

7 years agoesp32: add [ignore] tag to some unit test cases for CI
antti [Wed, 14 Dec 2016 08:38:45 +0000 (16:38 +0800)]
esp32: add [ignore] tag to some unit test cases for CI

Add ignore tag on unit test cases that are not supported in CI yet

7 years agoesp32: add unit testing doc
antti [Mon, 5 Dec 2016 09:29:12 +0000 (17:29 +0800)]
esp32: add unit testing doc

7 years agocomponent/bt : move some codes of controller to iram
Tian Hao [Wed, 18 Jan 2017 08:38:06 +0000 (16:38 +0800)]
component/bt : move some codes of controller to iram

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

7 years agoMerge branch 'bugfix/btdm_minor_misc' into 'master'
Jiang Jiang Jian [Wed, 18 Jan 2017 08:14:50 +0000 (16:14 +0800)]
Merge branch 'bugfix/btdm_minor_misc' into 'master'

component/bt : fix gatt server table bugs

1. fix gatt server table bugs
2. fix blufi a minor bugs
3. fix example minor mistakes

See merge request !438

7 years agospi_flash: fix race condition when doing operations in unpinned tasks
Ivan Grokhotkov [Wed, 18 Jan 2017 07:07:27 +0000 (15:07 +0800)]
spi_flash: fix race condition when doing operations in unpinned tasks

spi_flash_enable_interrupts_caches_and_other_cpu function used to enable
non-IRAM interrupts after giving up flash operation lock, which would
cause problems if another task was waiting on the lock to start a flash
operation. In fact, non-IRAM interrupts should be re-enabled before the
task scheduler is resumed. Otherwise non-pinned task can be moved to the
other CPU due to preemption, causing esp_intr_noniram_enable to be
called on the other CPU, causing an abort to be triggered.

Fixes the issue reported in
https://github.com/espressif/esp-idf/pull/258

7 years agoMerge branch 'feature/update_gitignore' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 02:32:14 +0000 (10:32 +0800)]
Merge branch 'feature/update_gitignore' into 'master'

Update gitignore for examples

Also ignore .settings since some of us use eclipse.

See merge request !437

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

Delete option to select core timer 2 as a FreeRTOS tick source

Core timer 2 is unusable for FreeRTOS ticks because it triggers a high-level interrupt. This MR deletes the option to select it.

Ref https://github.com/espressif/esp-idf/issues/234

See merge request !418

7 years agoMerge branch 'feature/add_get_idf_version_api' into 'master'
Wu Jian Gang [Wed, 18 Jan 2017 01:44:53 +0000 (09:44 +0800)]
Merge branch 'feature/add_get_idf_version_api' into 'master'

Add get idf version API

This is same as IDF_VER.

See merge request !435

7 years agoMerge branch 'feature/add_some_configurable_lwip_options' into 'master'
Wu Jian Gang [Wed, 18 Jan 2017 01:44:23 +0000 (09:44 +0800)]
Merge branch 'feature/add_some_configurable_lwip_options' into 'master'

Allow config TCP_MAXRTX & TCP_SYNMAXRTX in menuconfig

See merge request !436

7 years agoFixed memory leak in example, ref. https://github.com/espressif/esp-idf/issues/209
krzychb [Tue, 17 Jan 2017 20:20:24 +0000 (21:20 +0100)]
Fixed memory leak in example, ref. https://github.com/espressif/esp-idf/issues/209

7 years agoTypo corrections
krzychb [Tue, 17 Jan 2017 20:12:54 +0000 (21:12 +0100)]
Typo corrections

7 years agoDocs folder info, ref. https://github.com/espressif/esp-idf/issues/243; Doc title fix
krzychb [Tue, 17 Jan 2017 19:37:27 +0000 (20:37 +0100)]
Docs folder info, ref. https://github.com/espressif/esp-idf/issues/243; Doc title fix

7 years agoUpdated links to point directly to example folder, fixed names
krzychb [Tue, 17 Jan 2017 19:03:26 +0000 (20:03 +0100)]
Updated links to point directly to example folder, fixed names

7 years agoAdded links to examples in API documentation
krzychb [Tue, 17 Jan 2017 18:12:48 +0000 (19:12 +0100)]
Added links to examples in API documentation

7 years agoFixed broken links
krzychb [Tue, 17 Jan 2017 17:53:29 +0000 (18:53 +0100)]
Fixed broken links

7 years agocomponent/bt : fix gatts demo mistakes & unpeg notify bug
Tian Hao [Tue, 17 Jan 2017 12:13:25 +0000 (20:13 +0800)]
component/bt : fix gatts demo mistakes & unpeg notify bug

7 years agocomponent/bt : fix gatt server table bugs
Tian Hao [Tue, 17 Jan 2017 10:42:11 +0000 (18:42 +0800)]
component/bt : fix gatt server table bugs

1. fix gatt server table bugs
2. fix blufi a minor bug

7 years agogitignore: Update gitignore for examples
Wu Jian Gang [Tue, 17 Jan 2017 09:55:29 +0000 (17:55 +0800)]
gitignore: Update gitignore for examples

7 years agolwip: Allow config TCP_MAXRTX & TCP_SYNMAXRTX in menuconfig
Wu Jian Gang [Tue, 17 Jan 2017 09:44:25 +0000 (17:44 +0800)]
lwip: Allow config TCP_MAXRTX & TCP_SYNMAXRTX in menuconfig

7 years agoesp32: add get idf version api
Wu Jian Gang [Tue, 17 Jan 2017 08:52:42 +0000 (16:52 +0800)]
esp32: add get idf version api

7 years agoMerge branch 'feature/categorize_examples_doc_new' into 'master'
Ivan Grokhotkov [Tue, 17 Jan 2017 07:14:00 +0000 (15:14 +0800)]
Merge branch 'feature/categorize_examples_doc_new' into 'master'

Organize examples and API documentation

Organize / categorize growing number of code examples and API documentation,  ref. https://gitlab.espressif.cn:6688/idf/esp-idf/issues/10

This merge request is intended to replace most of https://gitlab.espressif.cn:6688/idf/esp-idf/merge_requests/421. The rest of changes submitted in https://gitlab.espressif.cn:6688/idf/esp-idf/merge_requests/421 will follow.

1. Moved examples to category folders, removed numbers from example names
2. Modified `buid_examples.sh` script to handle new locations of examples
3. Moved api-name.rst files to category folders
4. Updated documentation TOC (`docs/index.rst`)
5. Updated links to examples in API documentation

See merge request !430

7 years agoMerge branch 'bugfix/docs' into 'master'
Ivan Grokhotkov [Tue, 17 Jan 2017 07:13:04 +0000 (15:13 +0800)]
Merge branch 'bugfix/docs' into 'master'

Minor documentation fixes

Two trivial fixes:
- fix link formatted as RST in an MD document
- fix DRAM size typo

See merge request !429

7 years agoMerge branch 'bugfix/btdm_flash_operation' into 'master'
Ivan Grokhotkov [Tue, 17 Jan 2017 07:12:23 +0000 (15:12 +0800)]
Merge branch 'bugfix/btdm_flash_operation' into 'master'

component/bt : update bt lib to fix flash operation bug

update bt lib to fix flash write bug when bt interrupt happened.

See merge request !434

7 years agoMerge branch 'bugfix/release_build' into 'master'
Ivan Grokhotkov [Tue, 17 Jan 2017 06:24:14 +0000 (14:24 +0800)]
Merge branch 'bugfix/release_build' into 'master'

Release build related fixes

- Fix (non-)inlining issue with `spi_flash_guards_` functions in release mode
- Fix assert-related warnings generated in release mode by changing assert definition

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

See merge request !428

7 years agoMerge branch 'bugfix/time_syscalls' into 'master'
Ivan Grokhotkov [Tue, 17 Jan 2017 06:04:11 +0000 (14:04 +0800)]
Merge branch 'bugfix/time_syscalls' into 'master'

Fix issues with time syscalls

- fix compilation error when no time source is selected (https://github.com/espressif/esp-idf/issues/238)
- work around a bug that time speeds up when RTC registers are read on the APP CPU (https://github.com/espressif/arduino-esp32/issues/120)

See merge request !427

7 years agocomponent/bt : update bt lib to fix flash operation bug
Tian Hao [Tue, 17 Jan 2017 05:51:44 +0000 (13:51 +0800)]
component/bt : update bt lib to fix flash operation bug

7 years agoAllow writes to encrypted partitions
Deomid Ryabkov [Mon, 16 Jan 2017 22:03:58 +0000 (22:03 +0000)]
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.

7 years agotime: only define {get,set}_boot_time if FRC1 or RTC is used as time source
Ivan Grokhotkov [Mon, 16 Jan 2017 11:53:10 +0000 (19:53 +0800)]
time: only define {get,set}_boot_time if FRC1 or RTC is used as time source

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

7 years agotime: workaround for FRC_TIMER_INT_REG write issue
Ivan Grokhotkov [Mon, 16 Jan 2017 11:52:23 +0000 (19:52 +0800)]
time: workaround for FRC_TIMER_INT_REG write issue

In some cases (when RTC register reads are performed from the APP CPU), a write to FRC_TIMER_INT_REG may be lost on the bus.
Writing to another DPORT register immediately before or after that works around the issue.
We write one dummy value to an address which doesn’t have any register associated with it.

Fixes https://github.com/espressif/arduino-esp32/issues/120

7 years agoUpdated links to examples in new folders / categories in api documentation
Krzysztof Budzynski [Mon, 16 Jan 2017 22:08:36 +0000 (23:08 +0100)]
Updated links to examples in new folders / categories in api documentation

7 years agoUpdated relative paths to included documents
Krzysztof Budzynski [Mon, 16 Jan 2017 22:08:35 +0000 (23:08 +0100)]
Updated relative paths to included documents

7 years agoMoved api documentation to new folders / categories
Krzysztof Budzynski [Mon, 16 Jan 2017 22:08:35 +0000 (23:08 +0100)]
Moved api documentation to new folders / categories

7 years agoModified buid_examples.sh to handle new locations of examples
Krzysztof Budzynski [Mon, 16 Jan 2017 22:08:35 +0000 (23:08 +0100)]
Modified buid_examples.sh to handle new locations of examples

7 years agoMoved examples to new folders / categories. Removed example numbers from example...
Krzysztof Budzynski [Mon, 16 Jan 2017 22:08:35 +0000 (23:08 +0100)]
Moved examples to new folders / categories. Removed example numbers from example names

7 years agodocs: fix data RAM size
Ivan Grokhotkov [Mon, 16 Jan 2017 17:18:23 +0000 (01:18 +0800)]
docs: fix data RAM size

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

7 years agoreadme: fix link formatting
Ivan Grokhotkov [Mon, 16 Jan 2017 17:17:20 +0000 (01:17 +0800)]
readme: fix link formatting

7 years agonewlib: change definition of assert for release builds
Ivan Grokhotkov [Mon, 16 Jan 2017 16:49:38 +0000 (00:49 +0800)]
newlib: change definition of assert for release builds

One common pattern of using assert function looks as follows:
    int ret = do_foo();
    assert(ret == 0);   // which reads as: “do_foo should never fail here, by design”
The problem with such code is that if ‘assert’ is removed by the preprocessor in release build,
variable ret is no longer used, and the compiler issues a warning about this.
Changing assert definition in the way done here make the variable used, from language syntax perspective.
Semantically, the variable is still unused at run time (as sizeof can be evaluated at compile time), so the compiler
can optimize things away if possible.

7 years agospi_flash: define spi_flash_guard_{start,stop} with IRAM_ATTR
Ivan Grokhotkov [Mon, 16 Jan 2017 16:42:55 +0000 (00:42 +0800)]
spi_flash: define spi_flash_guard_{start,stop} with IRAM_ATTR

These functions are marked as inline and are called from functions which are in IRAM.
In release (-Os) builds, the compiler may decide not to inline these functions.
Placing these functions into IRAM explicitly works around this.

7 years agoMerge branch 'bugfix/osx_toolchain_detection' into 'master'
Ivan Grokhotkov [Mon, 16 Jan 2017 15:09:53 +0000 (23:09 +0800)]
Merge branch 'bugfix/osx_toolchain_detection' into 'master'

build: Use greedy match for toolchain version detection (fixes macOS)

See merge request !423

7 years agoMerge branch 'bug/fix_some_wifi_lib_bugs' into 'master'
Wu Jian Gang [Mon, 16 Jan 2017 10:57:02 +0000 (18:57 +0800)]
Merge branch 'bug/fix_some_wifi_lib_bugs' into 'master'

update wifi lib: fix some wifi lib bugs

1. net80211: fix get ap info error(a4614877)

2. tw9358: sta mac same with softap(ea38d32c)

3. tw9221: scan channel error when connected(183d469c)

See merge request !425

7 years agoMerge branch 'bugfix/event_stack_overflow' into 'master'
Wu Jian Gang [Mon, 16 Jan 2017 10:56:46 +0000 (18:56 +0800)]
Merge branch 'bugfix/event_stack_overflow' into 'master'

esp_event: event stack overflow

See merge request !424

7 years agoupdate wifi lib: fix some wifi lib bugs
XiaXiaotian [Mon, 16 Jan 2017 09:20:05 +0000 (17:20 +0800)]
update wifi lib: fix some wifi lib bugs

1. net80211: fix get ap info error(a4614877)

2. tw9358: sta mac same with softap(ea38d32c)

3. tw9221: scan channel error when connected(183d469c)

7 years agoesp_event: event stack overflow
shangke [Mon, 16 Jan 2017 09:06:12 +0000 (17:06 +0800)]
esp_event: event stack overflow

7 years agobuild: Use greedy match for toolchain version detection (fixes macOS)
Angus Gratton [Mon, 16 Jan 2017 04:01:25 +0000 (15:01 +1100)]
build: Use greedy match for toolchain version detection (fixes macOS)

7 years agoMerge branch 'feature/vfs_uart_read' into 'master'
Ivan Grokhotkov [Mon, 16 Jan 2017 04:08:22 +0000 (12:08 +0800)]
Merge branch 'feature/vfs_uart_read' into 'master'

vfs: implement reading from UART

This change adds support for reading from the UART FIFO via the `stdin`.

Useful for simple cases when handling lots of data is not a requirement (e.g. command prompts operated by humans).

`\r\n` -> `\n` conversion is guided by the existing `CONFIG_NEWLIB_STDOUT_ADDCR` configuration option.

See merge request !393

7 years agovfs: implement reading from UART
Ivan Grokhotkov [Mon, 9 Jan 2017 14:50:42 +0000 (22:50 +0800)]
vfs: implement reading from UART

7 years agoMerge branch 'bugfix/i2s_bootloader_random_disable' into 'master'
Ivan Grokhotkov [Mon, 16 Jan 2017 02:40:58 +0000 (10:40 +0800)]
Merge branch 'bugfix/i2s_bootloader_random_disable' into 'master'

bootloader_random_disable: Restore all SARADC/I2S registers to defaults

Fix for issue with I2S0 not being usable after bootloader_random_enable()

See merge request !415

7 years agoMerge branch 'bugfix/panic_reset_hangs' into 'master'
Ivan Grokhotkov [Mon, 16 Jan 2017 02:40:47 +0000 (10:40 +0800)]
Merge branch 'bugfix/panic_reset_hangs' into 'master'

Panic handler: Use same reset path as esp_restart(), disabling hardware

Closes #223 https://github.com/espressif/esp-idf/issues/223

See merge request !417

7 years agoMerge branch 'bugfix/fixes_from_github' into 'master'
Ivan Grokhotkov [Mon, 16 Jan 2017 02:26:58 +0000 (10:26 +0800)]
Merge branch 'bugfix/fixes_from_github' into 'master'

fixes for github issues

This MR includes commits from several Github PRs, as well some fixes for issues reported on Github and on the forum.

- compile PHY-related code only when WiFi is enabled
- fix macOS setup instructions
- fix some of the Sphinx warnings
- update docs index, improve structure of the readme-
- wifi: fix typos, rename ESP_ERR_WIFI_NOT_START to ESP_ERR_WIFI_NOT_STARTED
- sdmmc: fix explanation of flash voltage regulator configuration efuses
- sdmmc: change idx num of example
- fix i2c_get_period name
- fix esp_log_level_set function name in docs

See merge request !420

7 years agoBuild: Handle WiFi & BT enabled/disabled combos gracefully as possible
Angus Gratton [Mon, 16 Jan 2017 00:52:15 +0000 (11:52 +1100)]
Build: Handle WiFi & BT enabled/disabled combos gracefully as possible

If using WIFI_INIT_CONFIG_DEFAULT, error message will point out lack
of WiFi. Otherwise linker errors on WiFi symbols should help give a
clue as to what is broken.

Piggy-backs on changes in !420, ref github #230 #237

7 years agoMerge branch 'bugfix/compact_panic' into 'master'
Ivan Grokhotkov [Mon, 16 Jan 2017 01:28:40 +0000 (09:28 +0800)]
Merge branch 'bugfix/compact_panic' into 'master'

Fix panic register dump format

Fix misplaced a printf somewhere causing an enter to be printed after every register in the panic regdump instead of every 4th register.

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

See merge request !419

7 years agoMerge branch 'bugfix/toolchain_detection_windows' into 'master'
Angus Gratton [Sun, 15 Jan 2017 23:45:47 +0000 (07:45 +0800)]
Merge branch 'bugfix/toolchain_detection_windows' into 'master'

Toolchain detection: Allow for Windows executable name and not-yet-configured toolchain path

Windows executable name based on fix suggested by @krzysztof

See merge request !416

7 years agoesp32: compile PHY-related code only when WiFi is enabled
Ivan Grokhotkov [Sun, 15 Jan 2017 18:33:16 +0000 (02:33 +0800)]
esp32: compile PHY-related code only when WiFi is enabled

Fixes https://github.com/espressif/esp-idf/issues/230, https://github.com/espressif/esp-idf/issues/237

7 years agodocs: fix macOS setup instructions
Ivan Grokhotkov [Sun, 15 Jan 2017 18:18:42 +0000 (02:18 +0800)]
docs: fix macOS setup instructions

Most of the packages mentioned are only needed for building the toolchain using crosstool-NG, not for the normal ESP-IDF environment.
Mention that pyserial needs to be installed (fixes https://github.com/espressif/esp-idf/issues/229).

7 years agodocs: fix some of the Sphinx warnings
Ivan Grokhotkov [Sun, 15 Jan 2017 18:07:46 +0000 (02:07 +0800)]
docs: fix some of the Sphinx warnings

7 years agodocs: update index, improve structure of the readme
Ivan Grokhotkov [Sun, 15 Jan 2017 17:48:47 +0000 (01:48 +0800)]
docs: update index, improve structure of the readme

7 years agowifi: fix typos, rename ESP_ERR_WIFI_NOT_START to ESP_ERR_WIFI_NOT_STARTED
Neil Kolban [Mon, 2 Jan 2017 05:51:48 +0000 (23:51 -0600)]
wifi: fix typos, rename ESP_ERR_WIFI_NOT_START to ESP_ERR_WIFI_NOT_STARTED

7 years agosdmmc: fix explanation of flash voltage regulator configuration efuses
Ivan Grokhotkov [Sun, 15 Jan 2017 17:19:14 +0000 (01:19 +0800)]
sdmmc: fix explanation of flash voltage regulator configuration efuses

- low level on GPIO12 corresponds to 3.3V output, not 1.8V
- add espefuse.py commands to burn efuses
- add XPD_SDIO_REG to the list of efuses which must be set

Reported on the forum: http://esp32.com/viewtopic.php?f=2&t=849&start=10#p4170

7 years agosdmmc: change idx num of example
rudi ;-) [Wed, 11 Jan 2017 20:47:38 +0000 (21:47 +0100)]
sdmmc: change idx num of example

7 years agoi2c: fix i2c_get_period name
devsaurus [Sat, 7 Jan 2017 12:14:40 +0000 (13:14 +0100)]
i2c: fix i2c_get_period name

rename i2s_get_period to i2c_get_period