]> granicus.if.org Git - esp-idf/log
esp-idf
8 years agoWIFI API: esp_err_t esp_wifi_set_storage(wifi_storage_t storage);
xiaxiaotian [Thu, 1 Sep 2016 07:09:00 +0000 (15:09 +0800)]
WIFI API: esp_err_t esp_wifi_set_storage(wifi_storage_t storage);

1. Add the parameter type of api esp_wifi_set_storage.
2. WIFI_STORAGE_RAM means storing profiles in ram. WIFI_STORAGE_FLASH means storing profiles in flash.

8 years agowifi_lib: update to fbb084da
Wu Jian Gang [Wed, 31 Aug 2016 15:01:07 +0000 (23:01 +0800)]
wifi_lib: update to fbb084da

8 years agoMerge branch 'wifi' of ssh://gitlab.espressif.cn:27227/idf/esp-idf into wifi
xiaxiaotian [Tue, 30 Aug 2016 10:10:30 +0000 (18:10 +0800)]
Merge branch 'wifi' of ssh://gitlab.espressif.cn:27227/idf/esp-idf into wifi

8 years ago1. Add api ssc cmd "ap -K -a aid" to kick out connected station.
xiaxiaotian [Tue, 30 Aug 2016 10:09:48 +0000 (18:09 +0800)]
1. Add api ssc cmd "ap -K -a aid" to kick out connected station.
   The parameter aid followed -a is aid of the connected station. If aid is 0, kick out all of the connected stations.
2. Add block parameter to api esp_wifi_scan_start.
   If block is true, the api blocks before scan done or returns directly.

8 years agocomponents: lwip - enable PERF macro for debug reason
liuzhifu [Tue, 30 Aug 2016 10:06:37 +0000 (18:06 +0800)]
components: lwip - enable PERF macro for debug reason

8 years agoset sta gotip default event handler
liuzhifu [Tue, 30 Aug 2016 10:05:32 +0000 (18:05 +0800)]
set sta gotip default event handler

8 years agoTW6785 - add sta auto connect api
liuzhifu [Tue, 30 Aug 2016 10:04:22 +0000 (18:04 +0800)]
TW6785 - add sta auto connect api

8 years agocomponents:esp32 - notify wifi driver when sta got ip
liuzhifu [Tue, 30 Aug 2016 06:04:12 +0000 (14:04 +0800)]
components:esp32 - notify wifi driver when sta got ip

8 years agocomponents: lwip - adjust ip print
liuzhifu [Tue, 30 Aug 2016 05:52:44 +0000 (13:52 +0800)]
components: lwip - adjust ip print

8 years agocomponents: esp32 - notify wifi when got sta ip
liuzhifu [Tue, 30 Aug 2016 05:51:41 +0000 (13:51 +0800)]
components: esp32 - notify wifi when got sta ip

8 years agoremove unnecessary print in sys_arch.c
liuzhifu [Tue, 30 Aug 2016 01:48:08 +0000 (09:48 +0800)]
remove unnecessary print in sys_arch.c

8 years agocomponents/lwip: use newlib errno
Wu Jian Gang [Mon, 29 Aug 2016 07:35:44 +0000 (15:35 +0800)]
components/lwip: use newlib errno

8 years agocomponents:lwip
liuzhifu [Mon, 29 Aug 2016 06:32:38 +0000 (14:32 +0800)]
components:lwip
disable debug info of lwip

8 years agorename wifi_set_promiscuous_rx_cb wifi esp_wifi_set_promiscuous_rx_cb
liuzhifu [Sat, 27 Aug 2016 10:10:01 +0000 (18:10 +0800)]
rename wifi_set_promiscuous_rx_cb wifi esp_wifi_set_promiscuous_rx_cb

8 years agoMerge remote-tracking branch 'origin/bugfix/TW6738' into wifi
Wu Jian Gang [Fri, 26 Aug 2016 10:18:15 +0000 (18:18 +0800)]
Merge remote-tracking branch 'origin/bugfix/TW6738' into wifi

