]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agoulp: use timer to start ULP, fix I_ANDI bug, add tests
Ivan Grokhotkov [Fri, 16 Dec 2016 12:25:38 +0000 (20:25 +0800)]
ulp: use timer to start ULP, fix I_ANDI bug, add tests

Starting the ULP using SENS_SAR_START_FORCE_REG doesn’t disable clock gating of RTC fast clock.
When SoC goes into deep sleep mode, RTC fast clock gets gated, so ULP can no longer run.
Instead, it has to be started using the timer (RTC_CNTL_ULP_CP_SLP_TIMER_EN bit).
When ULP is enabled by the timer, clock also gets enabled.

7 years agoulp: add RD_REG, WR_REG, END instruction
Ivan Grokhotkov [Fri, 16 Dec 2016 12:01:15 +0000 (20:01 +0800)]
ulp: add RD_REG, WR_REG, END instruction

7 years agoMerge branch 'feature/extend_deep_sleep_apis' into 'master'
Ivan Grokhotkov [Fri, 16 Dec 2016 08:17:37 +0000 (16:17 +0800)]
Merge branch 'feature/extend_deep_sleep_apis' into 'master'

extend deep sleep APIs

This adds the following APIs to enable various wakeup sources:
- esp_deep_sleep_enable_timer_wakeup
- esp_deep_sleep_enable_ulp_wakeup
- esp_deep_sleep_enable_ext0_wakeup
- esp_deep_sleep_enable_ext1_wakeup

And an API to start deep sleep:
- esp_deep_sleep_start

Add an API to control which peripherals are kept enabled in deep sleep mode:
- esp_err_t esp_deep_sleep_pd_config

Also rolled an update of rtc_io header comments into this MR, as I had to add `slpie`, `slpsel`, and `hold` fields into `rtc_gpio_desc_t` struct.

Deep sleep unit tests don’t do anything useful in CI context because we don’t have a way to check reset behavior (time till reset, reason for reset) in CI environment, yet. Also for external wakeup we would need to control some ESP32 pins from the test environment.

Currently there is one known issue:
- RTC Fast memory may be isolated from the bus after deep sleep reset. We work around this by setting FORCE_NONISO flag in RTC power control register. This is non-optimal and we will keep looking for the reason why isolation gets enabled.

See merge request !297

7 years agodocs: fix some warnings
Ivan Grokhotkov [Fri, 16 Dec 2016 06:27:22 +0000 (14:27 +0800)]
docs: fix some warnings

7 years agodeep sleep: add documentation
Ivan Grokhotkov [Fri, 16 Dec 2016 06:26:52 +0000 (14:26 +0800)]
deep sleep: add documentation

7 years agodeep sleep: set pin configuration right before entering deep sleep
Ivan Grokhotkov [Fri, 16 Dec 2016 06:26:05 +0000 (14:26 +0800)]
deep sleep: set pin configuration right before entering deep sleep

This change allows setting pin configuration for EXT1 wakeup depending on the state of RTC_PERIPH power domain:
- if peripherals are enabled (due to another wakeup mode, or due to esp_deep_sleep_pd_config call), we can keep internal pullups/pulldowns enabled
- if peripherals are disabled, pullups and pulldowns need to be disabled as well

Also add comments about the purpose of registers being configured.

7 years agodeep sleep: power down RTC peripherals in EXT1 sleep
Ivan Grokhotkov [Fri, 16 Dec 2016 06:10:07 +0000 (14:10 +0800)]
deep sleep: power down RTC peripherals in EXT1 sleep

7 years agoulp: add missing component.mk for tests
Ivan Grokhotkov [Wed, 14 Dec 2016 06:25:42 +0000 (14:25 +0800)]
ulp: add missing component.mk for tests

7 years agodeep sleep: RTC fast memory may be disconnected after deep sleep wakeup
Ivan Grokhotkov [Wed, 14 Dec 2016 06:23:40 +0000 (14:23 +0800)]
deep sleep: RTC fast memory may be disconnected after deep sleep wakeup

This adds a workaround for a bug that following deep sleep wakeup, ISO (bus isolation) signal may be set for RTC fast memory.
We set FORCE_NOISO bit in RTC_CNTL_PWC_REG until we find out what is causing ISO signal to be set.

7 years agodeep sleep: add API to control power down
Ivan Grokhotkov [Wed, 14 Dec 2016 06:20:01 +0000 (14:20 +0800)]
deep sleep: add API to control power down

