]> granicus.if.org Git - esp-idf/log
esp-idf
8 years agoMerge branch 'feature/wifi-stage-one' into 'master'
Angus Gratton [Mon, 5 Sep 2016 00:34:31 +0000 (08:34 +0800)]
Merge branch 'feature/wifi-stage-one' into 'master'

Wifi branch changes stage one

Wifi branch up to commit 588d384, plus some cleanup.

See merge request !52

8 years agoUpdate WiFi library version.
Angus Gratton [Fri, 2 Sep 2016 01:59:21 +0000 (11:59 +1000)]
Update WiFi library version.

This version compiles but does not startup with WiFi component enabled.

8 years agoMinor comment cleanup
Angus Gratton [Fri, 2 Sep 2016 01:33:53 +0000 (11:33 +1000)]
Minor comment cleanup

Remove old commented code, etc.

8 years agotcpip_adapter: Fix typo STOPED->STOPPED
Angus Gratton [Fri, 2 Sep 2016 01:29:27 +0000 (11:29 +1000)]
tcpip_adapter: Fix typo STOPED->STOPPED

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 agoMerge wifi branch commit '588d384393536a040f899b382890316c56061b6a' into feature...
Angus Gratton [Fri, 2 Sep 2016 01:14:27 +0000 (11:14 +1000)]
Merge wifi branch commit '588d384393536a040f899b382890316c56061b6a' into feature/wifi-stage-one

8 years agoMerge branch 'feature/newlib_locking' into 'master'
Angus Gratton [Thu, 1 Sep 2016 08:17:22 +0000 (16:17 +0800)]
Merge branch 'feature/newlib_locking' into 'master'

newlib locking support

Has matching tests here: http://gitlab.espressif.cn/idf/esp-idf-tests/commits/feature/newlib_locking_tests

This is ready, the "bug" I saw was me not understanding how newlib stream locking works (I still don't understand why it works like it does, but that's less important for now.)

See merge request !17

8 years agoMerge branch 'bugfix/gitlab_update_submodules' into 'master'
Ivan Grokhotkov [Thu, 1 Sep 2016 07:41:08 +0000 (15:41 +0800)]
Merge branch 'bugfix/gitlab_update_submodules' into 'master'

gitlab-ci: update submodules before build

Gitlab CI will cache build directory per branch and per build step. Also it doesn't try to update submodules.
We have to do this manually because otherwise we end up with old version of submodule in cached directory.

See merge request !47

8 years agogitlab-ci: update submodules before build
Ivan Grokhotkov [Thu, 1 Sep 2016 07:13:15 +0000 (15:13 +0800)]
gitlab-ci: update submodules before build

Gitlab CI will cache build directory per branch and per build step. Also it doesn't try to update submodules.
We have to do this manually because otherwise we end up with old version of submodule in cached directory.

8 years agoMerge branch 'bugfix/md5_rom_header_types' into 'master'
Angus Gratton [Thu, 1 Sep 2016 03:22:22 +0000 (11:22 +0800)]
Merge branch 'bugfix/md5_rom_header_types' into 'master'

md5_hash.h: Replace outdated use of c_types.h with stdint

See merge request !44

8 years agomd5_hash.h: Replace outdated use of c_types.h with stdint
Angus Gratton [Wed, 31 Aug 2016 22:56:06 +0000 (08:56 +1000)]
md5_hash.h: Replace outdated use of c_types.h with stdint

8 years agoMerge branch 'bugfix/ocd_stop_on_unhandled_exception' into 'master'
Jeroen Domburg [Wed, 31 Aug 2016 04:15:04 +0000 (12:15 +0800)]
Merge branch 'bugfix/ocd_stop_on_unhandled_exception' into 'master'

Fix: Return after setting breakpoint when ocd is detected instead of continuing …

…into the panic routine

Made a small thinko when refactoring the panic handler code. This fixes it.

See merge request !36

8 years agoMerge branch 'feature/openocd_doc' into 'master'
Jeroen Domburg [Tue, 30 Aug 2016 10:02:20 +0000 (18:02 +0800)]
Merge branch 'feature/openocd_doc' into 'master'

Add openocd documentation and config file

As we (=Ivan/Angus) discussed, the esp32-specific openocd/gdb documentation and helper tools will live in the esp-idf repository. This is an initial document detailing the basics of setting up OpenOCD with an esp32 module. It should be sufficient for people already familiar with a similar setup on another platform to start using JTAG for debugging. It can be expanded much more (e.g. the tracetool still is missing) but we'llhave to add that later.

See merge request !31

8 years agoFix: Return after setting breakpoint when ocd is detected instead of continuing into...
Jeroen Domburg [Tue, 30 Aug 2016 09:55:20 +0000 (17:55 +0800)]
Fix: Return after setting breakpoint when ocd is detected instead of continuing into the panic routine

8 years agoAdd bit of text saying openocd helper options for esp-idf are enabled by default
Jeroen Domburg [Tue, 30 Aug 2016 07:44:20 +0000 (15:44 +0800)]
Add bit of text saying openocd helper options for esp-idf are enabled by default

8 years agoMerge branch 'feature/json' into 'master'
Liu Han [Tue, 30 Aug 2016 05:54:16 +0000 (13:54 +0800)]
Merge branch 'feature/json' into 'master'

components/json: add JSON parse feature

Develop and Compile JSON Parse function, can test by running list,  see test_json file.