8 years agodisable log info in tcpip_adapter layer
liuzhifu [Fri, 26 Aug 2016 07:58:52 +0000 (15:58 +0800)]
disable log info in tcpip_adapter layer

8 years agotcpip_adapter: code clean up
Wu Jian Gang [Fri, 26 Aug 2016 10:16:29 +0000 (18:16 +0800)]
tcpip_adapter: code clean up

8 years agocomponents: esp32
liuzhifu [Fri, 26 Aug 2016 07:33:32 +0000 (15:33 +0800)]
components: esp32
remove debug info in event.c/wifi.c

8 years agorecompile DHCP server function
liuhan [Fri, 26 Aug 2016 09:46:55 +0000 (17:46 +0800)]
recompile DHCP server function

modify DHCP data parameter type in calling DHCP interface.

8 years agotcpip_adpater: set ip to zero in tcpip_adapter_down
Wu Jian Gang [Fri, 26 Aug 2016 04:03:52 +0000 (12:03 +0800)]
tcpip_adpater: set ip to zero in tcpip_adapter_down

In some cases, there will have "ip unchanged", and have no event posted
when station reconnected.

8 years agoTW6738: fix DHCP -L issue
liuhan [Fri, 26 Aug 2016 06:15:14 +0000 (14:15 +0800)]
TW6738: fix DHCP -L issue

recompile DHCP server function, only support start, stop and option interface.

8 years agotcpip_adapter: clean up dhcpc status
Wu Jian Gang [Fri, 26 Aug 2016 03:52:46 +0000 (11:52 +0800)]
tcpip_adapter: clean up dhcpc status

only auto start dhcpc in init status

8 years agosystem api: clean unsupported system apis
Wu Jian Gang [Thu, 25 Aug 2016 08:49:59 +0000 (16:49 +0800)]
system api: clean unsupported system apis

8 years agoadd esp_intr.h
Wu Jian Gang [Thu, 25 Aug 2016 04:56:57 +0000 (12:56 +0800)]
add esp_intr.h

8 years agocomponents: lwip
liuzhifu [Wed, 24 Aug 2016 08:33:30 +0000 (16:33 +0800)]
components: lwip
Implement lwip per-thread-sem with:
vTaskSetThreadLocalStoragePointerAndDelCallback/pvTaskGetThreadLocalStoragePointer
register sys_thread_tls_free to free per-thread-sem when the thread is terminated.
Also let lwip use index CONFIG_LWIP_THREAD_LOCAL_STORAGE_INDEX

8 years agoRemove the workaround that erase flash before calling nvs_flash_init
liuzhifu [Wed, 24 Aug 2016 07:32:36 +0000 (15:32 +0800)]
Remove the workaround that erase flash before calling nvs_flash_init

8 years agomodify APB_CLK_FREQ from 40M to 80M
liuzhifu [Wed, 24 Aug 2016 07:11:28 +0000 (15:11 +0800)]
modify APB_CLK_FREQ from 40M to 80M

8 years agoImplement ETS_INTR_ENABLE/ETS_INTR_DISABLE with xt_ints_on/xt_ints_off
liuzhifu [Wed, 24 Aug 2016 07:04:25 +0000 (15:04 +0800)]
Implement ETS_INTR_ENABLE/ETS_INTR_DISABLE with xt_ints_on/xt_ints_off

8 years agocomponents: lwip/tcpip_adapter/freertos/esp32
liuzhifu [Tue, 23 Aug 2016 12:14:54 +0000 (20:14 +0800)]
components: lwip/tcpip_adapter/freertos/esp32
Replace os_printf with printf

8 years agoenable sys_arch_protect/sys_arch_unprotect with portENTER_CRITICAL/portEXIT_CRITICAL
liuzhifu [Tue, 23 Aug 2016 12:10:42 +0000 (20:10 +0800)]
enable sys_arch_protect/sys_arch_unprotect with portENTER_CRITICAL/portEXIT_CRITICAL

8 years agocomponent: lwip
liuzhifu [Tue, 23 Aug 2016 03:28:53 +0000 (11:28 +0800)]
component: lwip
1. add lock version print for lwip (workaround)
2. add debug info into sys_arch.c to debug xQueueReceive issue