7 years agodeep sleep: rename header file
Ivan Grokhotkov [Tue, 13 Dec 2016 05:23:04 +0000 (13:23 +0800)]
deep sleep: rename header file

7 years agodeep sleep: add option to delay CPU startup
Ivan Grokhotkov [Mon, 12 Dec 2016 15:20:15 +0000 (23:20 +0800)]
deep sleep: add option to delay CPU startup

When ESP32 wakes up from deep sleep, flash is accessed an approximately 900us after power on.
Some flash chips need more time to become ready. This change adds a menuconfig option to add
some delay to the default deep sleep wake stub.

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

7 years agodeep sleep: implement wake up using ULP, EXT0, EXT1 sources
Ivan Grokhotkov [Thu, 8 Dec 2016 14:22:10 +0000 (22:22 +0800)]
deep sleep: implement wake up using ULP, EXT0, EXT1 sources

This adds the following APIs to enable various wakeup sources:
- esp_deep_sleep_enable_timer_wakeup
- esp_deep_sleep_enable_ulp_wakeup
- esp_deep_sleep_enable_ext0_wakeup
- esp_deep_sleep_enable_ext1_wakeup

And an API to start deep sleep:
- esp_deep_sleep_start

7 years agodriver/rtc_io: improve header comments
Ivan Grokhotkov [Thu, 8 Dec 2016 10:37:22 +0000 (18:37 +0800)]
driver/rtc_io: improve header comments

Fix descriptions of return values, fix typos, use upper case for abbreviations.

7 years agoMerge branch 'feature/spiflash_unaligned_readwrite' into 'master'
Angus Gratton [Fri, 16 Dec 2016 05:28:12 +0000 (13:28 +0800)]
Merge branch 'feature/spiflash_unaligned_readwrite' into 'master'

Remove alignment reqs from spi_flash_{read,write}

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

See merge request !311

7 years agoMerge branch 'feature/tw8657_refractor_to_sniffer' into 'master'
Wu Jian Gang [Thu, 15 Dec 2016 11:03:44 +0000 (19:03 +0800)]
Merge branch 'feature/tw8657_refractor_to_sniffer' into 'master'

refactor to sniffer

1. WiFi send the whole packet to smartconfig
2. Fixed some modem sleep bugs

See merge request !306

7 years agoesp32: refactor to sniffer
Liu Zhi Fu [Mon, 12 Dec 2016 02:00:24 +0000 (10:00 +0800)]
esp32: refactor to sniffer

1. TW8657, WIFI send the whole packet to smartconfig;
2. modify API annotation of smartconfig and sniffer;
3. export smartconfig APIs to programming guide;

7 years agoMerge branch 'bugfix/tw9240_fix_lwip_dual_core_issue' into 'master'
Wu Jian Gang [Thu, 15 Dec 2016 09:33:28 +0000 (17:33 +0800)]
Merge branch 'bugfix/tw9240_fix_lwip_dual_core_issue' into 'master'

lwip: fix lwip dual core issue

Call xSemaphoreGiveFromISR instead xSemaphoreGive when the calling context is in critical section.

See merge request !314

7 years agoesp32: update wifi lib, fix some modem sleep bugs
Xia Xiaotian [Wed, 14 Dec 2016 03:13:15 +0000 (11:13 +0800)]
esp32: update wifi lib, fix some modem sleep bugs

1. tw7426: fix the bug that config ap crashes(7bb90c19)
2. tw9149: fix memory leak in modem sleep(1f450cb8)
3. tw9157: fix dtim change log in modem sleep(1f450cb8)
4. update smartconfig.a

7 years agoMerge branch 'bugfix/heap_alloc_no_iram' into 'master'
Ivan Grokhotkov [Thu, 15 Dec 2016 08:28:29 +0000 (16:28 +0800)]
Merge branch 'bugfix/heap_alloc_no_iram' into 'master'

Restore ability to alloc IRAM, and more.

- Fix mem regions so allocating IRAM works again
- Optimize allocator slightly, uses 4 less bytes per malloc now
- Allow querying free heap memory space per memory type

See merge request !301

7 years agoMerge branch 'bugfix/btdm_bluedroid' into 'master'
Jiang Jiang Jian [Thu, 15 Dec 2016 08:10:21 +0000 (16:10 +0800)]
Merge branch 'bugfix/btdm_bluedroid' into 'master'

Bugfix/btdm bluedroid

Cleanup all the warnings。
Fix GATT CLIENT cannot receive notfiy/indicate from GATT SERVER bug.