See merge request !33

8 years agoMerge branch 'feature/expat' into 'master'
Liu Han [Tue, 30 Aug 2016 05:52:51 +0000 (13:52 +0800)]
Merge branch 'feature/expat' into 'master'

components/expat: add XML parse feature

Develop and Compile XML Parse based on XMPP protocol, can test from unity running list, see expat file.

See merge request !32

8 years agoFix issued raised in the merge request
Jeroen Domburg [Tue, 30 Aug 2016 03:30:03 +0000 (11:30 +0800)]
Fix issued raised in the merge request

8 years agoAdd openocd documentation and config file
Jeroen Domburg [Mon, 29 Aug 2016 08:24:22 +0000 (16:24 +0800)]
Add openocd documentation and config file

8 years agoMerge branch 'feature/make_incremental_headers' into 'master'
Angus Gratton [Mon, 29 Aug 2016 07:06:18 +0000 (15:06 +0800)]
Merge branch 'feature/make_incremental_headers' into 'master'

Makefile: Fix "No rule to make target X.h" for generated header dependencies

See merge request !30

8 years agoMerge branch 'bugfix/rom_aes_set_endian' into 'master'
Ivan Grokhotkov [Mon, 29 Aug 2016 07:04:15 +0000 (15:04 +0800)]
Merge branch 'bugfix/rom_aes_set_endian' into 'master'

[Github] Fix prototype for ets_aes_set_endian

https://github.com/espressif/esp-idf/pull/3

Original description:
>
> found small mistake in it
>
> we have:
>
```
PROVIDE ( ets_aes_crypt = 0x4005c9b8 );
PROVIDE ( ets_aes_disable = 0x4005c8f8 );
PROVIDE ( ets_aes_enable = 0x4005c8cc );
PROVIDE ( ets_aes_set_endian = 0x4005c928 );
PROVIDE ( ets_aes_setkey_dec = 0x4005c994 );
PROVIDE ( ets_aes_setkey_enc = 0x4005c97c );
```

See merge request !29

8 years agoMakefile: Fix "No rule to make target X.h" for generated header dependencies
Angus Gratton [Mon, 29 Aug 2016 00:48:53 +0000 (10:48 +1000)]
Makefile: Fix "No rule to make target X.h" for generated header dependencies

8 years agoUpdate aes.h
rudi ;-) [Sat, 27 Aug 2016 12:34:02 +0000 (14:34 +0200)]
Update aes.h

found small mistake in it

we have:

PROVIDE ( ets_aes_crypt = 0x4005c9b8 );
PROVIDE ( ets_aes_disable = 0x4005c8f8 );
PROVIDE ( ets_aes_enable = 0x4005c8cc );
PROVIDE ( ets_aes_set_endian = 0x4005c928 );
PROVIDE ( ets_aes_setkey_dec = 0x4005c994 );
PROVIDE ( ets_aes_setkey_enc = 0x4005c97c );

Signed-off-by: Ivan Grokhotkov <ivan@espressif.com>
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 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 agocomponents/json: add JSON parse feature
liuhan [Thu, 25 Aug 2016 09:04:14 +0000 (17:04 +0800)]
components/json: add JSON parse feature

Develop and Compile JSON Parse function, see json file.

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 agocomponents/expat: add XML parse feature
liuhan [Thu, 25 Aug 2016 08:40:23 +0000 (16:40 +0800)]
components/expat: add XML parse feature

Develop and Compile XML Parse based on XMPP protocol, see expat file.

8 years agoMerge branch 'feature/ld_change' into 'master'
Wu Jian Gang [Thu, 25 Aug 2016 07:52:11 +0000 (15:52 +0800)]
Merge branch 'feature/ld_change' into 'master'

update ld and heap region

Divide origin fpga ld to several lds,  choose specific ld for normal/BT/Trace by menuconfig, change iram/dram len in ld to full use hardware ram region.

See merge request !28

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 agomem: add comments for knock out 0x3ffe0000~0x3ffe8000
Wu Jian Gang [Thu, 25 Aug 2016 03:59:29 +0000 (11:59 +0800)]
mem: add comments for knock out 0x3ffe0000~0x3ffe8000

TODO: this region should be checked later

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 agomem: knock out bt/trace data region if configed in menuconfig
Wu Jian Gang [Thu, 25 Aug 2016 03:06:51 +0000 (11:06 +0800)]
mem: knock out bt/trace data region if configed in menuconfig

8 years agold: fix ld for bootloader
Wu Jian Gang [Mon, 22 Aug 2016 04:02:20 +0000 (12:02 +0800)]
ld: fix ld for bootloader

8 years agold: add ld for bt/trace, choose different ld by menuconfig
Wu Jian Gang [Fri, 19 Aug 2016 10:45:49 +0000 (18:45 +0800)]
ld: add ld for bt/trace, choose different ld by menuconfig

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 agold: fix ld to use ram as much as possible, rearrange heap_alloc area
Wu Jian Gang [Fri, 19 Aug 2016 10:40:51 +0000 (18:40 +0800)]
ld: fix ld to use ram as much as possible, rearrange heap_alloc area

8 years agold: seperate/rename eagle.xxx.ld to esp32.xxx.ld
Wu Jian Gang [Fri, 19 Aug 2016 10:28:32 +0000 (18:28 +0800)]
ld: seperate/rename eagle.xxx.ld to esp32.xxx.ld

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