]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agoput RODATA of libphy.a into DRAM
XiaXiaotian [Mon, 24 Apr 2017 03:22:49 +0000 (11:22 +0800)]
put RODATA of libphy.a into DRAM

    There are some RODATAs of libphy.a that are called in ISR. So need
    to put them into DRAM to avoid access them when R/W SPI flash. Due
    to the RODATAs which are called in ISR haven't been picked out to
    put into DRAM, put all of the RODATA of libphy.a into DRAM. This
    will be optimized in the future.

7 years agoDo not put the whole object files into IRAM. Add attributes to the functions called...
XiaXiaotian [Wed, 12 Apr 2017 09:42:45 +0000 (17:42 +0800)]
Do not put the whole object files into IRAM. Add attributes to the functions called in ISR instead.

7 years agoMerge branch 'bugfix/github_fixes' into 'master'
Angus Gratton [Fri, 21 Apr 2017 04:27:32 +0000 (12:27 +0800)]
Merge branch 'bugfix/github_fixes' into 'master'

Various fixes from Github

Some one-line fixes from Github PRs.

See merge request !689

7 years agoMerge branch 'bugfix/driver_const_params' into 'master'
Angus Gratton [Fri, 21 Apr 2017 04:25:15 +0000 (12:25 +0800)]
Merge branch 'bugfix/driver_const_params' into 'master'

components/driver: 'const' all config calls.

Merges PR #519 https://github.com/espressif/esp-idf/pull/519

See merge request !687

7 years agoMerge branch 'bugfix/mbedtls_wrong_errno' into 'master'
Angus Gratton [Fri, 21 Apr 2017 04:24:59 +0000 (12:24 +0800)]
Merge branch 'bugfix/mbedtls_wrong_errno' into 'master'

mbedtls port: Fix detection of EWOULDBLOCK/EAGAIN with non-blocking sockets

Since mbedtls_net_errno is reset by fcntl, it is reset after calling
net_would_block, so the call to mbedtls_net_errno in mbedtls_net_recv
and mbedtls_net_send will always get back 0. This change propagates
the value returned by mbedtls_net_errno up through net_would_block,
to allow the correct error value to be used and avoid a redundant
call to mbedtls_net_errno.

Merges PR #511 https://github.com/espressif/esp-idf/pull/511

See merge request !688

7 years agobluedroid: Fix compilation warnings related to aliasing
Angus Gratton [Fri, 21 Apr 2017 01:31:40 +0000 (11:31 +1000)]
bluedroid: Fix compilation warnings related to aliasing

Merges PR #518 https://github.com/espressif/esp-idf/pull/518

7 years agoMake sure LD -L option is calculated correctly when the project Makefile has specifie...
Eyob [Sat, 8 Apr 2017 22:18:16 +0000 (18:18 -0400)]
Make sure LD -L option is calculated correctly when the project Makefile has specified SRCDIRS components that are not directly below Makefile folder level.

For example,
SRCDIRS = comp_a  happy/comp_b  /c/dev/comp_c

Then the following are built:
build/comp_a/libcomp_a.a
build/comp_b/libcomp_b.a
build/comp_c/libcomp_c.a

But when LD is run the -L is calculated as follows
-L build/comp_a
-L build/happy/comp_b
-L build//c/dev/comp_c

This means comp_b and comp_c are not found by LD. With this change set -L is calculated correctly for comp_b and comp_c

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

7 years agoOTA example readme: [typo]: Worflow to Workflow
rudi ;-) [Mon, 10 Apr 2017 03:07:12 +0000 (05:07 +0200)]
OTA example readme: [typo]: Worflow to Workflow

Merges PR #507 https://github.com/espressif/esp-idf/pull/507

7 years agospidriver: Display length errors correctly
Michael Kellner [Thu, 13 Apr 2017 18:11:13 +0000 (11:11 -0700)]
spidriver: Display length errors correctly

SPI transfer length is bits, not bytes, so the error should indicate bits. Also, there are separate lengths for rx and
tx (confusingly named rxlength and length... if rxlength is 0, length is used). The code checks the tx length for the
rx, so it never validates rxlength.

Originally contributed as part of #511 https://github.com/espressif/esp-idf/pull/511

7 years agoFixed bug in ledc_set_fade_with_step where returned while holding critical section.
Jonathan Kaufmann [Wed, 12 Apr 2017 23:23:32 +0000 (18:23 -0500)]
Fixed bug in ledc_set_fade_with_step where returned while holding critical section.

Merges PR #515 https://github.com/espressif/esp-idf/pull/515

7 years agombedtls port: Fix detection of EWOULDBLOCK/EAGAIN with non-blocking sockets
Michael Kellner [Tue, 11 Apr 2017 20:08:35 +0000 (13:08 -0700)]
mbedtls port: Fix detection of EWOULDBLOCK/EAGAIN with non-blocking sockets

