]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agopanic handler: Print correct PC & backtrace for debug exceptions
Angus Gratton [Mon, 23 Oct 2017 07:46:43 +0000 (15:46 +0800)]
panic handler: Print correct PC & backtrace for debug exceptions

7 years agoMerge branch 'feature/FreeRTOS_Trace_Facilities' into 'master'
Angus Gratton [Fri, 20 Oct 2017 08:42:15 +0000 (16:42 +0800)]
Merge branch 'feature/FreeRTOS_Trace_Facilities' into 'master'

feature/make freertos trace facility configurable

See merge request !1420

7 years agoMerge branch 'feature/i2s_built_in_adc' into 'master'
Ivan Grokhotkov [Fri, 20 Oct 2017 07:52:56 +0000 (15:52 +0800)]
Merge branch 'feature/i2s_built_in_adc' into 'master'

feature(I2S-ADC): add ADC mode for I2S.

See merge request !1077

7 years agofreertos/make trace facility configurable
Darian Leung [Thu, 28 Sep 2017 04:33:53 +0000 (12:33 +0800)]
freertos/make trace facility configurable

This commit makes configUSE_TRACE_FACILITY and
configUSE_STATS_FORMATTING_FUNCTIONS configurable in kconfig. Test cases fro the
functions enabled by the two configurations above have also been added.

Test cases for the following functions have been added...

- uxTaskGetSystemState()
- uxTaskGetTaskNumber()
- vTaskSetTaskNumber()

- xEventGroupClearBitsFromISR()
- xEventGroupSetBitsFromISR()
- uxEventGroupGetNumber()

- uxQueueGetQueueNumber()
- vQueueSetQueueNumber()
- ucQueueGetQueueType()

Test cases for the following functions were not required...

- prvListTaskWithinSingleList()
- prvWriteNameToBuffer()
- vTaskList()

7 years agoMerge branch 'bugfix/touchpad_dac_mismatch_on_tp8_tp9' into 'master'
Angus Gratton [Fri, 20 Oct 2017 06:18:32 +0000 (14:18 +0800)]
Merge branch 'bugfix/touchpad_dac_mismatch_on_tp8_tp9' into 'master'

bugfix(touch): add workaround for touch pad DAC hardware source mismatch on tp8 and tp9.

See merge request !1288

7 years agoMerge branch 'feature/unit-test-configs' into 'master'
Ivan Grokhotkov [Fri, 20 Oct 2017 06:03:53 +0000 (14:03 +0800)]
Merge branch 'feature/unit-test-configs' into 'master'

unit-test-app: add support for testing multiple configurations

See merge request !1249

7 years agoMerge branch 'feature/add_dns_api' into 'master'
Angus Gratton [Fri, 20 Oct 2017 03:54:20 +0000 (11:54 +0800)]
Merge branch 'feature/add_dns_api' into 'master'

tcpip_adapter/lwip: add dns api

See merge request !1405

7 years agoMerge branch 'feature/heap_caps_dump' into 'master'
Angus Gratton [Fri, 20 Oct 2017 03:52:23 +0000 (11:52 +0800)]
Merge branch 'feature/heap_caps_dump' into 'master'

heap: Add heap_caps_dump() / heap_caps_dump_all() functions

See merge request !1422

7 years agoheap: Add heap_caps_dump() / heap_caps_dump_all() functions
Angus Gratton [Wed, 18 Oct 2017 08:25:17 +0000 (16:25 +0800)]
heap: Add heap_caps_dump() / heap_caps_dump_all() functions

Dump the structure of the heap for debugging purposes.

7 years agoMerge branch 'bugfix/init_nvs_flash_in_iperf_example' into 'master'
Ivan Grokhotkov [Fri, 20 Oct 2017 03:03:57 +0000 (11:03 +0800)]
Merge branch 'bugfix/init_nvs_flash_in_iperf_example' into 'master'

example: init nvs in iperf example

See merge request !1429

7 years agoexample: init nvs in iperf example
Liu Zhi Fu [Fri, 20 Oct 2017 01:52:58 +0000 (09:52 +0800)]
example: init nvs in iperf example

Need to call nvs_flash_init in iperf example

7 years agounit tests: fix warnings, build with -Werror
Ivan Grokhotkov [Wed, 18 Oct 2017 13:09:53 +0000 (21:09 +0800)]
unit tests: fix warnings, build with -Werror