Originally, bluetooth have its own master branch(feature/btdm_bluedroid), all the bluetooth sub branch will merge to feature/btdm_bluedroid firstly. If feature/btdm_bluedroid is ready, it will request merge to master. But as Ivan/JG/Jack's requires, all the bluetooth bugfix or feature will request merge to master ASAP.
This MR contains "cleanup warning " and "some bug fix", after, every merge request only contain one thing.

See merge request !286

7 years agoMerge branch 'bugfix/uart_examples_intr' into 'master'
Jeroen Domburg [Thu, 15 Dec 2016 07:15:32 +0000 (15:15 +0800)]
Merge branch 'bugfix/uart_examples_intr' into 'master'

Update uart examples in uart.h to new interrupt allocation scheme

Some of the examples in the UART header haven't been adjusted to the new interrupt scheme; this fixes that. Also runs dos2unix on the drivers tree; a fair few drivers used DOS-style line ends.

See merge request !313

7 years agoadd more comments and call portYIELD when necessary
Liu Zhi Fu [Thu, 15 Dec 2016 07:06:00 +0000 (15:06 +0800)]
add more comments and call portYIELD when necessary

7 years agoMake internal function static
Jeroen Domburg [Wed, 14 Dec 2016 03:44:17 +0000 (11:44 +0800)]
Make internal function static

7 years agoAdd testcase, fix executable memory allocated in shared dram/iram region
Jeroen Domburg [Tue, 13 Dec 2016 14:21:20 +0000 (22:21 +0800)]
Add testcase, fix executable memory allocated in shared dram/iram region

7 years agoFix small things noticed in MR, add documentation
Jeroen Domburg [Tue, 13 Dec 2016 09:01:10 +0000 (17:01 +0800)]
Fix small things noticed in MR, add documentation

7 years agoAdd xPortGetFreeHeapSizeCaps and xPortGetMinimumEverFreeHeapSizeCaps plus everything...
Jeroen Domburg [Fri, 9 Dec 2016 09:13:45 +0000 (17:13 +0800)]
Add xPortGetFreeHeapSizeCaps and xPortGetMinimumEverFreeHeapSizeCaps plus everything it entails. Allows querying the available memory for various capabilities. Also: xPortGetFreeHeapSize and xPortGetMinimumEverFreeHeapSize now return the expected value. Bonus: the linked list used in the allocator is now 4 bytes smaller, which should save some memory.

7 years agoTabs -> spaces
Jeroen Domburg [Fri, 9 Dec 2016 08:19:24 +0000 (16:19 +0800)]
Tabs -> spaces

7 years agoDo not disable entire IRAM pool; instead disable only the bit that is used. This...
Jeroen Domburg [Fri, 9 Dec 2016 08:17:26 +0000 (16:17 +0800)]
Do not disable entire IRAM pool; instead disable only the bit that is used. This gives us 50K of iram at the moment.

7 years agoAdd name to tag type
Jeroen Domburg [Fri, 9 Dec 2016 07:48:32 +0000 (15:48 +0800)]
Add name to tag type

7 years agoMerge branch 'master' into bugfix/btdm_bluedroid
Tian Hao [Thu, 15 Dec 2016 06:40:29 +0000 (14:40 +0800)]
Merge branch 'master' into bugfix/btdm_bluedroid

7 years agolwip: fix lwip dual core issue
Liu Zhi Fu [Thu, 15 Dec 2016 06:37:21 +0000 (14:37 +0800)]
lwip: fix lwip dual core issue

Call xSemaphoreGiveFromISR instead xSemaphoreGive when the calling context is in critical section.

7 years agocomponent/bt : fix advertising bug
Tian Hao [Thu, 15 Dec 2016 06:33:09 +0000 (14:33 +0800)]
component/bt : fix advertising bug

1. low duty can not be set bug
2. adv type can not be effective bug

7 years agocomponent/bt : add some macro , so redo the doxygen
Tian Hao [Thu, 15 Dec 2016 06:02:48 +0000 (14:02 +0800)]
component/bt : add some macro , so redo the doxygen

7 years agocomponent/bt : change the resolving list cleanup position
Tian Hao [Thu, 15 Dec 2016 05:35:30 +0000 (13:35 +0800)]
component/bt : change the resolving list cleanup position

1. enable will malloc, but disable don't free resolving list, so fix it
2. In disable procedure, it will alloc alarm to hash_map, and all the alarm  hash_map will be free in deinit. So this need not be fixed currently.