Since mbedtls_net_errno is reset by fcntl, it is reset after calling
net_would_block, so the call to mbedtls_net_errno in mbedtls_net_recv
and mbedtls_net_send will always get back 0. This change propagates
the value returned by mbedtls_net_errno up through net_would_block,
to allow the correct error value to be used and avoid a redundant
call to mbedtls_net_errno.

Merges PR #511 https://github.com/espressif/esp-idf/pull/511

7 years agoMerge branch 'bugfix/ci_ssc_build_nonverbose' into 'master'
Ivan Grokhotkov [Thu, 20 Apr 2017 07:12:38 +0000 (15:12 +0800)]
Merge branch 'bugfix/ci_ssc_build_nonverbose' into 'master'

ci: Build SSC with V=0

BATCH_BUILD implies V=1, but SSC produces a *lot* of log output in verbose mode.

See merge request !682

7 years agoci: Build with V=0
Angus Gratton [Thu, 20 Apr 2017 03:43:20 +0000 (13:43 +1000)]
ci: Build with V=0

BATCH_BUILD implies V=1, but SSC produces a *lot* of log output in verbose mode.

For now, disable setting V=1 for all CI build modes.

7 years agoMerge branch 'bugfix/tw11779_softAP_crash_when_wifi_connect' into 'master'
Jiang Jiang Jian [Wed, 19 Apr 2017 06:34:53 +0000 (14:34 +0800)]
Merge branch 'bugfix/tw11779_softAP_crash_when_wifi_connect' into 'master'

esp32: update wifi lib to fix wifi connect cause crash

Fix softap wifi connect crash bug

See merge request !672

7 years agoMerge branch 'bugfix/dont_log_before_bss_inited' into 'master'
Jeroen Domburg [Tue, 18 Apr 2017 03:21:31 +0000 (11:21 +0800)]
Merge branch 'bugfix/dont_log_before_bss_inited' into 'master'

Remove ESP_EARLY_LOGI before bss is initialized; it crashes the CPU

There's an ESP_EARLY_LOGI line that can get called before the BSS is initialized; the early logging code doesn't cope well with that: it checks if FreeRTOS is up, but the variables it uses for that contains garbage because it isn't cleared yet, giving the wrong result. The logging code then tries to set a mux, crashing the entire system. This patch removes the log line and adds a warning at the BSS initialization line not to do anything complex before that point.

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

See merge request !671

7 years agoMerge branch 'feature/log_via_apptrace' into 'master'
Ivan Grokhotkov [Tue, 18 Apr 2017 02:45:14 +0000 (10:45 +0800)]
Merge branch 'feature/log_via_apptrace' into 'master'

Apptrace interface and logging via apptrace

- adds apptrace module which allows arbitrary data to be sent to host over JTAG
- implements printf-like logging to host via apptrace module

This feature depends on changes in idf/openocd-esp32!2

See merge request !548

7 years agoesp32: Adds functionality for application tracing over JTAG
Alexey Gerenkov [Wed, 25 Jan 2017 16:35:28 +0000 (19:35 +0300)]
esp32: Adds functionality for application tracing over JTAG

 - Implements application tracing module which allows to send arbitrary
   data to host over JTAG. This feature is useful for analyzing
   program modules behavior, dumping run-time application data etc.
 - Implements printf-like logging functions on top of apptrace module.
   This feature is a kind of semihosted printf functionality with lower
   overhead and impact on system behaviour as compared to standard printf.

7 years agofix test for dumping trace data
Ivan Grokhotkov [Tue, 17 Jan 2017 14:58:54 +0000 (22:58 +0800)]
fix test for dumping trace data

7 years agotrace: add Kconfig options for app level trace
Ivan Grokhotkov [Tue, 17 Jan 2017 14:58:11 +0000 (22:58 +0800)]
trace: add Kconfig options for app level trace

CONFIG_MEMMAP_TRACEMEM is now a hidden underlying option, which can be enabled using either CONFIG_ESP32_TRAX or CONFIG_ESP32_APP_TRACE

7 years agotest tracing over JTAG
Ivan Grokhotkov [Sun, 15 Jan 2017 16:42:10 +0000 (00:42 +0800)]
test tracing over JTAG

7 years agoesp32: update wifi lib to fix wifi connect cause crash
Liu Zhi Fu [Mon, 17 Apr 2017 07:38:41 +0000 (15:38 +0800)]
esp32: update wifi lib to fix wifi connect cause crash

Fix softap wifi connect crash bug