8 years ago1. Remove ip member of struct station_info
xiaxiaotian [Tue, 23 Aug 2016 03:22:58 +0000 (11:22 +0800)]
1. Remove ip member of struct station_info
2. Add struct station_list into tcpip_adapter layer
3. When ap -L cmd is received, get mac address from mac layer first and then search ip address based on mac address on dhcp layer.

8 years ago1. Move the structure pointer into the respective case statement.
xiaxiaotian [Mon, 22 Aug 2016 06:37:28 +0000 (14:37 +0800)]
1. Move the structure pointer into the respective case statement.

8 years agoMerge branch 'wifi' of ssh://gitlab.espressif.cn:27227/idf/esp-idf into wifi
xiaxiaotian [Fri, 19 Aug 2016 11:27:35 +0000 (19:27 +0800)]
Merge branch 'wifi' of ssh://gitlab.espressif.cn:27227/idf/esp-idf into wifi

8 years agoFix the bug that the query reault is 'connected' when station is disconnected by...
xiaxiaotian [Fri, 19 Aug 2016 11:09:59 +0000 (19:09 +0800)]
Fix the bug that the query reault is 'connected' when station is disconnected by input 'sta -D'

8 years agoimpact components: lwip/freertos
liuzhifu [Fri, 19 Aug 2016 09:23:04 +0000 (17:23 +0800)]
impact components: lwip/freertos
1. Remove xTaskGetPerTaskData
2. Implement lwip per thread semaphore with vTaskSetThreadLocalStoragePointer
   and pvTaskGetThreadLocalStoragePointer
3. Add sys_thread_sem_get/sys_thread_sem_init/sys_thread_sem_deinit

8 years agoadd got ip event handler
xiaxiaotian [Fri, 19 Aug 2016 04:08:45 +0000 (12:08 +0800)]
add got ip event handler

8 years agofix socket compile error
liuzhifu [Wed, 17 Aug 2016 13:05:29 +0000 (21:05 +0800)]
fix socket compile error

8 years agomodify tcpip_dep_dhcpc_stop to tcpip_adapter_dhcpc_stop
liuzhifu [Wed, 17 Aug 2016 11:47:33 +0000 (19:47 +0800)]
modify tcpip_dep_dhcpc_stop to tcpip_adapter_dhcpc_stop

8 years agoadd debug info to wifi.c
liuzhifu [Wed, 17 Aug 2016 08:28:57 +0000 (16:28 +0800)]
add debug info to wifi.c

8 years agoFreeRTOS: Convert portMUX_DEBUG to a configuration item
Angus Gratton [Thu, 25 Aug 2016 08:30:47 +0000 (16:30 +0800)]
FreeRTOS: Convert portMUX_DEBUG to a configuration item

8 years agonewlib locking: Fix bug w/ _lock_close not clearing semaphore handle
Angus Gratton [Thu, 25 Aug 2016 06:27:36 +0000 (14:27 +0800)]
newlib locking: Fix bug w/ _lock_close not clearing semaphore handle

8 years agoMerge branch 'master' into feature/newlib_locking
Angus Gratton [Thu, 25 Aug 2016 04:09:21 +0000 (12:09 +0800)]
Merge branch 'master' into feature/newlib_locking

8 years agoMerge branch 'bugfix/tskNO_AFFINITY_ambiguous' into 'master'
Jeroen Domburg [Thu, 25 Aug 2016 03:48:21 +0000 (11:48 +0800)]
Merge branch 'bugfix/tskNO_AFFINITY_ambiguous' into 'master'

FreeRTOS: Change tskNO_AFFINITY value to not match CPU 1 when UNICORE is set

See merge request !27

8 years agoRename build_system_tests to less-ambiguous test_build_system
Angus Gratton [Thu, 25 Aug 2016 03:55:47 +0000 (11:55 +0800)]
Rename build_system_tests to less-ambiguous test_build_system

Before it was unclear if we were building the system tests or testing
the build system.