7 years agoConvert DOS line ends to Unix line ends in drivers
Jeroen Domburg [Thu, 15 Dec 2016 01:45:40 +0000 (09:45 +0800)]
Convert DOS line ends to Unix line ends in drivers

7 years agoUpdate examples in uart.h
Jeroen Domburg [Thu, 15 Dec 2016 01:44:21 +0000 (09:44 +0800)]
Update examples in uart.h

7 years agoRemove alignment reqs from spi_flash_{read,write}
Deomid Ryabkov [Fri, 9 Dec 2016 17:29:31 +0000 (17:29 +0000)]
Remove alignment reqs from spi_flash_{read,write}

7 years agoMerge branch 'bugfix/conf_across_mountpoints' into 'master'
Angus Gratton [Wed, 14 Dec 2016 23:07:27 +0000 (07:07 +0800)]
Merge branch 'bugfix/conf_across_mountpoints' into 'master'

Create temp config in the same dir as target

Fixes case where SDK and app are on different mounts

(In our usage of kconfig, dirname is the empty string & basename is the full path to sdkconfig)

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

See merge request !309

7 years agoMerge branch 'bugfix/build_deps_assembler' into 'master'
Angus Gratton [Wed, 14 Dec 2016 22:48:15 +0000 (06:48 +0800)]
Merge branch 'bugfix/build_deps_assembler' into 'master'

build system: Generate dependency make rules for assembler source

Was previously only C, C++.

See merge request !304

7 years agobuild system tests: Add test case for sdkconfig-triggered recompilation
Angus Gratton [Wed, 7 Dec 2016 20:32:36 +0000 (07:32 +1100)]
build system tests: Add test case for sdkconfig-triggered recompilation

7 years agobuild system: Generate dependency make rules for assembler source
Angus Gratton [Sun, 11 Dec 2016 23:02:41 +0000 (10:02 +1100)]
build system: Generate dependency make rules for assembler source

Was previously only C, C++.

7 years agoMerge branch 'bugfix/build_system_linker_script_deps' into 'master'
Angus Gratton [Wed, 14 Dec 2016 21:38:54 +0000 (05:38 +0800)]
Merge branch 'bugfix/build_system_linker_script_deps' into 'master'

build system: Linker scripts or binary libraries should trigger a re-link

Add binary libraries and linker scripts to the list of dependencies for the ELF file.

Fixes TW7816.

See merge request !307

7 years agocomponent/bt : fix bluetooth disable memory leak
Tian Hao [Wed, 14 Dec 2016 17:36:27 +0000 (01:36 +0800)]
component/bt : fix bluetooth disable memory leak

7 years agocomponent/bt : fix enable bug
Tian Hao [Wed, 14 Dec 2016 13:45:18 +0000 (21:45 +0800)]
component/bt : fix enable bug

1. enable will cause exception with list->head memory modify
2. gatt complete, timeout with HCI cmd timeout will cause exception

7 years agocomponent/bt : increase the task stack size
Tian Hao [Tue, 13 Dec 2016 11:34:07 +0000 (19:34 +0800)]
component/bt : increase the task stack size

1. increase HCI task stack size
2. increase BTC task stack size for default

7 years agocomponent/bt : fix the init/deinit memory leak
Tian Hao [Tue, 13 Dec 2016 06:57:30 +0000 (14:57 +0800)]
component/bt : fix the init/deinit memory leak

1. modify the memory debug
2. fix init/deinit memory leak

7 years agocomponent/bt : fix the bug of deinit/disable
Tian Hao [Mon, 12 Dec 2016 20:10:44 +0000 (04:10 +0800)]
component/bt : fix the bug of deinit/disable

1. fix the exception of deinit/disable
2. debug mem leak of deinit, fix some memleak, but still something wrong.
3. debug men leak of disable.
4. add bluedroid memory debug

7 years agoMerge branch 'bugfix/rom_int_functions' into 'master'
Ivan Grokhotkov [Tue, 13 Dec 2016 06:16:57 +0000 (14:16 +0800)]
Merge branch 'bugfix/rom_int_functions' into 'master'

Fix broken WiFi due to intr allocation code.

TL;DR: The dynamic interrupt allocation code fixed something up to the point it broke. This code breaks off the broken code, fixing everything.