- libsodium: silence warnings
- unit tests: fix warnings
- spiram: fix warnings
- ringbuf test: enable by default, reduce delays

7 years agobuild system: fix warning about undefined variable 'quote'
Ivan Grokhotkov [Wed, 18 Oct 2017 12:43:43 +0000 (20:43 +0800)]
build system: fix warning about undefined variable 'quote'

7 years agosleep: don't power down VDD_SDIO in light sleep if SPIRAM is enabled
Ivan Grokhotkov [Wed, 18 Oct 2017 12:04:40 +0000 (20:04 +0800)]
sleep: don't power down VDD_SDIO in light sleep if SPIRAM is enabled

7 years agoupdate libstdc++.a built with pSRAM workaround
Ivan Grokhotkov [Wed, 18 Oct 2017 12:01:29 +0000 (20:01 +0800)]
update libstdc++.a built with pSRAM workaround

7 years agospi_flash: fix spi_flash_read into buffer in external RAM, add test
Ivan Grokhotkov [Wed, 18 Oct 2017 04:21:19 +0000 (12:21 +0800)]
spi_flash: fix spi_flash_read into buffer in external RAM, add test

7 years agosoc: correct values of SOC_BYTE_ACCESSIBLE_LOW, SOC_MEM_INTERNAL_LOW
Ivan Grokhotkov [Wed, 18 Oct 2017 04:18:38 +0000 (12:18 +0800)]
soc: correct values of SOC_BYTE_ACCESSIBLE_LOW, SOC_MEM_INTERNAL_LOW

Internal byte accessible memory starts with Internal ROM 1 at 0x3FF90000.
Region of RTC fast memory starting at 0x3FF80000 is not used in IDF as
it is mapped to PRO CPU only.

7 years agospi_flash_cache_enabled: report correct result in single core mode
Ivan Grokhotkov [Mon, 18 Sep 2017 09:26:59 +0000 (17:26 +0800)]
spi_flash_cache_enabled: report correct result in single core mode

7 years agounit test: adapt tests to single core configuration
Ivan Grokhotkov [Mon, 18 Sep 2017 06:49:23 +0000 (14:49 +0800)]
unit test: adapt tests to single core configuration

7 years agounit-test: esp timer use same name as ets timer
He Yin Ling [Wed, 13 Sep 2017 14:17:24 +0000 (22:17 +0800)]
unit-test: esp timer use same name as ets timer

We will use case name to select test cases in UT jobs.
Same case name is not allowed.

7 years agoCI: support test UT with different config by CI
He Yin Ling [Wed, 13 Sep 2017 12:39:43 +0000 (20:39 +0800)]
CI: support test UT with different config by CI

7 years agounit-test-app: new targets for building different configurations
Ivan Grokhotkov [Tue, 12 Sep 2017 17:40:54 +0000 (01:40 +0800)]
unit-test-app: new targets for building different configurations

7 years agoMerge branch 'bugfix/malloc_failure' into 'master'
Ivan Grokhotkov [Thu, 19 Oct 2017 13:30:26 +0000 (21:30 +0800)]
Merge branch 'bugfix/malloc_failure' into 'master'

heap: Fix race condition causing malloc() to fail under some conditions

See merge request !1424

7 years agoMerge branch 'bugfix/heap_check_integrity' into 'master'
Ivan Grokhotkov [Thu, 19 Oct 2017 13:30:16 +0000 (21:30 +0800)]
Merge branch 'bugfix/heap_check_integrity' into 'master'

heap: Fix spurious heap_caps_check_integrity() errors in Comprehensive mode

See merge request !1421

7 years agotcpip_adapter/lwip: make dhcp domain name server option configurable
Liu Zhi Fu [Wed, 7 Jun 2017 13:22:53 +0000 (21:22 +0800)]
tcpip_adapter/lwip: make dhcp domain name server option configurable

Add api to configure dhcp option: domain name server

1.closes https://github.com/espressif/esp-idf/issues/162

2.closes https://github.com/espressif/esp-idf/issues/705

7 years agoheap: Fix race condition causing malloc() to fail under some conditions
Angus Gratton [Thu, 19 Oct 2017 07:59:04 +0000 (15:59 +0800)]
heap: Fix race condition causing malloc() to fail under some conditions