8 years agobuild_system_tests.sh: Replace use of second-precision-only [ a -ot b ]
Angus Gratton [Thu, 25 Aug 2016 03:54:37 +0000 (11:54 +0800)]
build_system_tests.sh: Replace use of second-precision-only [ a -ot b ]

8 years agoFreeRTOS: Change tskNO_AFFINITY value to not match CPU 1 when UNICORE is set
Angus Gratton [Thu, 25 Aug 2016 03:12:48 +0000 (11:12 +0800)]
FreeRTOS: Change tskNO_AFFINITY value to not match CPU 1 when UNICORE is set

8 years agoMerge branch 'master' into feature/newlib_locking
Angus Gratton [Thu, 25 Aug 2016 03:25:05 +0000 (11:25 +0800)]
Merge branch 'master' into feature/newlib_locking

8 years agoMerge branch 'master' into feature/newlib_locking
Angus Gratton [Thu, 25 Aug 2016 03:11:35 +0000 (11:11 +0800)]
Merge branch 'master' into feature/newlib_locking

8 years agoMerge branch 'bugfix/dualcore_startup' into 'master'
Ivan Grokhotkov [Thu, 25 Aug 2016 03:07:21 +0000 (11:07 +0800)]
Merge branch 'bugfix/dualcore_startup' into 'master'

Fix dualcore startup

This MR includes:
- a workaround for a hardware bug with cache initialization
- fix of `#if CONFIG_WIFI_ENABLED` block in cpu_start.c for the case when WiFi is disabled.
- removal of miscellaneous delays in cpu_start.c

See merge request !22

8 years agoMerge remote-tracking branch 'origin/bugfix/dualcore_startup' into feature/newlib_locking
Angus Gratton [Thu, 25 Aug 2016 02:29:36 +0000 (10:29 +0800)]
Merge remote-tracking branch 'origin/bugfix/dualcore_startup' into feature/newlib_locking

8 years agoMerge branch 'bugfix/make_tests_noninteractive' into 'master'
Ivan Grokhotkov [Thu, 25 Aug 2016 02:20:48 +0000 (10:20 +0800)]
Merge branch 'bugfix/make_tests_noninteractive' into 'master'

make: update template configuration before running tests

This fixes build error for non-interactive builds

See merge request !26

8 years agomake: update template configuration before running tests
Ivan Grokhotkov [Thu, 25 Aug 2016 02:28:25 +0000 (10:28 +0800)]
make: update template configuration before running tests

This fixes build error for non-interactive builds

8 years agoMerge branch 'bugfix/dram_attr' into 'master'
Ivan Grokhotkov [Thu, 25 Aug 2016 02:19:17 +0000 (10:19 +0800)]
Merge branch 'bugfix/dram_attr' into 'master'

fix DRAM_ATTR attribute

Variables marked with DRAM_ATTR were not placed in any specific section and were appended to the last section, causing some errors at binary file generation stage.
This change places contents of .dram1 section into .dram0.data.
Also removes .iram1pro/.iram1app/.dram1pro/.dram1app which weren't used anywhere.

See merge request !23

8 years agonewlib locking: Remove lock table, much simpler implementation.
Angus Gratton [Wed, 24 Aug 2016 12:49:06 +0000 (20:49 +0800)]
newlib locking: Remove lock table, much simpler implementation.

8 years agoMerge branch 'bugfix/bootloader_incremental_build' into 'master'
Ivan Grokhotkov [Wed, 24 Aug 2016 12:24:33 +0000 (20:24 +0800)]
Merge branch 'bugfix/bootloader_incremental_build' into 'master'

Make: fix incremental builds, add build tests

Four semi-related build changes in one:
* Add basic tests for make system sanity (can be expanded as we find corner cases)
* Fix incremental building of bootloader when source files change
* Don't regenerate component libraries or re-link the ELF file if nothing changed
* Rename `$(vecho)` to  `$(summary)` and add a new `$(details)` macro to echo some helpful build details when V=1.

See merge request !20