7 years agoRemove ESP_EARLY_LOGI before bss is initialized; it crashes the CPU
Jeroen Domburg [Sun, 16 Apr 2017 15:34:03 +0000 (23:34 +0800)]
Remove ESP_EARLY_LOGI before bss is initialized; it crashes the CPU

7 years agoMerge branch 'bugfix/btdm_alarm_event_transfer' into 'master'
Jiang Jiang Jian [Fri, 14 Apr 2017 13:20:19 +0000 (21:20 +0800)]
Merge branch 'bugfix/btdm_alarm_event_transfer' into 'master'

component/bt: transfer bluedroid timer events to be handled by BTC task

NVS operation can take long time for timer task to handle. Transfer the alarm event to be handled by BTC task.

See merge request !670

7 years agoMerge branch 'feature/esp32_d2wd_support' into 'master'
Ivan Grokhotkov [Fri, 14 Apr 2017 12:57:39 +0000 (20:57 +0800)]
Merge branch 'feature/esp32_d2wd_support' into 'master'

ESP32-D2WD support

Support ESP32-D2WD with integrated flash in ESP-IDF.

Includes fix for https://github.com/espressif/esp-idf/issues /521

See merge request !639

7 years agocomponent/bt: transfer bluedroid timer events to be handled by BTC task
wangmengyang [Fri, 14 Apr 2017 10:49:30 +0000 (18:49 +0800)]
component/bt: transfer bluedroid timer events to be handled by BTC task

7 years agoMerge branch 'bugfix/rb_ble_set_rand_addr' into 'master'
Jiang Jiang Jian [Fri, 14 Apr 2017 07:17:29 +0000 (15:17 +0800)]
Merge branch 'bugfix/rb_ble_set_rand_addr' into 'master'

move the bugfix/ble_set_rand_addr_bug here for fix the conflict with the master

move the bugfix/ble_set_rand_addr_bug to here avoid the conflict with the master

See merge request !669

7 years agochange the make error in bta_dm_ble_set_rand_address func
Yulong [Fri, 14 Apr 2017 06:52:43 +0000 (02:52 -0400)]
change the make error in bta_dm_ble_set_rand_address func

7 years agocomponent/bt:move the bugfix/ble_set_rand_addr_bug here for fix the conflict with...
Yulong [Fri, 14 Apr 2017 06:45:07 +0000 (02:45 -0400)]
component/bt:move the bugfix/ble_set_rand_addr_bug here for fix the conflict with the master

7 years agoMerge branch 'feature/btdm_sec_rebase_api' into 'master'
Jiang Jiang Jian [Fri, 14 Apr 2017 04:12:24 +0000 (12:12 +0800)]
Merge branch 'feature/btdm_sec_rebase_api' into 'master'

component/bt:move the btdm_rebase_ssp_api branch to this branch

remove the btdm_rebase_ssp_api branch & move it to this branch avoid the conflict with the maset

See merge request !667

7 years agocompoment/bt:Change the tabs to space in btc_ble_storage.c & btc_gap_ble.c file
Yulong [Fri, 14 Apr 2017 03:50:14 +0000 (23:50 -0400)]
compoment/bt:Change the tabs to space in btc_ble_storage.c & btc_gap_ble.c file

7 years agodelete the debug log in the btc_ble_storage file
Yulong [Fri, 14 Apr 2017 02:40:37 +0000 (22:40 -0400)]
delete the debug log in the btc_ble_storage file

7 years agocomponents/driver: 'const' all config calls.
Michel Pollet [Thu, 13 Apr 2017 17:33:33 +0000 (18:33 +0100)]
components/driver: 'const' all config calls.

Some were, some weren't. They all could/should be.

Signed-off-by: Michel Pollet <buserror@gmail.com>
7 years agocomponent/bt:move the btdm_rebase_ssp_api branch to this branch
Yulong [Thu, 13 Apr 2017 14:14:28 +0000 (10:14 -0400)]
component/bt:move the btdm_rebase_ssp_api branch to this branch

7 years agoMerge branch 'feature/check_invalid_cache_access' into 'master'
Jiang Jiang Jian [Thu, 13 Apr 2017 08:11:19 +0000 (16:11 +0800)]
Merge branch 'feature/check_invalid_cache_access' into 'master'

Detect invalid cache access

This MR adds always-on feature which detects cache invalid access and triggers panic handler when invalid access interrupt is raised.

See merge request !660

7 years agoMerge branch 'bugfix/check_wifi_state_when_wifi_deinit_is_called' into 'master'
Jiang Jiang Jian [Thu, 13 Apr 2017 08:01:39 +0000 (16:01 +0800)]
Merge branch 'bugfix/check_wifi_state_when_wifi_deinit_is_called' into 'master'

check wifi state when wifi deinit is called

See merge request !663