During a call to multi_heap_malloc(), if both these conditions were true:
- That heap only has one block large enough for the allocation
  (this is always the case if the heap is unfragmented).
- Another allocation is simultaneously occurring in the same heap.

... multi_heap_malloc() could incorrectly return NULL.

This caused IDF heap_caps_malloc() and malloc() to also fail, particularly
often if only one or two heaps had space for the allocation (otherwise
heap_caps_malloc() fails over to the next heap).

7 years agoMerge branch 'docs/esp32_hooks' into 'master'
Ivan Grokhotkov [Thu, 19 Oct 2017 04:32:36 +0000 (12:32 +0800)]
Merge branch 'docs/esp32_hooks' into 'master'

docs/Added documentation about esp32 hooks

See merge request !1417

7 years agoMerge branch 'bugfix/fix_some_wifi_bugs' into 'master'
Ivan Grokhotkov [Wed, 18 Oct 2017 08:20:09 +0000 (16:20 +0800)]
Merge branch 'bugfix/fix_some_wifi_bugs' into 'master'

esp32: fix some wifi bugs

See merge request !1414

7 years agoheap: Fix spurious heap_caps_check_integrity() errors in Comprehensive mode
Angus Gratton [Wed, 18 Oct 2017 06:54:55 +0000 (14:54 +0800)]
heap: Fix spurious heap_caps_check_integrity() errors in Comprehensive mode

Heap was not being locked before poisoning, so heap_caps_check_integrity()
would sometimes race with checking the poison bytes and print unnecessary
errors.

Details: https://esp32.com/viewtopic.php?f=2&t=3348&p=15732#p15732

7 years agodocs/Added documentation about esp32 hooks
Darian Leung [Tue, 17 Oct 2017 10:57:31 +0000 (18:57 +0800)]
docs/Added documentation about esp32 hooks

This commit adds documentation about the esp32 Idle and Tick Hooks

7 years agoMerge branch 'bugfix/cxx_exceptions' into 'master'
Angus Gratton [Wed, 18 Oct 2017 07:08:10 +0000 (15:08 +0800)]
Merge branch 'bugfix/cxx_exceptions' into 'master'

Full C++ Exception Support option (& reclaim memory when exceptions disabled)

See merge request !1353

7 years agoesp32: fix some wifi bugs
Deng Xin [Tue, 17 Oct 2017 06:57:45 +0000 (14:57 +0800)]
esp32: fix some wifi bugs

1. Fix WiFi timer enable twice issue
2. Fix a softAP compatibility issue
3. Fix ebuf alloc counter issue
4. remove nvs_flash_init() in esp_wifi_init()
5. Fix scan only find few APs after set bssid
6. Fix can not connect to hidden SoftAP
7. Remove group key entry before connecting ot AP

7 years agoMerge branch 'feature/fsync' into 'master'
Ivan Grokhotkov [Tue, 17 Oct 2017 23:17:56 +0000 (07:17 +0800)]
Merge branch 'feature/fsync' into 'master'

vfs,fat: add fsync to VFS interface, implement it for fatfs

See merge request !1412

7 years agoMerge branch 'feature/update_phy362_rtc230' into 'master'
Ivan Grokhotkov [Tue, 17 Oct 2017 10:20:25 +0000 (18:20 +0800)]
Merge branch 'feature/update_phy362_rtc230' into 'master'

component/esp32 : update phy & rtc

See merge request !1411

7 years agocomponent/esp32 : update phy & rtc
Tian Hao [Tue, 17 Oct 2017 03:22:46 +0000 (11:22 +0800)]
component/esp32 : update phy & rtc

RTC V230
add BT AGC saturation protection, replace RTC V229.

PHY V362
Power up print: "phy_version: 362.0, 61e8d92, Sep 8 2017, 18:48:13"
1. esp_init_data_v3.bin
modify TX target power
modify WIFI & BT RX gain table
2. modify phy_close_rf()
3. add phy_set_most_tpw()
4. 26M crystal work OK
5. noise_check_loop ok

7 years agoMerge branch 'bugfix/slave_dma_claim' into 'master'
Ivan Grokhotkov [Tue, 17 Oct 2017 09:41:39 +0000 (17:41 +0800)]
Merge branch 'bugfix/slave_dma_claim' into 'master'