8 years agoMerge branch 'feature/openocd-freertos-support_try2' into 'master'
Jeroen Domburg [Wed, 24 Aug 2016 12:21:52 +0000 (20:21 +0800)]
Merge branch 'feature/openocd-freertos-support_try2' into 'master'

Add symbol needed for OpenOCD to detect FreeRTOS, add feature to break execution, try 2

Add symbol needed for OpenOCD to detect FreeRTOS, add optional feature to break execution when the scheduler is initially started. The workflow is now so that if you start an esp-idf program, you can reset the CPU and end up in a gdb prompt just before all threads start up. In gdb you can then inspect all threads and watch breakpoints. Has the nice side effect that OpenOCD will restore any break/watchpoints that were there before you reset the chip.

This is try 2 because seemingly, someone or something replaced the bit of my brain that is responsible for handling Git with a squeaky toy.

See merge request !24

8 years agoUndo two empty lines
Jeroen Domburg [Wed, 24 Aug 2016 10:34:04 +0000 (18:34 +0800)]
Undo two empty lines

8 years agoUndo submodule commit
Jeroen Domburg [Wed, 24 Aug 2016 10:31:37 +0000 (18:31 +0800)]
Undo submodule commit

8 years agoFreeRTOS: Add xQueueGetMutexHolder support
Angus Gratton [Wed, 24 Aug 2016 10:10:52 +0000 (18:10 +0800)]
FreeRTOS: Add xQueueGetMutexHolder support

Enables it as a config option, but there's no overhead at all if the
function is not called anywhere.

8 years agonewlib locking: Turns out the "hack" is the way to make stdout thread-safe in newlib
Angus Gratton [Wed, 24 Aug 2016 10:09:51 +0000 (18:09 +0800)]
newlib locking: Turns out the "hack" is the way to make stdout thread-safe in newlib

8 years agoFreeRTOS: Configure configASSERT fail behaviour, abort() by default
Angus Gratton [Wed, 24 Aug 2016 08:01:41 +0000 (16:01 +0800)]
FreeRTOS: Configure configASSERT fail behaviour, abort() by default

8 years agoAdd symbol needed for OpenOCD to detect FreeRTOS, add feature to break execution...
Jeroen Domburg [Wed, 24 Aug 2016 04:23:58 +0000 (12:23 +0800)]
Add symbol needed for OpenOCD to detect FreeRTOS, add feature to break execution when the scheduler is initially started.

8 years agoAdd files I forgot (FreeRTOS-openocd.c and panic.h)
Jeroen Domburg [Wed, 24 Aug 2016 09:21:27 +0000 (17:21 +0800)]
Add files I forgot (FreeRTOS-openocd.c and panic.h)

8 years agocomponents/esp32: fix DRAM_ATTR attribute
Ivan Grokhotkov [Wed, 24 Aug 2016 09:20:00 +0000 (17:20 +0800)]
components/esp32: fix DRAM_ATTR attribute

This change places contents of .dram1 section into .dram0.data.
Also removes .iram1pro/.iram1app/.dram1pro/.dram1app which weren't used anywhere.

8 years agocomponents/bootloader: fix enabling cache for APP CPU
Ivan Grokhotkov [Wed, 24 Aug 2016 08:25:04 +0000 (16:25 +0800)]
components/bootloader: fix enabling cache for APP CPU

This is a workaround for a hardware bug with cache initialization.
Only two lines of code related to DPORT_APP_CACHE_MMU_IA_CLR were added around mmu_init(1); call,
and two lines at the end of comment block.
I reformatted surrounding lines to use spaces for indentation, like the rest of the code in this file does.

8 years agocomponents/esp32: fix and clean up dual core startup
Ivan Grokhotkov [Wed, 24 Aug 2016 08:21:28 +0000 (16:21 +0800)]
components/esp32: fix and clean up dual core startup

This change removes various delays in PRO and APP CPU startup paths.
Also some unused code and ets_printf statements are cleaned up or removed.
2nd CPU now communicates that it has started through a global variable.

8 years agoAdd hack of explicitly locking stdout
Angus Gratton [Tue, 23 Aug 2016 09:10:52 +0000 (17:10 +0800)]
Add hack of explicitly locking stdout