The dynamic allocated interrupt patch also fixed a bug in FreeRTOSs interrupt handling for two cores, which caused the two cores to (most of the time) have exactly the same interrupts enabled. This made WiFi fail: it would wait on a semaphore but never figure out the other core had set the semaphore, so it would keep waiting in the idle task for ever. This was caused by both the cross-core interrupt as well as the tick interrupt being disabled.

The culplrit for this appeared to be the WiFi driver, which enabled a FRC2 interrupt. The code enabling this, through a respectable amount of defines, called a rom function which called a HAL function... which was configured in such a way that it worked okay if both CPUs happened to have the same interrupts set, but broke as soon as that was not the case, possibly setting only the interrupt that was enabled and clearing all others.

The fix for this is to not use the ROM functions, but provide our own instead. Fortunately, this can be done without changes in the WiFi libs.

This MR also addresses a potentially dangerous ESP_LOG as well as some, according to the ISA document, needed rsyncs in the interrupt enable/disable code. It also marks int 9 and 10 as reserved, the WiFi code seems to use this.

See merge request !308

7 years agoPut ets_isr_* functions into IRAM. Original fns were in ROM so people may expect...
Jeroen Domburg [Tue, 13 Dec 2016 03:29:34 +0000 (11:29 +0800)]
Put ets_isr_* functions into IRAM. Original fns were in ROM so people may expect them to work when flash cache is out.

7 years agonewlib: fix unit test name in test config
Ivan Grokhotkov [Sun, 11 Dec 2016 14:25:02 +0000 (22:25 +0800)]
newlib: fix unit test name in test config

7 years agofreertos: fix TLS delete callback test
Ivan Grokhotkov [Fri, 9 Dec 2016 11:44:27 +0000 (19:44 +0800)]
freertos: fix TLS delete callback test

“Full” printf uses more stack space than “nano” printf, and more space than available in the idle task.
This caused stack overflow in TLS delete test. Replacing printf with ets_printf.

7 years agoReplace non-multicore-aware rom funcs with multicore-aware funcs, ESP_LOG->ESP_EARLY_...
Jeroen Domburg [Mon, 12 Dec 2016 12:05:58 +0000 (20:05 +0800)]
Replace non-multicore-aware rom funcs with multicore-aware funcs, ESP_LOG->ESP_EARLY_LOG fix, reserve ints used in wireless libs. Fixes WiFi crashing

7 years agoMerge branch 'feature/make_size' into 'master'
Angus Gratton [Mon, 12 Dec 2016 23:25:35 +0000 (07:25 +0800)]
Merge branch 'feature/make_size' into 'master'

Add the size target to project Makefile

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

See merge request !305

7 years agoAdd the size target to project Makefile
Jonathan Dumaresq [Fri, 9 Dec 2016 16:07:44 +0000 (11:07 -0500)]
Add the size target to project Makefile

7 years agoCreate temp config in the same dir as target
Deomid Ryabkov [Thu, 8 Dec 2016 19:36:21 +0000 (19:36 +0000)]
Create temp config in the same dir as target

Fixes case where SDK and app are on different mounts

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 agobuild system: Project ELF should depend on linker scripts, binary libraries
Angus Gratton [Mon, 12 Dec 2016 04:54:30 +0000 (15:54 +1100)]
build system: Project ELF should depend on linker scripts, binary libraries

TW#7816

7 years agobuild system: Be specific about esp-idf submodule update warnings
Angus Gratton [Mon, 12 Dec 2016 04:08:57 +0000 (15:08 +1100)]
build system: Be specific about esp-idf submodule update warnings

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 agocomponent/bt : cleanup the un-necessary include in api.h
Tian Hao [Fri, 9 Dec 2016 06:35:02 +0000 (14:35 +0800)]
component/bt : cleanup the un-necessary include in api.h

1. cleanup the un-necessary include in api.h for "extern c"
2. add UUID define

7 years agocomponent/bt : add cpp extern c
Tian Hao [Thu, 8 Dec 2016 06:26:19 +0000 (14:26 +0800)]
component/bt : add cpp extern c

1. add cpp extern c
2. retab tab to 4 space

7 years agocomponent/bt : fix the authentication req type
Tian Hao [Wed, 7 Dec 2016 14:08:21 +0000 (22:08 +0800)]
component/bt : fix the authentication req type

7 years agocomponent/bt : fix bug of bdaddr point to resolve gattc recv notify
Tian Hao [Wed, 7 Dec 2016 06:18:07 +0000 (14:18 +0800)]
component/bt : fix bug of bdaddr point to resolve gattc recv notify

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.