fix(spi_slave): enable DMA clock when initialization.

See merge request !1385

7 years agoMerge branch 'feature/reduce_min_num_of_wifi_static_tx_buffer' into 'master'
Ivan Grokhotkov [Tue, 17 Oct 2017 09:40:14 +0000 (17:40 +0800)]
Merge branch 'feature/reduce_min_num_of_wifi_static_tx_buffer' into 'master'

Reduce minimum number of WiFi static tx buffer

See merge request !1398

7 years agopthreads local storage: add test for unique keys
Angus Gratton [Tue, 10 Oct 2017 00:50:02 +0000 (11:50 +1100)]
pthreads local storage: add test for unique keys

7 years agounit tests: If heap tracing is enabled in sdkconfig, leak trace each test
Angus Gratton [Wed, 4 Oct 2017 06:30:10 +0000 (17:30 +1100)]
unit tests: If heap tracing is enabled in sdkconfig, leak trace each test

7 years agocxx: Add KConfig option for C++ exceptions, disable by default
Angus Gratton [Wed, 4 Oct 2017 06:29:21 +0000 (17:29 +1100)]
cxx: Add KConfig option for C++ exceptions, disable by default

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

(Additional 20KB is still used if C++ exception support is enabled in
menuconfig.)

7 years agovfs,fat: add fsync to VFS interface, implement it for fatfs
Ivan Grokhotkov [Tue, 17 Oct 2017 06:00:01 +0000 (14:00 +0800)]
vfs,fat: add fsync to VFS interface, implement it for fatfs

7 years agoUnit tests: If a test fails due to corrupting memory, don't print a misleading source...
Angus Gratton [Wed, 4 Oct 2017 05:00:38 +0000 (16:00 +1100)]
Unit tests: If a test fails due to corrupting memory, don't print a misleading source file name

7 years agoidf_monitor: Demangle C++ names
Angus Gratton [Wed, 4 Oct 2017 05:00:28 +0000 (16:00 +1100)]
idf_monitor: Demangle C++ names

7 years agocxx: Add a sanity check for C++ exception support
Angus Gratton [Wed, 4 Oct 2017 05:00:11 +0000 (16:00 +1100)]
cxx: Add a sanity check for C++ exception support

7 years agopthread: Add support for pthread thread local storage
Angus Gratton [Wed, 4 Oct 2017 04:52:19 +0000 (15:52 +1100)]
pthread: Add support for pthread thread local storage

Refactors LWIP to use this for the LWIP thread local semaphore

7 years agofreertos: Idle task shouldn't hold xTaskQueueMutex while calling TLS destructors
Angus Gratton [Thu, 5 Oct 2017 01:12:19 +0000 (12:12 +1100)]
freertos: Idle task shouldn't hold xTaskQueueMutex while calling TLS destructors

If the callbacks use any blocking call (ie printf), this can otherwise trigger a deadlock.

7 years agocxx tests: Fix race condition w/ leak checker when tearing down test tasks
Angus Gratton [Wed, 4 Oct 2017 02:25:16 +0000 (13:25 +1100)]
cxx tests: Fix race condition w/ leak checker when tearing down test tasks

7 years agoMerge branch 'feature/sockets_files_shared_fd_space' into 'master'
Angus Gratton [Tue, 17 Oct 2017 06:17:09 +0000 (14:17 +0800)]
Merge branch 'feature/sockets_files_shared_fd_space' into 'master'

lwip & vfs: POSIX I/O functions operate on sockets and files (first stage, no select() yet)

See merge request !1352

7 years agoMerge branch 'bugfix/add_mutex_for_dual_core_hooks' into 'master'
Ivan Grokhotkov [Tue, 17 Oct 2017 06:15:09 +0000 (14:15 +0800)]
Merge branch 'bugfix/add_mutex_for_dual_core_hooks' into 'master'

freertos/Add mutex for dual core hooks

See merge request !1406

7 years agoMerge branch 'bugfix/ets_timer_iram' into 'master'
Ivan Grokhotkov [Tue, 17 Oct 2017 06:12:43 +0000 (14:12 +0800)]
Merge branch 'bugfix/ets_timer_iram' into 'master'

wifi/bt coexistence: Fix disabled cache access race when writing to flash

See merge request !1409