7 years agounit tests: Shrink unit test partition table so tests can run on 2MB of flash
Angus Gratton [Thu, 13 Apr 2017 07:37:35 +0000 (17:37 +1000)]
unit tests: Shrink unit test partition table so tests can run on 2MB of flash

7 years agobootloader: Add QIO support for ESP32-D2WD SPI flash
Angus Gratton [Thu, 13 Apr 2017 07:08:53 +0000 (17:08 +1000)]
bootloader: Add QIO support for ESP32-D2WD SPI flash

7 years agospiflash ROM functions: Remove Quad I/O mode enable/disable code from flash ROM functions
Angus Gratton [Wed, 12 Apr 2017 01:31:26 +0000 (11:31 +1000)]
spiflash ROM functions: Remove Quad I/O mode enable/disable code from flash ROM functions

Confusion here is that original ROM has two functions:

* SPIReadModeCnfig() - sets mode, calls enable_qio_mode/disable_qio_mode
* SPIMasterReadModeCnfig() - As above, but doesn't set QIO mode in status register

However we never want to use the ROM method to set/clear QIO mode flag, as not all flash chips work this way. Instead we
do it in flash_qio_mode.c in bootloader.

So in both cases (ROM or "patched ROM") we now call SPIMasterReadModeCnfig(), which is now named
esp_rom_spiflash_config_readmode().

7 years agoMerge branch 'feature/tw11250_add_tcp_delay_statistics' into 'master'
Ivan Grokhotkov [Thu, 13 Apr 2017 07:29:36 +0000 (15:29 +0800)]
Merge branch 'feature/tw11250_add_tcp_delay_statistics' into 'master'

lwip: refactor to esp specific counter

1. Add tcp debug counter
2. Refactor other ESP specific counter

See merge request !635

7 years agoMerge branch 'bugfix/uart_tx_buffer_blocked' into 'master'
Ivan Grokhotkov [Thu, 13 Apr 2017 07:29:09 +0000 (15:29 +0800)]
Merge branch 'bugfix/uart_tx_buffer_blocked' into 'master'

Fix uart tx function block issue

To enable tx empty interrupt each time the tx ringbuffer get filled, so that tx function will not block if tx data length is larger than tx ringbuffer size.
Reported from customer of Audio team.

See merge request !658

7 years agoMerge branch 'bugfix/bootloader_error_handling_code' into 'master'
Ivan Grokhotkov [Thu, 13 Apr 2017 07:28:49 +0000 (15:28 +0800)]
Merge branch 'bugfix/bootloader_error_handling_code' into 'master'

Add error handling code in bootloader

Forgotten error handling

See merge request !650

7 years agoadd test case for invalid cache access interrupt
Ivan Grokhotkov [Wed, 12 Apr 2017 09:50:42 +0000 (17:50 +0800)]
add test case for invalid cache access interrupt

7 years agopanic handler: access exception frame members via struct fields
Ivan Grokhotkov [Wed, 12 Apr 2017 09:48:14 +0000 (17:48 +0800)]
panic handler: access exception frame members via struct fields

7 years agopanic handler: send output to the UART configured as console
Ivan Grokhotkov [Wed, 12 Apr 2017 09:46:57 +0000 (17:46 +0800)]
panic handler: send output to the UART configured as console

7 years agoadd detection of invalid cache access
Jeroen Domburg [Thu, 9 Mar 2017 12:50:39 +0000 (20:50 +0800)]
add detection of invalid cache access

- fix level 4 interrupt vectors to produce correct backtrace
- initialize invalid cache access interrupt on startup
- handle invalid cache access in panic handler

7 years agosoc: add invalid cache access interrupt bits to dport_reg
Ivan Grokhotkov [Wed, 12 Apr 2017 09:48:59 +0000 (17:48 +0800)]
soc: add invalid cache access interrupt bits to dport_reg

7 years agoMerge branch 'bugfix/http_request_example' into 'master'
Ivan Grokhotkov [Thu, 13 Apr 2017 07:27:37 +0000 (15:27 +0800)]
Merge branch 'bugfix/http_request_example' into 'master'

Fix issues with HTTP[S] request examples

This MR includes:

- request string fix for the http_request example (https://github.com/espressif/esp-idf/pull/500)
- same fix applied to the https_request example
- stack size increase for http_request example

Fixes https://www.esp32.com/viewtopic.php?f=13&t=1620

See merge request !646

7 years agoMerge branch 'bugfix/lwip_sta_ap_netif_names' into 'master'
Jiang Jiang Jian [Thu, 13 Apr 2017 06:43:13 +0000 (14:43 +0800)]
Merge branch 'bugfix/lwip_sta_ap_netif_names' into 'master'

give the AP and STA netifs different names for ease of debugging lwip

Both AP and STA netifs used to be called "en". This changes the name to "st" for STA and "ap" for AP.

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

See merge request !653

7 years agoMerge branch 'feature/btdm_avrc' into 'master'
Jiang Jiang Jian [Thu, 13 Apr 2017 06:36:58 +0000 (14:36 +0800)]
Merge branch 'feature/btdm_avrc' into 'master'

Feature/btdm avrc

The source branch "feature/btdm_avrc" includes classic Bluetooth profiles A2DP(sink role) and AVRCP(controller role);
Menuconfig options to control whether to enable classic BT is added.

See merge request !591

7 years agocheck wifi state when wifi deinit is called
XiaXiaotian [Wed, 12 Apr 2017 12:43:11 +0000 (20:43 +0800)]
check wifi state when wifi deinit is called

7 years agoMerge branch 'example/wifi_wps_ps_license' into 'master'
Jiang Jiang Jian [Thu, 13 Apr 2017 06:29:50 +0000 (14:29 +0800)]
Merge branch 'example/wifi_wps_ps_license' into 'master'

wps_ps: add license

Just add license info to the example wifi/wps and wifi/power_save

See merge request !664

7 years agoesptool: Update to include ESP32-D2WD support (and other SPI flash remapping)
Angus Gratton [Thu, 6 Apr 2017 06:17:23 +0000 (16:17 +1000)]
esptool: Update to include ESP32-D2WD support (and other SPI flash remapping)

7 years agoMerge branch 'feature/update_wifi_lib_for_some_refactors' into 'master'
Jiang Jiang Jian [Thu, 13 Apr 2017 06:22:04 +0000 (14:22 +0800)]
Merge branch 'feature/update_wifi_lib_for_some_refactors' into 'master'

esp32: update wifi lib for some refactor

1. Refactor for wifi ebuf management
2. Refactor for wifi rate control/long rate/tx

See merge request !662

7 years agowps_ps: add license
chenyudong [Thu, 13 Apr 2017 03:43:01 +0000 (11:43 +0800)]
wps_ps: add license

7 years agoesp32: update wifi lib for some refactor
Liu Zhi Fu [Wed, 12 Apr 2017 15:39:18 +0000 (23:39 +0800)]
esp32: update wifi lib for some refactor

1. Refactor for wifi ebuf management
2. Refactor for wifi rate control/long rate/tx

7 years agoMerge branch 'feature/change_ssid_len_to_33' into 'master'
Ivan Grokhotkov [Thu, 13 Apr 2017 03:16:11 +0000 (11:16 +0800)]
Merge branch 'feature/change_ssid_len_to_33' into 'master'

change scanned ap's ssid array len to 33

See merge request !661

7 years agochange scanned ap's ssid array len to 33
XiaXiaotian [Wed, 12 Apr 2017 13:02:28 +0000 (21:02 +0800)]
change scanned ap's ssid array len to 33

7 years agoMerge branch 'bugfix/ota_runtime_check_encrypted_flash' into 'master'
Ivan Grokhotkov [Wed, 12 Apr 2017 13:30:07 +0000 (21:30 +0800)]
Merge branch 'bugfix/ota_runtime_check_encrypted_flash' into 'master'

Enable checks for encrypted flash in OTA

Even if firmware is compiled without CONFIG_FLASH_ENCRYPTION_ENABLED.

Rationale: CONFIG_FLASH_ENCRYPTION_ENABLED controls whether boot loader generates keys for encryption or not, but flash encryption can be configured externally. With this change, it's possible to have boot loader not generate keys but still have encryption working.

Also fix use of it->part

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

See merge request !647

7 years agoFix uart tx function block issue
Wangjialin [Wed, 12 Apr 2017 08:57:37 +0000 (16:57 +0800)]
Fix uart tx function block issue

To enable tx empty interrupt each time the tx ringbuffer get filled, so that tx function will not block if tx data length is larger than tx ringbuffer size.
Reported from customer of Audio team.

7 years agocomponent/bt: implement classic Bluetooth profiles A2DP(sink) and AVRCP(controller)
wangmengyang [Wed, 12 Apr 2017 08:42:14 +0000 (16:42 +0800)]
component/bt: implement classic Bluetooth profiles A2DP(sink) and AVRCP(controller)

7 years agoMerge branch 'example/wifi_wps_ps' into 'master'
Jiang Jiang Jian [Wed, 12 Apr 2017 07:48:23 +0000 (15:48 +0800)]
Merge branch 'example/wifi_wps_ps' into 'master'

Example/wifi wps ps

Adding two new examples including wps and power save.

See merge request !614

7 years agoMerge branch 'example/wifi_performance' into 'master'
Jiang Jiang Jian [Wed, 12 Apr 2017 07:47:36 +0000 (15:47 +0800)]
Merge branch 'example/wifi_performance' into 'master'

wifi performance: add wifi performance examples including TCP&UDP TX/RX

Add wifi performance examples including TCP and UDP send and receive.

See merge request !577

7 years agoMerge branch 'bugfix/btdm_gatt_memory_leak' into 'master'
Jiang Jiang Jian [Wed, 12 Apr 2017 07:43:32 +0000 (15:43 +0800)]
Merge branch 'bugfix/btdm_gatt_memory_leak' into 'master'

bt component: Fix memory leak while using gatt server

- fix memory leak while creating attribute table
- fix memory leak while deleting service

See merge request !656

7 years agobt component: Fix memory leak while using gatt server
island [Wed, 12 Apr 2017 03:09:55 +0000 (11:09 +0800)]
bt component: Fix memory leak while using gatt server

- fix memory leak while creating attribute table
- fix memory leak while deleting service

7 years agoMerge branch 'feature/btdm_stop_adv_scan_event_rebase' into 'master'
Jiang Jiang Jian [Wed, 12 Apr 2017 06:49:37 +0000 (14:49 +0800)]
Merge branch 'feature/btdm_stop_adv_scan_event_rebase' into 'master'

bt component: Add stop adv/scan completed event

- Add advertising stop completed event
- Add scan stop completed event

See merge request !657

7 years agobt component: Add stop adv/scan completed event
island [Wed, 29 Mar 2017 08:51:21 +0000 (16:51 +0800)]
bt component: Add stop adv/scan completed event

7 years agoMerge branch 'bugfix/build_fix_for_old_git' into 'master'
Ivan Grokhotkov [Wed, 12 Apr 2017 02:39:47 +0000 (10:39 +0800)]
Merge branch 'bugfix/build_fix_for_old_git' into 'master'

Build fix for old version of git

It works good for git version less than 1.8.5 (e.g. on CentOS 7)

See merge request !651

7 years agoMerge branch 'bugfix/doc_update_for_centos' into 'master'
Ivan Grokhotkov [Wed, 12 Apr 2017 02:39:35 +0000 (10:39 +0800)]
Merge branch 'bugfix/doc_update_for_centos' into 'master'

Update manual for CentOS

Actualize information about  dependencies on CentOS 7

See merge request !649

7 years agoMerge branch 'bugfix/uart_rmt_fixes' into 'master'
Ivan Grokhotkov [Wed, 12 Apr 2017 02:39:22 +0000 (10:39 +0800)]
Merge branch 'bugfix/uart_rmt_fixes' into 'master'

Fixes for UART and RMT drivers

- Add const qualifier for config and tx data in RMT (https://github.com/espressif/esp-idf/pull/495)
- Fix rmt_set_tx_thr_intr_en(): check evt_thresh only in enable path (https://github.com/espressif/esp-idf/pull/492)
- Fix impossible check in uart_set_line_inverse (https://github.com/espressif/esp-idf/pull/489)

See merge request !648

7 years agoMerge branch 'feature/rtc_clk_impl' into 'master'
Ivan Grokhotkov [Wed, 12 Apr 2017 02:38:23 +0000 (10:38 +0800)]
Merge branch 'feature/rtc_clk_impl' into 'master'

Introduce soc component, add source of rtc_clk and rtc_pm libraries

This MR adds parts of the RTC library source code (initialization, clock selection functions, sleep functions). WiFi-related power management functions are kept inside the precompiled library. Most of RTC library APIs have been renamed.

Default CPU frequency option in Kconfig is set to 160MHz, pending qualification of 240MHz mode at high temperatures.

Register header files are moved into the new soc component, which will contain chip-specific header files and low-level non-RTOS-aware APIs (such as rtc_ APIs). Some of the files from ESP32 component were also moved: cpu_util.c, brownout.c, and the corresponding header files. Further refactoring of ESP32 component into more meaningful layers (chip-specific low level functions; chip-specific RTOS aware functions; framework-specific RTOS-related functions) will be done in future MRs.

See merge request !633

7 years agogive the AP and STA netifs different names for ease of debugging lwip
Edmund Huber [Sat, 25 Mar 2017 00:57:48 +0000 (17:57 -0700)]
give the AP and STA netifs different names for ease of debugging lwip

7 years agoesp32: update libraries
Ivan Grokhotkov [Tue, 11 Apr 2017 08:01:30 +0000 (16:01 +0800)]
esp32: update libraries

This removes librtc_{clk,pm}.a and updates librtc.a to use the new
functions defined in ESP-IDF source code.

7 years agoMerge branch 'bugfix/flash_busy_check_Wait_SPI_Idle' into 'master'
Ivan Grokhotkov [Tue, 11 Apr 2017 12:09:06 +0000 (20:09 +0800)]
Merge branch 'bugfix/flash_busy_check_Wait_SPI_Idle' into 'master'

Bugfix/flash busy check wait spi idle

This branch moves some ROM SPI flash driver to IDF to fix bug in Wait_SPI_Idle() function.
Also it applies code style rules of IDF to integrated ROM driver sources.

See merge request !584

7 years agobuild: Fix for old version of git (< 1.8.5)
Anton Maklakov [Tue, 11 Apr 2017 10:04:18 +0000 (18:04 +0800)]
build: Fix for old version of git (< 1.8.5)

7 years agoEnable checks for encrypted flash in OTA
Deomid Ryabkov [Fri, 24 Mar 2017 16:17:15 +0000 (16:17 +0000)]
Enable checks for encrypted flash in OTA

Even if firmware is compiled without CONFIG_FLASH_ENCRYPTION_ENABLED
Rayionale: CONFIG_FLASH_ENCRYPTION_ENABLED controls whether boot loader
generates keys for encryption or not, but flash encryption can be
configured externally. With this change, it's possible to have boot
loader not generate keys but still have encryption working.

Also fix use of it->part

7 years agoexamples: increase stack size in http_request
Ivan Grokhotkov [Tue, 11 Apr 2017 10:38:50 +0000 (18:38 +0800)]
examples: increase stack size in http_request

Previously the stack size was 2048 bytes, which caused stack overflow
to be detected after one or two runs of the example.

7 years agoexamples: fix https_request request content
Ivan Grokhotkov [Tue, 11 Apr 2017 10:37:16 +0000 (18:37 +0800)]
examples: fix https_request request content

Same as 727d884, but for https_request example

7 years agofixing http_request_example request content
Malte Janduda [Fri, 7 Apr 2017 09:56:13 +0000 (11:56 +0200)]
fixing http_request_example request content

request new lines must be `\r\n` as specified in the HTTP RFC.
Also the following logic checks for the socket to be closed by the server. This only happens with HTTP/1.0 not HTTP/1.1. So I have adjusted the protocol in the request, too.

7 years agocomponents/driver/rmt: Add const qualifier for config and tx data.
devsaurus [Wed, 5 Apr 2017 21:08:55 +0000 (23:08 +0200)]
components/driver/rmt: Add const qualifier for config and tx data.

7 years agofix rmt_set_tx_thr_intr_en(): check evt_thresh only in enable path
devsaurus [Tue, 4 Apr 2017 20:06:44 +0000 (22:06 +0200)]
fix rmt_set_tx_thr_intr_en(): check evt_thresh only in enable path

7 years agoFix impossible check in uart_set_line_inverse
shinyquagsire23 [Tue, 4 Apr 2017 07:24:11 +0000 (00:24 -0700)]
Fix impossible check in uart_set_line_inverse

7 years agoMerge branch 'feature/btdm_add_scan_data_len' into 'master'
Ivan Grokhotkov [Tue, 11 Apr 2017 10:22:46 +0000 (18:22 +0800)]
Merge branch 'feature/btdm_add_scan_data_len' into 'master'

bt component: optimize scan feature

1. Add advertising data length and scan response length in scan result
2. Add scan continuously feature
3. Fix non connectable adv topology error
4. Increase BTC queue size

See merge request !644

7 years agobootloader: Add error handling code
Anton Maklakov [Wed, 5 Apr 2017 09:26:37 +0000 (17:26 +0800)]
bootloader: Add error handling code

7 years agodoc: Update manual for CentOS
Anton Maklakov [Tue, 11 Apr 2017 09:59:47 +0000 (17:59 +0800)]
doc: Update manual for CentOS

7 years agosoc: add source code of rtc_clk, rtc_pm
Ivan Grokhotkov [Tue, 11 Apr 2017 07:44:43 +0000 (15:44 +0800)]
soc: add source code of rtc_clk, rtc_pm

7 years agosoc: convert line endings to unix
Ivan Grokhotkov [Tue, 11 Apr 2017 07:44:22 +0000 (15:44 +0800)]
soc: convert line endings to unix

7 years agobt component: optimize scan feature
island [Tue, 11 Apr 2017 06:20:20 +0000 (14:20 +0800)]
bt component: optimize scan feature

1. Add advertising data length and scan response length in scan result
2. Add scan continuously feature
3. Fix non connectable adv topology error
4. Increase BTC queue size

7 years agosoc: move header files into soc component
Ivan Grokhotkov [Tue, 28 Mar 2017 06:05:27 +0000 (14:05 +0800)]
soc: move header files into soc component

7 years agosoc: add apb_ctrl, struct headers for rtc_cntl and rtc_io
Ivan Grokhotkov [Thu, 23 Mar 2017 07:20:05 +0000 (15:20 +0800)]
soc: add apb_ctrl, struct headers for rtc_cntl and rtc_io

7 years agospi_flash: Fixed bug in SPI flash ROM driver to work with embedded flash chip
Alexey Gerenkov [Thu, 9 Mar 2017 07:29:00 +0000 (10:29 +0300)]
spi_flash: Fixed bug in SPI flash ROM driver to work with embedded flash chip

1) fixed SPI_read_status: added check for flash busy flag in matrix mode
2) fixed SPI_page_program: enable write before writing data to SPI FIFO
3) SPI flash ROM funcs replacement is controlled via menuconfig option

7 years agomodify some text error
chenyudong [Mon, 10 Apr 2017 12:39:04 +0000 (20:39 +0800)]
modify some text error

7 years agocomponent/bt: implement classic Bluetooth profiles A2DP(sink) and AVRCP(controller)
wangmengyang [Mon, 10 Apr 2017 08:12:21 +0000 (16:12 +0800)]
component/bt: implement classic Bluetooth profiles A2DP(sink) and AVRCP(controller)

7 years agoMerge branch 'bugfix/invalid_filter_for_unit_test_ci_runner_config_file' into 'master'
Ivan Grokhotkov [Mon, 10 Apr 2017 07:57:59 +0000 (15:57 +0800)]
Merge branch 'bugfix/invalid_filter_for_unit_test_ci_runner_config_file' into 'master'

CI: fix bug in generating UT CI runner config

the first case ID in filter is incorrect. Should put test case ID but not test case itself to the filter.

See merge request !643

7 years agoCI: fix bug in generating UT CI runner config:
He Yin Ling [Mon, 10 Apr 2017 07:08:15 +0000 (15:08 +0800)]
CI: fix bug in generating UT CI runner config:

the first case ID in filter is incorrect. Should put test case ID but
not test case itself to the filter.

7 years agolwip: refractor to esp specific counter
Liu Zhi Fu [Wed, 5 Apr 2017 07:21:55 +0000 (15:21 +0800)]
lwip: refractor to esp specific counter

1. Add tcp debug counter
2. Refractor other ESP specific counter

7 years agoMerge branch 'cherry-pick-6181af2a' into 'master'
Ivan Grokhotkov [Mon, 10 Apr 2017 06:20:01 +0000 (14:20 +0800)]
Merge branch 'cherry-pick-6181af2a' into 'master'

Merge branch 'test/reboot_between_unit_test_cases' into 'release/v2.0'

CI: add reset between running each unit test cases

Unit test is designed to detect bug **within** each test case. Therefore we'll reset between each case to provide a clean context. We will later add stress cases to run unit test cases together to detect potential bugs.

See merge request !636

See merge request !642

7 years agoMerge branch 'test/reboot_between_unit_test_cases' into 'release/v2.0'
Ivan Grokhotkov [Wed, 5 Apr 2017 12:52:13 +0000 (20:52 +0800)]
Merge branch 'test/reboot_between_unit_test_cases' into 'release/v2.0'

CI: add reset between running each unit test cases

Unit test is designed to detect bug **within** each test case. Therefore we'll reset between each case to provide a clean context. We will later add stress cases to run unit test cases together to detect potential bugs.

See merge request !636

7 years agoMerge branch 'feature/parse_unit_test_cases_from_build_files' into 'master'
Ivan Grokhotkov [Mon, 10 Apr 2017 04:20:00 +0000 (12:20 +0800)]
Merge branch 'feature/parse_unit_test_cases_from_build_files' into 'master'

CI: modify unit test parser to get unit test cases from build files

See merge request !545

7 years agoMerge branch 'feature/ci_check_commits' into 'master'
Ivan Grokhotkov [Mon, 10 Apr 2017 04:19:35 +0000 (12:19 +0800)]
Merge branch 'feature/ci_check_commits' into 'master'

CI: check if commit history need revise

Usually we need to cleanup the commit history before MR merged. Sometime we forget to squash before merge.
We can add certain pattern at the beginning of commit message, and add a job in deploy stage to check the patterns.
When we want to push code for review or resolve review comments, we can add this pattern to commit message as a reminder.
This will not block CI tests, checking job will always be put in the last CI stage.

See merge request !629

7 years agoMerge branch 'bugfix/cross_core_int_init_single_core' into 'master'
Ivan Grokhotkov [Mon, 10 Apr 2017 04:19:10 +0000 (12:19 +0800)]
Merge branch 'bugfix/cross_core_int_init_single_core' into 'master'

esp32: initialize cross-core interrupt in single core mode

The software interrupt originally used as the cross-core interrupt is
now also used to yield from a FreeRTOS critical section; therefore it
must be initialized for single core mode as well.

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

See merge request !640