]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agoMerge branch 'test/integrate_stress_test_to_CI' into 'master'
Ivan Grokhotkov [Mon, 12 Dec 2016 08:20:13 +0000 (16:20 +0800)]
Merge branch 'test/integrate_stress_test_to_CI' into 'master'

add supported stress test to CI

add supported stress test to CI:

stress test requires long time to execute. They will only be executed when variable NIGHT_BUILD=YES. Therefore we'll use gitlab-API trigger to execute stress test cases.

See merge request !220

7 years agoMerge branch 'bugfix/driver_cleanup_log' into 'master'
Ivan Grokhotkov [Mon, 12 Dec 2016 02:15:25 +0000 (10:15 +0800)]
Merge branch 'bugfix/driver_cleanup_log' into 'master'

drivers: remove file paths from log statements

Function name and error string are usually sufficient to find the place which has triggered an error.

`__FILE__` macro generates a string which has absolute file name (with our build system), which add many long strings to the program binary.

Also change log tags to lower case to match style used elsewhere.

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

See merge request !282

7 years agoremove not used code as `rm -rf` always return 0
Yinling [Mon, 12 Dec 2016 01:31:06 +0000 (09:31 +0800)]
remove not used code as `rm -rf` always return 0

7 years agoMerge branch 'feature/esptool_flash_encryption' into 'master'
Angus Gratton [Sun, 11 Dec 2016 22:50:46 +0000 (06:50 +0800)]
Merge branch 'feature/esptool_flash_encryption' into 'master'

Flash encryption support

Flash encryption support in build system, tooling

To come in future MR:
* On-device key generation on first boot (for production devices), need to finalise testing of bootloader entropy seeding.
* spi_flash_encrypted_write to support non-32-byte block writes (at least optionally.)
* I think a lot of the bootloader_support component can possibly be rolled into "spiflash" and other components, to use a common API.

See merge request !240

7 years agoMerge branch 'bugfix/warnings' into 'master'
Ivan Grokhotkov [Fri, 9 Dec 2016 11:29:19 +0000 (19:29 +0800)]
Merge branch 'bugfix/warnings' into 'master'

bootloader, driver/rtc: fix warnings about unused functions

This fixes master builds which are failing due to warnings.

See merge request !300

7 years agobootloader, driver/rtc: fix warnings about unused functions
Ivan Grokhotkov [Fri, 9 Dec 2016 07:47:32 +0000 (15:47 +0800)]
bootloader, driver/rtc: fix warnings about unused functions

7 years agoMerge branch 'feature/intr_alloc' into 'master'
Jeroen Domburg [Fri, 9 Dec 2016 06:00:39 +0000 (14:00 +0800)]
Merge branch 'feature/intr_alloc' into 'master'

Add dynamic interrupt allocation mechanism

This adds:
- Dynamic allocation of interrupts. Pass it the features of the interrupt you want, it'll set you up with an int.
- Shared interrupts. Enables multiple peripheral drivers to use the same interrupt.
- Marking what interrupts are fully executable from IRAM; if an int isn't marked like that it will get disabled once flash cache gets disabled.

Also:
- Modifies driver to be in line with these changes

See merge request !254

7 years agoMerge branch 'bugfix/ci_fail_warnings' into 'master'
Angus Gratton [Fri, 9 Dec 2016 05:25:51 +0000 (13:25 +0800)]
Merge branch 'bugfix/ci_fail_warnings' into 'master'

Fail CI build on warnings

This allows developers to add CFLAGS for -Wno-error=XXX while developing, but before code passes the CI build then it must be warning-free.

See merge request !279

7 years agoMerge branch 'bugfix/spiflash_erase_block' into 'master'
Angus Gratton [Fri, 9 Dec 2016 05:19:09 +0000 (13:19 +0800)]
Merge branch 'bugfix/spiflash_erase_block' into 'master'

SPI flash: Block erase size 64KB not 32KB

Reverts changes made in 9f9d92b2dfed7e8a2e1ecbcf0bd8e4139abd5372

See merge request !298

7 years agoMerge branch 'feature/newlib_full_format' into 'master'
Ivan Grokhotkov [Fri, 9 Dec 2016 04:04:29 +0000 (12:04 +0800)]
Merge branch 'feature/newlib_full_format' into 'master'

newlib: add "full" formatting support

This change adds support for 64-bit formats and C99 features to newlib printf/scanf functions. This support is enabled by default in menuconfig, but can be switched off to reduce code size.

Also adds missing functions such as fmod and fmodf.

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