7 years agofix(spi_slave): enable DMA clock when initialization.
Gabriel Carstoiu [Fri, 22 Sep 2017 09:47:06 +0000 (17:47 +0800)]
fix(spi_slave): enable DMA clock when initialization.

merging in the code updates to the SPI master code done in commit b834fcf78aa4cc16d4c3f5349286df3580d24edb.

TW#15670, Closes #1027

7 years agofix(periph_ctrl): fix reset function in `periph_ctrl.c`
michael [Tue, 17 Oct 2017 03:52:50 +0000 (11:52 +0800)]
fix(periph_ctrl): fix reset function in `periph_ctrl.c`

7 years agofeat(spi_slave): append trans_len field in trans_desc to show length actually transfe...
michael [Sat, 30 Sep 2017 11:59:05 +0000 (19:59 +0800)]
feat(spi_slave): append trans_len field in trans_desc to show length actually transferred.

7 years agoMerge branch 'feature/spiram_init_in_app' into 'master'
Ivan Grokhotkov [Mon, 16 Oct 2017 20:56:35 +0000 (04:56 +0800)]
Merge branch 'feature/spiram_init_in_app' into 'master'

spiram: expose function to initialize SPI RAM cache

See merge request !1281

7 years agoMerge branch 'bugfix/soc_component_rodata' into 'master'
Ivan Grokhotkov [Mon, 16 Oct 2017 20:54:43 +0000 (04:54 +0800)]
Merge branch 'bugfix/soc_component_rodata' into 'master'

soc: place constant data from rtc_clk.c into DRAM

See merge request !1321

7 years agoMerge branch 'bugfix/sd_card_fixes' into 'master'
Ivan Grokhotkov [Mon, 16 Oct 2017 20:45:24 +0000 (04:45 +0800)]
Merge branch 'bugfix/sd_card_fixes' into 'master'

SD card fixes

See merge request !1393

7 years agoMerge branch 'bugfix/console_empty_command' into 'master'
Ivan Grokhotkov [Mon, 16 Oct 2017 20:44:19 +0000 (04:44 +0800)]
Merge branch 'bugfix/console_empty_command' into 'master'

console: handle empty input to esp_console_run correctly

See merge request !1390

7 years agoMerge branch 'bugfix/freertos_portmux_debug' into 'master'
Ivan Grokhotkov [Mon, 16 Oct 2017 20:44:04 +0000 (04:44 +0800)]
Merge branch 'bugfix/freertos_portmux_debug' into 'master'

freertos: fix compilation errors with portMUX debugging enabled

See merge request !1392

7 years agoMerge branch 'bugfix/nvs_init_partition' into 'master'
Ivan Grokhotkov [Mon, 16 Oct 2017 20:43:54 +0000 (04:43 +0800)]
Merge branch 'bugfix/nvs_init_partition' into 'master'

nvs: fix nvs_flash_init_partition initializing default partition

See merge request !1391

7 years agowifi/bt coexistence: Fix disabled cache access race when writing to flash
Angus Gratton [Mon, 16 Oct 2017 11:16:20 +0000 (19:16 +0800)]
wifi/bt coexistence: Fix disabled cache access race when writing to flash

Moves the ets_timer_arm() / ets_timer_disarm() code paths to RAM

Overhead is 740 bytes of IRAM, 0 bytes DRAM

(For comparison: If all of esp_timer.c is moved to RAM, overhead is 1068 bytes IRAM and 480 bytes DRAM.)

7 years agoMerge branch 'bugfix/tw15595_eth_got_ip_log_error' into 'master'
Jiang Jiang Jian [Mon, 16 Oct 2017 09:30:14 +0000 (17:30 +0800)]
Merge branch 'bugfix/tw15595_eth_got_ip_log_error' into 'master'

esp32/tcpipadapter: correct eth ip got event info

See merge request !1388

7 years agoMerge branch 'feature/some_refactor_for_esp_ping' into 'master'
Jiang Jiang Jian [Mon, 16 Oct 2017 09:30:00 +0000 (17:30 +0800)]
Merge branch 'feature/some_refactor_for_esp_ping' into 'master'

lwip: refactor to socket ping

See merge request !875

7 years agoesp32/Add mutex for dual core hooks
Darian Leung [Mon, 16 Oct 2017 03:47:38 +0000 (11:47 +0800)]
esp32/Add mutex for dual core hooks