This shouldn't be necessary as stdout is already locked by libc (see
comment.) Not sure which part isn't working.

8 years agoAdd newlib libc locking using FreeRTOS primitives
Angus Gratton [Tue, 23 Aug 2016 09:09:44 +0000 (17:09 +0800)]
Add newlib libc locking using FreeRTOS primitives

8 years agofreertos: Change variable name in comment
Angus Gratton [Tue, 23 Aug 2016 09:10:41 +0000 (17:10 +0800)]
freertos: Change variable name in comment

8 years agoesp32 syscalls.c: Use rom/uart.h for uart_tx_one_char prototype
Angus Gratton [Tue, 23 Aug 2016 09:10:18 +0000 (17:10 +0800)]
esp32 syscalls.c: Use rom/uart.h for uart_tx_one_char prototype

8 years agoCI: Pass IDF_PATH to build_system_tests.sh
Angus Gratton [Wed, 24 Aug 2016 05:31:33 +0000 (13:31 +0800)]
CI: Pass IDF_PATH to build_system_tests.sh

8 years ago'Merge branch 'thread_local_storage_delete_callbacks' into 'master'
Jeroen Domburg [Wed, 24 Aug 2016 05:29:06 +0000 (13:29 +0800)]
'Merge branch 'thread_local_storage_delete_callbacks' into 'master'

The thread-local-storage feature in FreeRTOS attaches an application-usable array of pointers to a thread control block. These pointers usually point to a structure the thread allocates. When a thread gets (voluntarily or involuntarily) destroyed, this memory can leak. This merge adds a matching second array of user-settable pointers to destructor routines. As soon as the task gets cleaned up (which happens in the idle thread), the destructors get called and the memory can be freed.

See merge request !19

8 years agoMake: Building the bootloader depends on syncing its sdkconfig from the top-level...
Angus Gratton [Wed, 24 Aug 2016 05:23:00 +0000 (13:23 +0800)]
Make: Building the bootloader depends on syncing its sdkconfig from the top-level project

8 years agoMakefile: Don't re-build libraries or re-link ELF files if nothing has changed in...
Angus Gratton [Wed, 24 Aug 2016 05:02:51 +0000 (13:02 +0800)]
Makefile: Don't re-build libraries or re-link ELF files if nothing has changed in the component

make/build_system_tests.sh should now pass.

8 years agoMakefile: Rename $(vecho) to $(summary), add new $(details) for echoing details when V=1
Angus Gratton [Wed, 24 Aug 2016 05:02:24 +0000 (13:02 +0800)]
Makefile: Rename $(vecho) to $(summary), add new $(details) for echoing details when V=1

8 years agomake bootloader: Always recurse into bootloader directory to check source dependencies
Angus Gratton [Wed, 24 Aug 2016 04:26:13 +0000 (12:26 +0800)]
make bootloader: Always recurse into bootloader directory to check source dependencies

8 years agoAdd build system test (via bash script)
Angus Gratton [Wed, 24 Aug 2016 04:16:26 +0000 (12:16 +0800)]
Add build system test (via bash script)

Currently fails due to bootloader not automatically rebuilding anything,
and ELF/BIN files generating when nothing changed.

8 years agoMerge branch 'feature/docs_linux_gettingstarted' into 'master'
Ivan Grokhotkov [Wed, 24 Aug 2016 04:06:18 +0000 (12:06 +0800)]
Merge branch 'feature/docs_linux_gettingstarted' into 'master'

docs: add linux getting started guide

See merge request !16

8 years agodocs: update linux getting started guide
Ivan Grokhotkov [Wed, 24 Aug 2016 03:17:15 +0000 (11:17 +0800)]
docs: update linux getting started guide

- add commands to get prerequisites on Debian and Arch
- change "Terminal.app" to "terminal"
- add note on python2 for Arch users

8 years agoMerge branch 'bugfix/ci-menuconfig-noninteractive' into 'master'
Ivan Grokhotkov [Tue, 23 Aug 2016 15:13:50 +0000 (23:13 +0800)]
Merge branch 'bugfix/ci-menuconfig-noninteractive' into 'master'