See merge request !274

7 years agoSPI flash: Block erase size 64KB not 32KB
Angus Gratton [Fri, 9 Dec 2016 03:18:58 +0000 (14:18 +1100)]
SPI flash: Block erase size 64KB not 32KB

Reverts changes made in 9f9d92b2dfed7e8a2e1ecbcf0bd8e4139abd5372

7 years agoswitch socket recv print for stress test
Yinling [Fri, 9 Dec 2016 02:45:10 +0000 (10:45 +0800)]
switch socket recv print for stress test

7 years agoMerge branch 'feature/mbedtls/add_menuconfig_component' into 'master'
Ivan Grokhotkov [Thu, 8 Dec 2016 14:25:26 +0000 (22:25 +0800)]
Merge branch 'feature/mbedtls/add_menuconfig_component' into 'master'

components/mbedtls: add time and time data configuration at menuconfig

See merge request !268

7 years agoexample/09_openssl_client: change default port to be 443
Liu Han [Thu, 8 Dec 2016 11:34:14 +0000 (19:34 +0800)]
example/09_openssl_client: change default port to be 443

7 years agofix bug in test case TCPIP_TCP_5101
Yinling [Thu, 8 Dec 2016 08:15:49 +0000 (16:15 +0800)]
fix bug in test case TCPIP_TCP_5101

test time is not set in test case and not used to control test time

7 years agoexample/https_request: add header file declare platform.h of mbedtls
Liu Han [Thu, 8 Dec 2016 07:03:38 +0000 (15:03 +0800)]
example/https_request: add header file declare platform.h of mbedtls

7 years agocomponent/bt : delete the un-used lines
Tian Hao [Thu, 8 Dec 2016 07:00:19 +0000 (15:00 +0800)]
component/bt : delete the un-used lines

7 years agoFix example code, add chapter to docs about interrupts and multicore issues
Jeroen Domburg [Thu, 8 Dec 2016 06:42:00 +0000 (14:42 +0800)]
Fix example code, add chapter to docs about interrupts and multicore issues

7 years agocomponents/mbedtls: add time and time data configuration at menuconfig
Liu Han [Thu, 1 Dec 2016 08:25:44 +0000 (16:25 +0800)]
components/mbedtls: add time and time data configuration at menuconfig

7 years agoMerge branch 'feature/backtrace_dumps' into 'master'
Angus Gratton [Thu, 8 Dec 2016 05:27:33 +0000 (13:27 +0800)]
Merge branch 'feature/backtrace_dumps' into 'master'

Feature/backtrace dumps

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