This commit adds critical sections for the dual core hooks

7 years agovfs: Remove fd_offset member
Angus Gratton [Tue, 10 Oct 2017 05:11:12 +0000 (16:11 +1100)]
vfs: Remove fd_offset member

This was intended for integrating LWIP, but a different approach was used.

7 years agovfs: Add C++ guards to esp_vfs_dev.h
Angus Gratton [Tue, 3 Oct 2017 23:55:54 +0000 (10:55 +1100)]
vfs: Add C++ guards to esp_vfs_dev.h

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

7 years agolwip: Check for underflow in FD_SET()/FD_GET()
Angus Gratton [Tue, 3 Oct 2017 23:41:09 +0000 (10:41 +1100)]
lwip: Check for underflow in FD_SET()/FD_GET()

select() only works with LWIP sockets which have a high LWIP_SOCKET_OFFSET,
so chance of accidental underflow is high.

7 years agolwip: Fix bug with LWIP_SOCKET_OFFSET & IGMP group support
Angus Gratton [Tue, 3 Oct 2017 23:18:10 +0000 (10:18 +1100)]
lwip: Fix bug with LWIP_SOCKET_OFFSET & IGMP group support

7 years agonewlib: Remove fcntl() implementation from libc
Angus Gratton [Tue, 3 Oct 2017 22:53:06 +0000 (09:53 +1100)]
newlib: Remove fcntl() implementation from libc

Allows fcntl() implementation in vfs to be used.

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

Note this is different to the other libc file-related syscalls, as there is no
reent structure involved.

7 years agolwip: Route LWIP socket POSIX I/O functions via IDF VFS layer
Angus Gratton [Tue, 3 Oct 2017 05:56:55 +0000 (16:56 +1100)]
lwip: Route LWIP socket POSIX I/O functions via IDF VFS layer

No more conflicts between LWIP & newlib read(), write(), fcntl(), etc.

select() still only works if all of the fds are sockets.

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

7 years agovfs: Add ioctl() to filesystem set
Angus Gratton [Tue, 3 Oct 2017 22:24:40 +0000 (09:24 +1100)]
vfs: Add ioctl() to filesystem set

7 years agoMerge branch 'bugfix/freertos_resume_scheduler_pending_tasks' into 'master'
Angus Gratton [Mon, 16 Oct 2017 01:43:04 +0000 (09:43 +0800)]
Merge branch 'bugfix/freertos_resume_scheduler_pending_tasks' into 'master'

freertos: Fix bug with xTaskResumeAll() not resuming all tasks

See merge request !1330

7 years agospiram: expose function to initialize SPI RAM cache
Ivan Grokhotkov [Mon, 18 Sep 2017 15:02:33 +0000 (23:02 +0800)]
spiram: expose function to initialize SPI RAM cache

Some frameworks based on ESP-IDF need to be able to decide whether to
initialize SPI RAM after the application has started. This change splits
out part of esp_spiram_init which manipulate cache MMU into a separate
function. Applications can disable cache, call esp_spiram_init_cache,
re-enable cache, and then call esp_spiram_init.
Disabling and re-enabling the cache can be achieved using functions
provided in esp_spi_flash.h.

7 years agoMerge branch 'bugfix/freertos_dual_core_hooks' into 'master'
He Yin Ling [Sat, 14 Oct 2017 01:41:03 +0000 (09:41 +0800)]
Merge branch 'bugfix/freertos_dual_core_hooks' into 'master'

bugfix/freertos_dual_core_hooks

See merge request !1399

7 years agoMerge branch 'bugfix/tw15538_ipv6_socket_close_error' into 'master'
Jiang Jiang Jian [Fri, 13 Oct 2017 11:15:44 +0000 (19:15 +0800)]
Merge branch 'bugfix/tw15538_ipv6_socket_close_error' into 'master'

lwip: init lwip error code

See merge request !1379

7 years agobugfix/freertos_dual_core_hooks
Darian Leung [Fri, 13 Oct 2017 10:27:53 +0000 (18:27 +0800)]
bugfix/freertos_dual_core_hooks

This commit fixes bugs with the dual core changes to freeRTOS tick and idle hooks.
Interrupt watchdog now registers tick hooks to both cores.
API for cross core tick and idle hook registration were also added