Fix for noninteractive builds

This MR fixes the case when new Kconfig configuration options were added
and you run `make menuconfig`. Previously this would first show console
prompt to set values for new options, and then launch menuconfig.
Now this will just launch menuconfig. New items are marked as `(NEW)`.

New target is added, defconfig, which may be useful for non-interactive
environments to set default values for all new configuration options.

Gitlab CI uses `make defconfig` to update sdkconfig in case any new
options were added in ESP-IDF.

See merge request !15

8 years agodocs: add linux getting started guide
Ivan Grokhotkov [Tue, 23 Aug 2016 09:25:32 +0000 (17:25 +0800)]
docs: add linux getting started guide

Currently this is mostly a verbatim copy of macOS guide with some obvious changes.
Exact lists of dependencies for Debian and Arch need to be specified.
Also made minor fixes to Windows and macOS guides:
- changed http urls to https
- added --prefix=$PWD to crosstool-NG's configure
- added chmod u+w for the build output directory

In general, except for prerequisites, Linux and macOS guides are virtually identical.
It might make sense to refactor this into single document with prerequisites being
described in separate docs.

8 years agogitlab-ci: run make defconfig before make all to update sdkconfig
Ivan Grokhotkov [Tue, 23 Aug 2016 08:19:49 +0000 (16:19 +0800)]
gitlab-ci: run make defconfig before make all to update sdkconfig

8 years agomake: add defconfig, don't run silentoldconfig before menuconfig
Ivan Grokhotkov [Tue, 23 Aug 2016 08:18:36 +0000 (16:18 +0800)]
make: add defconfig, don't run silentoldconfig before menuconfig

This commit fixes the case when new Kconfig configuration options were added and you run `make menuconfig`.
Previously this would first show console prompt to set values for new options, and then launch menuconfig.
Now this will just launch menuconfig.
New target is added, defconfig, which may be useful for non-interactive environments to set default values for
all new configuration options.

8 years agoMerge branch 'feature/configurable_add_lf_after_cr_printf' into 'master'
Jeroen Domburg [Tue, 23 Aug 2016 07:09:13 +0000 (15:09 +0800)]
Merge branch 'feature/configurable_add_lf_after_cr_printf' into 'master'

Add cr after a lf is printed (configurable)

Small menuconfig option to make the newlib stdout functions replicate the behaviour of ets_printf e.a. by sending out a \r before every \n.

See merge request !14

8 years agoAdd cr after a lf is printed (configurable)
Jeroen Domburg [Tue, 23 Aug 2016 07:02:27 +0000 (15:02 +0800)]
Add cr after a lf is printed (configurable)

Formatting

8 years agoMerge branch 'feature/nvs_tests' into 'master'
Ivan Grokhotkov [Tue, 23 Aug 2016 07:06:06 +0000 (15:06 +0800)]
Merge branch 'feature/nvs_tests' into 'master'

Power off recovery tests for non-volatile storage library, bug fixes, test coverage