(Plus reformatting of panic.c, as it hadn't been formatted to our code style yet.)

See merge request !290

7 years agoAlso add intr_alloc magic to rtc code
Jeroen Domburg [Thu, 8 Dec 2016 04:57:57 +0000 (12:57 +0800)]
Also add intr_alloc magic to rtc code

7 years agoMark some interrupts that are now allocated dynamically as free, add int handle param...
Jeroen Domburg [Thu, 8 Dec 2016 04:38:22 +0000 (12:38 +0800)]
Mark some interrupts that are now allocated dynamically as free, add int handle param documentation, add local ints test

7 years agoAdd test for local interrupts, fix int disable code
Jeroen Domburg [Thu, 8 Dec 2016 04:04:26 +0000 (12:04 +0800)]
Add test for local interrupts, fix int disable code

7 years agoAdd disabling/enabling of shared interrupt, add testcase for interrupts
Jeroen Domburg [Wed, 7 Dec 2016 13:30:21 +0000 (21:30 +0800)]
Add disabling/enabling of shared interrupt, add testcase for interrupts

7 years agoChanges according to merge request
Jeroen Domburg [Tue, 6 Dec 2016 06:20:12 +0000 (14:20 +0800)]
Changes according to merge request

7 years agoAdd interrupt allocation scheme / interrupt sharing. Also modifies drivers and exampl...
Jeroen Domburg [Fri, 25 Nov 2016 09:33:51 +0000 (17:33 +0800)]
Add interrupt allocation scheme / interrupt sharing. Also modifies drivers and examples. Also allows interrupts
to be marked specifically as having a handler that's all in IRAM.

7 years agonewlib: add "full" formatting support, add missing functions
Ivan Grokhotkov [Mon, 7 Nov 2016 10:43:29 +0000 (18:43 +0800)]
newlib: add "full" formatting support, add missing functions

- add two versions of libc: libc.a and libc_nano.a. First one has full C99 formatting support, second one uses “nano” formatting functions available in ROM.
- fix linker error for fmod, fmodf, atof, atoff
- update tests

7 years agoMerge branch 'feature/select_default_uart' into 'master'
Ivan Grokhotkov [Thu, 8 Dec 2016 02:58:44 +0000 (10:58 +0800)]
Merge branch 'feature/select_default_uart' into 'master'

UART console selection

This change adds a set of menuconfig options to set custom UART#, baud rate, and pins, for console output.
Ref. TW8146

Also includes the following changes:
- `uart_tx_wait_idle`: fix issue with last character not transmitted. ROM function `uart_tx_wait_idle` may have a bug which causes the function to return before the final character is fully transmitted. This replaces `uart_tx_wait_idle` declaration with a static inline definition which fixes the issue. Also replaces the use of `uart_tx_flush` with `uart_tx_wait_idle` in `esp_restart`, to remove garbage in console output on restart.
- `rtc_printf` is temporary replaced with a no-op, pending a new release of librtc.a. Current release assumes that UART0 is used for output,
and switches UART0 baud rate while doing frequency changes and printing some log output. This doesn’t work if a different UART is used for output.
- disable boot watchdog only after starting the main task. Boot watchdogs were disabled very early in startup code. It was possible to introduce an infinite loop anywhere in the many functions called from startup code, and this would not be detected by interrupt watchdog and task watchdog. This change postpones disabling of boot watchdogs to the point when the scheduler is running. Also replaces register expressed using integer address with a name. This change is not directly related to the previous ones, but was found while debugging UART selection features.

See merge request !288

7 years agoMerge branch 'bugfix/pcnt_driver' into 'master'
Ivan Grokhotkov [Thu, 8 Dec 2016 02:48:05 +0000 (10:48 +0800)]
Merge branch 'bugfix/pcnt_driver' into 'master'

Fixing some syntax errors in pcnt

See merge request !278

7 years agocpu_start: tabs->spaces
Ivan Grokhotkov [Thu, 8 Dec 2016 02:20:12 +0000 (10:20 +0800)]
cpu_start: tabs->spaces

7 years agoMerge branch 'bugfix/rmt_debug_newline' into 'master'
Angus Gratton [Thu, 8 Dec 2016 02:05:11 +0000 (10:05 +0800)]
Merge branch 'bugfix/rmt_debug_newline' into 'master'

Removal of spurious newline character in debug statement

There was a debug statement in the code that included an additional newline character that wasn't needed.

From github PR: https://github.com/espressif/esp-idf/pull/124

See merge request !291

7 years agoMerge branch 'bugfix/netif_zero_init' into 'master'
Ivan Grokhotkov [Thu, 8 Dec 2016 02:02:15 +0000 (10:02 +0800)]
Merge branch 'bugfix/netif_zero_init' into 'master'

Zero-fill netif on alloc

LwIP's `struct netif` was not zero-initialized after allocation, so `ipv6_addr_cb ` function pointer contained garbage. This caused a crash if the device was on an IPv6 capable network.

Fixes https://github.com/espressif/esp-idf/issues/133, https://github.com/espressif/esp-idf/issues/147, https://github.com/espressif/esp-idf/issues/142.

Source: https://github.com/espressif/esp-idf/pull/148

See merge request !289

7 years agopcnt example: Remove unused debugging tag
Angus Gratton [Wed, 7 Dec 2016 22:12:07 +0000 (14:12 -0800)]
pcnt example: Remove unused debugging tag

7 years agoRemoval of spurious newline character in debug statement
Neil Kolban [Sat, 26 Nov 2016 04:05:50 +0000 (22:05 -0600)]
Removal of spurious newline character in debug statement

There was a debug statement in the code that included an additional newline character that wasn't needed.

7 years agoapp_update: clean up warning log when compile any project
tzx [Mon, 5 Dec 2016 05:32:10 +0000 (13:32 +0800)]
app_update: clean up warning log when compile any project

7 years agocomponent/bt : cleanup demo warnings
Tian Hao [Wed, 7 Dec 2016 12:04:44 +0000 (20:04 +0800)]
component/bt : cleanup demo warnings

7 years agocomponent/bt : cleanup all the "-W-no-xx" and all the warnings
Tian Hao [Wed, 7 Dec 2016 06:11:40 +0000 (14:11 +0800)]
component/bt :  cleanup all the "-W-no-xx" and all the warnings

1. cleanup the warnings.
2. fix the some function called in gap
3. fix some code in btc_main

7 years agobuild system: Remove FLAGS_XXX variable option, replace with per-target overrides
Angus Gratton [Tue, 6 Dec 2016 18:52:40 +0000 (10:52 -0800)]
build system: Remove FLAGS_XXX variable option, replace with per-target overrides

Use for targeted disabling of warnings in LWIP.

7 years agoesp32: ReformatReformat panic.c (remove tabs, etc)
Angus Gratton [Wed, 7 Dec 2016 21:25:26 +0000 (13:25 -0800)]
esp32: ReformatReformat panic.c (remove tabs, etc)

7 years agoAdd backtrace to exception output.
Deomid Ryabkov [Wed, 7 Dec 2016 18:58:55 +0000 (18:58 +0000)]
Add backtrace to exception output.

On Xtensa windowed ABI backtrace is easy to do, and it's immensely
useful for debugging, so - do it by default.
We try to be careful and not deref bogus pointers while walking the
frames.

Example output (from debugging espressif/esp-idf#133):

Backtrace: 0x1:0x3ffc51e0 0x400e9dfa:0x3ffc5210 0x400e9ebc:0x3ffc5230 0x400ec487:0x3ffc5260

With just addr2line utility from binutils, this already pinpoints the
location of the crash.

7 years agocpu_start: disable boot watchdog only after starting the main task
Ivan Grokhotkov [Wed, 7 Dec 2016 17:41:27 +0000 (01:41 +0800)]
cpu_start: disable boot watchdog only after starting the main task

Boot watchdogs were disabled very early in startup code. It was possible to introduce an infinite loop anywhere in the many functions called from startup code, and this would not be detected by interrupt watchdog and task watchdog. This change postpones disabling of boot watchdogs to the point when the scheduler is running. Also replaces register expressed using integer address with a name.

7 years agouart_tx_wait_idle: fix issue with last character not transmitted
Ivan Grokhotkov [Wed, 7 Dec 2016 17:37:07 +0000 (01:37 +0800)]
uart_tx_wait_idle: fix issue with last character not transmitted

- ROM function uart_tx_wait_idle may have a bug which causes the function to return before the final character is fully transmitted.
  This replaces uart_tx_wait_idle declaration with a static inline definition which fixes the issue.
- Also replaces the use of uart_tx_flush with uart_tx_wait_idle in esp_restart, to remove garbage in console output on restart.
- rtc_printf is temporary replaced with a no-op, pending a new release of librtc.a. Current release assumes that UART0 is used for output,
  and switches UART0 baud rate while doing frequency changes and printing some log output. This doesn’t work if a different UART is used for output.

7 years agosupport for console redirection to other UART
Ivan Grokhotkov [Thu, 27 Oct 2016 08:17:28 +0000 (16:17 +0800)]
support for console redirection to other UART

This change adds a set of menuconfig options to set custom UART#, baud rate, and pins, for console output.
Setting happens in bootloader startup code for PRO CPU, and in application startup code for APP CPU.
Ref. TW8146

7 years agoZero-fill netif on alloc
Deomid Ryabkov [Wed, 7 Dec 2016 14:31:54 +0000 (14:31 +0000)]
Zero-fill netif on alloc

Fixes espressif/esp-idf#133

7 years agoMerge branch 'driver_merge_tmp/merge_rtc_module' into 'master'
Ivan Grokhotkov [Wed, 7 Dec 2016 09:03:33 +0000 (17:03 +0800)]
Merge branch 'driver_merge_tmp/merge_rtc_module' into 'master'

Driver: add rtc module

1. add rtc io control API (pull,output and input)
2. add touch pad API (touch pad read and interrupt)
3. add adc1 API (the max width is 12 Bits and support attenuation)
4. add hall sensor API (support hall sensor read )
5. add dac API (the width is 8 Bits)

See merge request !243

7 years agodriver: add rtc module and bugfix gpio32 gpio33
Chu Shu Chen [Wed, 7 Dec 2016 06:18:10 +0000 (14:18 +0800)]
driver: add rtc module and bugfix gpio32 gpio33

feature(rtc_module):add rtc module

1. add rtc io control API (pull,output and input)
2. add touch pad API (touch pad read and interrupt)
3. add adc1 API (the max width is 12 Bits and support attenuation)
4. add hall sensor API (support hall sensor read )
5. add dac API (the width is 8 Bits)

bugfix(gpio):gpio32 and gpio33 can not output and input

the gpio32 and gpio33 is initialize by librtc.a,and gpio_config not initialize the gpio as
digital gpio.they can not output and input,when users use gpio32 or gpio33.And there are some problems
about others driver ,when they use gpio32 or gpio33 as  matrix.

7 years agodrivers: remove file paths from log statements
Ivan Grokhotkov [Wed, 7 Dec 2016 04:01:30 +0000 (12:01 +0800)]
drivers: remove file paths from log statements

Function name and error string are usually sufficient to find the place which has triggered an error. __FILE__ macro generates a string which has absolute file name (with our build system), so there is a lot of long strings present in the program because of that.

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

7 years agoMerge branch 'feature/debugging_fixes' into 'master'
Ivan Grokhotkov [Wed, 7 Dec 2016 02:30:17 +0000 (10:30 +0800)]
Merge branch 'feature/debugging_fixes' into 'master'

Small debugging fixes

Invoke panic handler when a stack overflow has been detected; unhandled interrupt handler now prints interrupt/cpu number for easier pinning down of source.

See merge request !277

7 years agoMerge branch 'feature/unit_test_app_tweaks' into 'master'
Ivan Grokhotkov [Wed, 7 Dec 2016 02:28:19 +0000 (10:28 +0800)]
Merge branch 'feature/unit_test_app_tweaks' into 'master'

unit-test-app: Don't auto-display menu after test run finishes

Previous code would sometimes display menu multiple times, depending on UART activity.

See merge request !253

7 years agounit-test-app: Don't auto-display menu after test run finishes
Angus Gratton [Fri, 25 Nov 2016 08:29:58 +0000 (19:29 +1100)]
unit-test-app: Don't auto-display menu after test run finishes

Previous code sometimes menu multiple times, depending on UART activity.

7 years agoMerge branch 'bugfix/gdbstub_no_sync_gdb' into 'master'
Angus Gratton [Tue, 6 Dec 2016 19:20:07 +0000 (03:20 +0800)]
Merge branch 'bugfix/gdbstub_no_sync_gdb' into 'master'

Gdbstub: Fix bug, small cleanup

Tianzhongxing found a small bug preventing gdbstub to work in certain cases. This fixes it, as well as including some minor cleanups.

See merge request !260

7 years agoCI build_examples.sh: Fail on warnings, even with -Wno-error
Angus Gratton [Tue, 6 Dec 2016 18:39:56 +0000 (10:39 -0800)]
CI build_examples.sh: Fail on warnings, even with -Wno-error

7 years agohandle the case that artifacts do not exist
Yinling [Tue, 6 Dec 2016 08:22:33 +0000 (16:22 +0800)]
handle the case that artifacts do not exist

7 years agoadd supported stress test cases to CI
Yinling [Tue, 6 Dec 2016 07:41:02 +0000 (15:41 +0800)]
add supported stress test cases to CI

7 years agoFix comment in the header
me-no-dev [Tue, 6 Dec 2016 00:10:35 +0000 (02:10 +0200)]
Fix comment in the header

7 years agoFix wrong assignment of channel and unit in pcnt_unit_config
me-no-dev [Mon, 5 Dec 2016 23:11:32 +0000 (01:11 +0200)]
Fix wrong assignment of channel and unit in pcnt_unit_config

7 years agoInvoke panic handler when a stack overflow has been detected; unhandled interrupt...
Jeroen Domburg [Mon, 5 Dec 2016 12:37:59 +0000 (20:37 +0800)]
Invoke panic handler when a stack overflow has been detected; unhandled interrupt now prints interrupt/cpu number.

7 years agoMerge branch 'feature/ulp' into 'master'
Ivan Grokhotkov [Fri, 2 Dec 2016 14:45:47 +0000 (22:45 +0800)]
Merge branch 'feature/ulp' into 'master'

Initial support for generation of ULP coprocessor code

This adds basic support for writing ULP coprocessor programs using an assembly-like syntax, with integer labels and branches to labels.

See merge request !261

7 years agoMerge branch 'bugfix/tw6904_mode_switch_cause_exception' into 'master' v1.0
Wu Jian Gang [Fri, 2 Dec 2016 10:44:43 +0000 (18:44 +0800)]
Merge branch 'bugfix/tw6904_mode_switch_cause_exception' into 'master'

esp32: fix tw6901

1. tw6904 - esp32 mode switch cause exception
2. tw8881 - set mac cause exception
3. Make pm_open/pm_shutdown thread-safe

See merge request !271

7 years agofreertos: default run program on 1st cpu
Liu Zhi Fu [Fri, 2 Dec 2016 10:17:57 +0000 (18:17 +0800)]
freertos: default run program on 1st cpu

Modify the default cpu-mode to single cpu mode and always run the program on the 1st core

7 years agoFix small bug in gdbstub where it sometimes would not return a valid stop reason...
Jeroen Domburg [Fri, 2 Dec 2016 09:42:11 +0000 (17:42 +0800)]
Fix small bug in gdbstub where it sometimes would not return a valid stop reason, timing out gdb. Also clean up the code a bit.

7 years agoesp32: fix tw6901
Liu Zhi Fu [Fri, 2 Dec 2016 09:35:49 +0000 (17:35 +0800)]
esp32: fix tw6901

1. tw6904 - esp32 mode switch cause exception
2. tw8881 - set mac cause exception
3. Make pm_open/pm_shutdown thread-safe

7 years agoMerge branch 'bugfix/example_index' into 'master'
Wu Jian Gang [Fri, 2 Dec 2016 09:31:05 +0000 (17:31 +0800)]
Merge branch 'bugfix/example_index' into 'master'

fix example index

Fix duplicate index 14 example and the index in some rst files.

See merge request !270

7 years agodocs: fix example index
Wu Jian Gang [Fri, 2 Dec 2016 08:02:20 +0000 (16:02 +0800)]
docs: fix example index

7 years agoFlash encryption / secure boot: Temporarily disable on-device key generation
Angus Gratton [Fri, 2 Dec 2016 07:16:34 +0000 (23:16 -0800)]
Flash encryption / secure boot: Temporarily disable on-device key generation

Will be enabled after seeding of HWRNG in bootloader is fully tested/qualified.

7 years agosecure boot docs: Add some examples of using espsecure.py standalone
Angus Gratton [Fri, 25 Nov 2016 05:28:11 +0000 (16:28 +1100)]
secure boot docs: Add some examples of using espsecure.py standalone

7 years agodocs: Correct partition table offset
Angus Gratton [Fri, 25 Nov 2016 05:23:58 +0000 (16:23 +1100)]
docs: Correct partition table offset

7 years agoSecure boot: Correctly re-sign if signing key changes, better error if missing
Angus Gratton [Fri, 25 Nov 2016 03:13:05 +0000 (14:13 +1100)]
Secure boot: Correctly re-sign if signing key changes, better error if missing

7 years agosecure boot & flash encryption: Rework configuration options
Angus Gratton [Fri, 25 Nov 2016 03:09:26 +0000 (14:09 +1100)]
secure boot & flash encryption: Rework configuration options
Add UART bootloader disable options for flash encryption

7 years agoFlash encryption: Support enabling flash encryption in bootloader, app support
Angus Gratton [Fri, 11 Nov 2016 06:00:34 +0000 (17:00 +1100)]
Flash encryption: Support enabling flash encryption in bootloader, app support

* App access functions are all flash encryption-aware
* Documentation for flash encryption
* Partition read/write is flash aware
* New encrypted write function

7 years agoinitial support for generation of ULP coprocessor code
Ivan Grokhotkov [Tue, 29 Nov 2016 14:10:31 +0000 (06:10 -0800)]
initial support for generation of ULP coprocessor code

7 years agoMerge branch 'feature/btdm_bluedroid' into 'master'
Jiang Jiang Jian [Fri, 2 Dec 2016 04:07:20 +0000 (12:07 +0800)]
Merge branch 'feature/btdm_bluedroid' into 'master'

Feature/btdm bluedroid

This branch contain the bluedroid host code.
Currently,  Only GAP/GATT SERVER/GATT CLIENT release to users.
Actually, the content of the codes is further more than GAP/GATT and etc.
In this release version, users only need to concern about the APIs which are in "api/include/".

Now, suggestions in comment have been resolved are following:
1. The APIs use callback function. Ivan , Jeroen and me have discussed it. Currently the code will not be changed.
2. The APIs use OPEN/CLOSE. I have ask Ivan, besides bluedroid do this, we will keep the name.
3. Coding style. I have run format.sh to handle the style. And some spell error have been fixed.
4. APIs doxygen. I have clean the warning by doxygen. But bt.rst is still need to be completed.
5. Other comment without resolved face to face that I have to add response in the comment and fix them in the code
6. Fix some incorrect things. See the git log for details.

This 1st version of bluedroid release still have lots of things to do. But it can be done after this merge.
1. Compelete the BLUFI(Bluetooth config wifi connection) documents, security, application protocol and other.
2. Add SPP-LIKE profile.
3. Do more examples codes to cover most of the APIs.
4. Test and fix bug.

Another thing:
1. Do the document of APIs.(xml->bt.rst->html)
(I will do this before merge as Ivan's suggestion)
This is already done. Besides, the union type in doxygen have something error. Ivan will fix it.

See merge request !239

7 years agocomponent/bt : cleanup the function warning in doxygen
Tian Hao [Thu, 1 Dec 2016 12:55:08 +0000 (20:55 +0800)]
component/bt : cleanup the function warning in doxygen

7 years agocomponent/bt : doxygen can generate html correctly
Tian Hao [Thu, 1 Dec 2016 12:20:22 +0000 (20:20 +0800)]
component/bt : doxygen can generate html correctly

7 years agocomponent/bt : add ble event type
Tian Hao [Thu, 1 Dec 2016 12:16:09 +0000 (20:16 +0800)]
component/bt : add ble event type

7 years agocomponent/bt : cleanup the return style
Tian Hao [Thu, 1 Dec 2016 11:58:52 +0000 (19:58 +0800)]
component/bt : cleanup the return style

7 years agoMerge branch 'feature/ethernet_driver' into 'master'
Wu Jian Gang [Thu, 1 Dec 2016 11:46:07 +0000 (19:46 +0800)]
Merge branch 'feature/ethernet_driver' into 'master'

Feature/ethernet driver

Add ethernet driver

See merge request !235

7 years agoethernet: add first version of ethernet driver
shangke [Tue, 8 Nov 2016 09:45:17 +0000 (17:45 +0800)]
ethernet: add first version of ethernet driver

7 years agocomponent/bt : cleanup the function comment as doxygen type
Tian Hao [Thu, 1 Dec 2016 10:58:54 +0000 (18:58 +0800)]
component/bt : cleanup the function comment as doxygen type

7 years agoMerge branch 'feature/tcpip_get_hostname' into 'master'
Wu Jian Gang [Thu, 1 Dec 2016 08:51:40 +0000 (16:51 +0800)]
Merge branch 'feature/tcpip_get_hostname' into 'master'

tcpip_adapter: teamwork 8964

add get netif host name feature

See merge request !264

7 years agoMerge branch 'bugfix/init_factory_bin' into 'master'
Wu Jian Gang [Thu, 1 Dec 2016 08:14:42 +0000 (16:14 +0800)]
Merge branch 'bugfix/init_factory_bin' into 'master'

bugfix/init_factory_bin: fix inconsistency between bootloader and OTA code

init_factory_bin: 2nd bootloader use a wrong logic select factory  image to boot,and some bug in OTA code

See merge request !266

7 years agoMerge branch 'bugfix/ota_doc_error' into 'master'
Wu Jian Gang [Thu, 1 Dec 2016 08:10:06 +0000 (16:10 +0800)]
Merge branch 'bugfix/ota_doc_error' into 'master'

bugfix/ota_doc_error: fix return error of ota docs

fix doc return error of ota api

See merge request !265

7 years agoMerge branch 'feature/add_check_sleep' into 'master'
Wu Jian Gang [Thu, 1 Dec 2016 08:06:05 +0000 (16:06 +0800)]
Merge branch 'feature/add_check_sleep' into 'master'

Feature/add check sleep

 esp32/lwip: add check sleep

1. fix tw8911 sleep in scan leads to auth frame malloc fail.

2. fix tw8913 pm state transfer wrong leads to wdt.

3. make some comments for modem sleep and wpa2 enterprise.

4. removd duplicated debug option ESP_THREAD_SAFE_DEBUG

See merge request !267

7 years agodocs: fix return error of ota docs and fix ota.rst
tzx [Wed, 30 Nov 2016 10:19:23 +0000 (18:19 +0800)]
docs: fix return error of ota docs and fix ota.rst

7 years agoapp_update: fix inconsistency between bootloader and OTA code
tzx [Thu, 1 Dec 2016 02:06:33 +0000 (10:06 +0800)]
app_update: fix inconsistency between bootloader and OTA code

7 years agoesp32/lwip: add check sleep
Xia Xiaotian [Thu, 1 Dec 2016 04:08:11 +0000 (12:08 +0800)]
esp32/lwip: add check sleep

1. fix tw8911 sleep in scan leads to auth frame malloc fail.

2. fix tw8913 pm state transfer wrong leads to wdt.

3. make some comments for modem sleep and wpa2 enterprise.

4. removd duplicated debug option ESP_THREAD_SAFE_DEBUG

7 years agocomponent/bt : fix a code bug
Tian Hao [Thu, 1 Dec 2016 04:14:57 +0000 (12:14 +0800)]
component/bt : fix a code bug

7 years agocomponent/bt : update lib
Tian Hao [Thu, 1 Dec 2016 04:05:42 +0000 (12:05 +0800)]
component/bt : update lib

7 years agoMerge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf into feature...
Tian Hao [Wed, 30 Nov 2016 11:08:40 +0000 (19:08 +0800)]
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf into feature/btdm_bluedroid

7 years agoMerge branch 'bugfix/tw8868_fix_packet_length_erro_in_ap_bridge_mode' into 'master'
Wu Jian Gang [Wed, 30 Nov 2016 10:01:31 +0000 (18:01 +0800)]
Merge branch 'bugfix/tw8868_fix_packet_length_erro_in_ap_bridge_mode' into 'master'

esp32: update wifi lib to fix tw8868

In AP bridge mode, the length of the forwarded data is wrong, it's 26Btyes longer, thus cuase
AP can't forward the data of which length is 1460. This modification is to make the
data length right.

See merge request !262

7 years agotcpip_adapter: add get netif host name api
liuhan [Wed, 30 Nov 2016 08:44:31 +0000 (16:44 +0800)]
tcpip_adapter: add get netif host name api

7 years agoesp32: change wap2 enterprise encrypt type to 5
Liu Zhi Fu [Wed, 30 Nov 2016 09:34:19 +0000 (17:34 +0800)]
esp32: change wap2 enterprise encrypt type to 5

1. b332f3b5 - change wap2 enterprise encrypt type to 5
2. modify the print info of station state transmition

7 years agoMerge branch 'bugfix/dhcps_ippoll' into 'master'
Wu Jian Gang [Wed, 30 Nov 2016 09:10:04 +0000 (17:10 +0800)]
Merge branch 'bugfix/dhcps_ippoll' into 'master'

tcpip_adapter: fix bug 7462

modify the code execution condition

See merge request !263

7 years agotcpip_adapter: fix bug 7462
liuhan [Wed, 30 Nov 2016 07:24:49 +0000 (15:24 +0800)]
tcpip_adapter: fix bug 7462

modify the code execution condition

7 years agoesp32: update wifi lib to fix tw8868
Liu Zhi Fu [Wed, 30 Nov 2016 06:20:05 +0000 (14:20 +0800)]
esp32: update wifi lib to fix tw8868

In AP bridge mode, the length of the forwarded data is wrong, it's 26Btyes longer, thus cuase
AP can't forward the data of which length is more than 1460. This modification is to make the
data length right.

7 years agocomponent/bt : remove sdp demo and add default sdkconfig of bt demos
Tian Hao [Wed, 30 Nov 2016 03:26:30 +0000 (11:26 +0800)]
component/bt : remove sdp demo and add default sdkconfig of bt demos

1. remove sdp demo.
2. add sdkconfig.default for bt demos

7 years agoMerge branch 'bugfix/tw8851_some_phy_cause_wifi_connect_fail' into 'master'
Wu Jian Gang [Tue, 29 Nov 2016 12:15:30 +0000 (20:15 +0800)]
Merge branch 'bugfix/tw8851_some_phy_cause_wifi_connect_fail' into 'master'

esp32: fix tw8851 some phy version cause wifi connect fail

Update phy version to 258 to fix tw8851
When upgrade the phy version, the RF calibration version is not change, but the calibration data format is changed and the wrong calibration data causes wifi connection failure. The solution is to make RF calibration data and phy version the same version.

See merge request !258

7 years agocomponent/esp32/: update submodule log
Tian Hao [Tue, 29 Nov 2016 12:07:45 +0000 (20:07 +0800)]
component/esp32/: update submodule log

7 years agoMerge branch 'tw8810' into 'master'
Wu Jian Gang [Tue, 29 Nov 2016 12:06:06 +0000 (20:06 +0800)]
Merge branch 'tw8810' into 'master'

lwip: update open socket number.

modify default number from 4 to 10

See merge request !259

7 years agoesp32: update wifi lib
Liu Zhi Fu [Tue, 29 Nov 2016 07:30:31 +0000 (15:30 +0800)]
esp32: update wifi lib

1. update phy to version 258 to fix wifi upgrade cause wifi connect fail issue
2. update fix_printf.sh
3. fb5a2b07 - default set ps type to WIFI_PS_NONE