7 years agoReduce minimum number of WiFi static tx buffer
XiaXiaotian [Thu, 12 Oct 2017 12:56:13 +0000 (20:56 +0800)]
Reduce minimum number of WiFi static tx buffer

Calibrate tx power after sending five packets

7 years agoMerge branch 'feature/add_const_for_wifi_api' into 'master'
Jiang Jiang Jian [Fri, 13 Oct 2017 09:08:29 +0000 (17:08 +0800)]
Merge branch 'feature/add_const_for_wifi_api' into 'master'

esp32: add const for some WiFi api

See merge request !1394

7 years agolwip: refactor to socket ping
Liu Zhi Fu [Thu, 15 Jun 2017 03:37:23 +0000 (11:37 +0800)]
lwip: refactor to socket ping

Do some refactor to socket ping:
1. Add ping_deinit to kill ping thread
2. Apply configuration set by esp_ping_set_target to socket ping
3. Limit only one ping thread

7 years agoMerge branch 'bugfix/btdm_fix_set_attr_value_crash_when_length_is_0' into 'master'
Jiang Jiang Jian [Fri, 13 Oct 2017 08:00:15 +0000 (16:00 +0800)]
Merge branch 'bugfix/btdm_fix_set_attr_value_crash_when_length_is_0' into 'master'

component/bt: fix crash when the length of attr value set zero

See merge request !1397

7 years agolwip: init lwip error code
Liu Zhi Fu [Wed, 11 Oct 2017 10:31:10 +0000 (18:31 +0800)]
lwip: init lwip error code

Init the error code to ERR_OK when call tcpip_apimsg

7 years agoMerge branch 'bugfix/btdm_fix_register_app_id_failed_when_more_than_3' into 'master'
Jiang Jiang Jian [Fri, 13 Oct 2017 07:57:00 +0000 (15:57 +0800)]
Merge branch 'bugfix/btdm_fix_register_app_id_failed_when_more_than_3' into 'master'

component/bt: fix register more than three app_ids failed

See merge request !1389

7 years agoesp32/tcpipadapter: correct eth ip got event info
Liu Zhi Fu [Thu, 12 Oct 2017 12:24:02 +0000 (20:24 +0800)]
esp32/tcpipadapter: correct eth ip got event info

1. Raise SYSTEM_EVENT_ETH_GOT_IP when eth got ip
2. Add default handler for SYSTEM_EVENT_ETH_GOT_IP
3. Minor change about ethernet kconfig

7 years agoMerge branch 'feature/alloc_memories_of_wifi_and_lwip_in_spiram_first' into 'master'
Jiang Jiang Jian [Fri, 13 Oct 2017 07:47:27 +0000 (15:47 +0800)]
Merge branch 'feature/alloc_memories_of_wifi_and_lwip_in_spiram_first' into 'master'

Allocate some memories in SPIRAM first.

See merge request !1367

7 years agoMerge branch 'bugfix/btdm_controller_deinit' into 'master'
Jiang Jiang Jian [Fri, 13 Oct 2017 07:44:58 +0000 (15:44 +0800)]
Merge branch 'bugfix/btdm_controller_deinit' into 'master'

component/bt : allow init after de-init

See merge request !1371

7 years agoesp32: add const for some WiFi api
Liu Zhi Fu [Fri, 13 Oct 2017 01:47:19 +0000 (09:47 +0800)]
esp32: add const for some WiFi api

Add const if the pointer parameter is const

7 years agoComponent/bt: fix crash when set attr value 0
zhiweijian [Fri, 13 Oct 2017 07:06:08 +0000 (15:06 +0800)]
Component/bt: fix crash when set attr value 0

7 years agoAllocate some memories in SPIRAM first.
XiaXiaotian [Sat, 30 Sep 2017 07:28:41 +0000 (15:28 +0800)]
Allocate some memories in SPIRAM first.

    Try to allocate some WiFi and LWIP memories in SPIRAM first. If
    failed, try to allocate in internal RAM then.

7 years agoMerge branch 'bugfix/spi_reset_race' into 'master'
Angus Gratton [Fri, 13 Oct 2017 00:51:36 +0000 (08:51 +0800)]
Merge branch 'bugfix/spi_reset_race' into 'master'