This merge request:
- fixes several issues with internal state handling in nvs::Page
- fixes possible infinite loop when initializing namespace list
- fixes nvs_get_{str,blob} APIs to behave according to header file doc (they didn't return *length)
- adds extra consistency checks in nvs::PageManger initialization.
- adds test coverage via gcov and lcov
- adds host side tests during CI builds

See merge request !9

8 years agocomponents/nvs: strlcpy is not available on Linux, replace with strncpy and terminate...
Ivan Grokhotkov [Tue, 23 Aug 2016 07:14:13 +0000 (15:14 +0800)]
components/nvs: strlcpy is not available on Linux, replace with strncpy and terminate strings explicitly

8 years agocomponents/nvs: run small number of tests as part of CI builds
Ivan Grokhotkov [Tue, 23 Aug 2016 04:54:09 +0000 (12:54 +0800)]
components/nvs: run small number of tests as part of CI builds

8 years agocomponents/nvs: fix typos in readme
Ivan Grokhotkov [Tue, 23 Aug 2016 04:07:23 +0000 (12:07 +0800)]
components/nvs: fix typos in readme

8 years agocomponents/nvs: fix host build with GCC 4.9, add coverage report generation
Ivan Grokhotkov [Mon, 22 Aug 2016 06:16:21 +0000 (14:16 +0800)]
components/nvs: fix host build with GCC 4.9, add coverage report generation

8 years agocomponents/nvs: handle more cases where sudden power off may happen
Ivan Grokhotkov [Mon, 22 Aug 2016 04:11:32 +0000 (12:11 +0800)]
components/nvs: handle more cases where sudden power off may happen

This commit fixes several issues with state handling in nvs::Page. It also adds extra consistency checks in nvs::PageManger initialization.
These changes were verified with a new long-running test ("test recovery from sudden poweroff"). This test works by repeatedly performing same pseudorandom sequence of calls to nvs_ APIs. Each time it repeats the sequence, it introduces a failure into one of flash operations (write or erase). So if one iteration of this test needs, say, 25000 flash operations, then this test will run 25000 iterations, each time introducing the failure point at different location.

8 years agocomponents/nvs: clear handles list on init, fix returning *length in nvs_get_{str...
Ivan Grokhotkov [Mon, 22 Aug 2016 03:58:13 +0000 (11:58 +0800)]
components/nvs: clear handles list on init, fix returning *length in nvs_get_{str,blob}

8 years agocomponents/nvs: fix infinite loop when loading namespaces
Ivan Grokhotkov [Mon, 22 Aug 2016 03:50:31 +0000 (11:50 +0800)]
components/nvs: fix infinite loop when loading namespaces

8 years agocomponents/nvs: add debugging facilities and runtime checks
Ivan Grokhotkov [Mon, 22 Aug 2016 03:46:44 +0000 (11:46 +0800)]
components/nvs: add debugging facilities and runtime checks

Extra runtime sanity checks run when compiled for the host (i.e. with no ESP_PLATFORM define)

8 years agocomponents/nvs: make some methods const
Ivan Grokhotkov [Mon, 22 Aug 2016 02:30:35 +0000 (10:30 +0800)]
components/nvs: make some methods const

8 years agoMerge branch 'feature/esptoolpy_performance' into 'master'
Jeroen Domburg [Tue, 23 Aug 2016 03:52:03 +0000 (11:52 +0800)]
Merge branch 'feature/esptoolpy_performance' into 'master'

esptool.py performance

Restores esptool.py custom baud rate, and re-adds compressed upload into the Makefile default targets

See merge request !11

8 years agoMerge branch 'feature/docs_osx_gettingstarted' into 'master'
Ivan Grokhotkov [Tue, 23 Aug 2016 03:36:15 +0000 (11:36 +0800)]
Merge branch 'feature/docs_osx_gettingstarted' into 'master'

:blue_book: Setup guide for macOS

Initial version of getting started guide for macOS. Section on crosstool-NG may lack all the necessary steps, but usage of crosstool-NG on macOS is pretty well documented, so this shouldn't be a showstopper. We need to run these steps on a clean install of macOS, both with MacPorts and homebrew. I'll do this once i get a VM with macOS working.

See merge request !13

8 years agoMerge branch 'feature/gitlab-ci' into 'master'
Ivan Grokhotkov [Tue, 23 Aug 2016 03:22:15 +0000 (11:22 +0800)]
Merge branch 'feature/gitlab-ci' into 'master'

GitLab CI and sync with GitHub

This change adds GitLab CI support. Currently we pull latest version of esp-idf-template project from Github and try to compile it with esp-idf version in question.
Additional test steps will be added in the future.

This change also adds automatic push to GitHub for master branch only, if CI has passed.

To implement CI builds, I created a docker image, espressif/esp32-ci-env. I will make its Dockerfile available on Github as well.

See merge request !12

8 years agodocs: macOS update started guide
Ivan Grokhotkov [Tue, 23 Aug 2016 02:38:05 +0000 (10:38 +0800)]
docs: macOS update started guide

fix URL to use HTTPS
fix typo
mention that compiling toolchain is optional
mention how to find the serial port