periph_ctrl: Refactor to add periph_module_reset(), avoid potential race in SPI DMA workaround

See merge request !1349

7 years agoMerge branch 'bugfix/libsodium_mbedtls_sha' into 'master'
Angus Gratton [Fri, 13 Oct 2017 00:50:24 +0000 (08:50 +0800)]
Merge branch 'bugfix/libsodium_mbedtls_sha' into 'master'

libsodium: Fix mbedTLS SHA256 & SHA512 implementation, make optional

See merge request !1329

7 years agoMerge branch 'feature/windows_build_check_msys2' into 'master'
Angus Gratton [Fri, 13 Oct 2017 00:50:09 +0000 (08:50 +0800)]
Merge branch 'feature/windows_build_check_msys2' into 'master'

build system: Detect wrong Windows MSYSTEM version and warn

See merge request !1356

7 years agoMerge branch 'bugfix/freertos_halt_on_startup' into 'master'
Angus Gratton [Fri, 13 Oct 2017 00:40:39 +0000 (08:40 +0800)]
Merge branch 'bugfix/freertos_halt_on_startup' into 'master'

freertos: Remove "stop program on scheduler start when JTAG/OCD is detected" option

See merge request !1354

7 years agofreertos: fix compilation errors with portMUX debugging enabled
Ivan Grokhotkov [Fri, 13 Oct 2017 00:33:57 +0000 (08:33 +0800)]
freertos: fix compilation errors with portMUX debugging enabled

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

Ref TW15702.

7 years agoexamples/sdmmc: enable internal pull-ups in SD mode
Ivan Grokhotkov [Fri, 13 Oct 2017 00:21:06 +0000 (08:21 +0800)]
examples/sdmmc: enable internal pull-ups in SD mode

Some development boards do not have sufficient external pull-ups on
SD card pins. Most notably, if high level on GPIO13 is not registered
by the card when GO_IDLE_STATE command is received, the card will enter
SPI mode and further communication will not be possible, until power to
the card is toggled.

This change enables internal pull-ups on SD card pins in an attempt to
make this initialization process more reliable.

7 years agosdmmc: allow command timeouts to be configured
Ivan Grokhotkov [Fri, 13 Oct 2017 00:16:07 +0000 (08:16 +0800)]
sdmmc: allow command timeouts to be configured

Previously the timeout was set to the same value (1000ms) for all kinds
of commands. In some cases, such as with slow cards, write commands
failed to complete in time.
This change makes command timeouts configurable via sdmmc_host_t
structure, and also makes default timeouts different for ordinary
commands and write commands.

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

Ref TW15774.

7 years agofreertos: Remove "stop program on scheduler start when JTAG/OCD is detected" option
Angus Gratton [Thu, 5 Oct 2017 05:57:59 +0000 (16:57 +1100)]
freertos: Remove "stop program on scheduler start when JTAG/OCD is detected" option

No longer used with new dual core target & JTAG instructions.

7 years agonvs: fix nvs_flash_init_partition initializing default partition
Ivan Grokhotkov [Thu, 12 Oct 2017 23:19:16 +0000 (07:19 +0800)]
nvs: fix nvs_flash_init_partition initializing default partition

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

Ref TW15698.

7 years agoconsole: handle empty input to esp_console_run correctly
Ivan Grokhotkov [Thu, 12 Oct 2017 23:12:08 +0000 (07:12 +0800)]
console: handle empty input to esp_console_run correctly

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

Ref. TW15752

7 years agoComponent/bt: fix register more than 3 app_id failed
zhiweijian [Thu, 12 Oct 2017 13:07:40 +0000 (21:07 +0800)]
Component/bt: fix register more than 3 app_id failed

7 years agoMerge branch 'feature/i2s_apll' into 'master'
Jiang Jiang Jian [Thu, 12 Oct 2017 11:06:50 +0000 (19:06 +0800)]
Merge branch 'feature/i2s_apll' into 'master'

driver/i2s: add support apll clock

See merge request !1115

7 years agoMerge branch 'bugfix/btdm_fix_add_whitelist_failed' into 'master'
Jiang Jiang Jian [Thu, 12 Oct 2017 11:01:01 +0000 (19:01 +0800)]
Merge branch 'bugfix/btdm_fix_add_whitelist_failed' into 'master'

Component/bt: fix add whitelist failed

See merge request !1326