]> granicus.if.org Git - esp-idf/log
esp-idf
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 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 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

8 years agodocs: add setup guide for macOS
Ivan Grokhotkov [Fri, 19 Aug 2016 06:47:25 +0000 (14:47 +0800)]
docs: add setup guide for macOS

8 years agogitlab-ci: push master to GitHub master on success
Ivan Grokhotkov [Mon, 22 Aug 2016 10:19:08 +0000 (18:19 +0800)]
gitlab-ci: push master to GitHub master on success

8 years agoesptool.py & Makefile: Fix compressed upload support (enabled by default)
Angus Gratton [Mon, 22 Aug 2016 10:43:47 +0000 (18:43 +0800)]
esptool.py & Makefile: Fix compressed upload support (enabled by default)

8 years agoesptool.py: Set higher baud rates on ESP32
Angus Gratton [Mon, 22 Aug 2016 10:31:44 +0000 (18:31 +0800)]
esptool.py: Set higher baud rates on ESP32

8 years agoMerge branch 'default_freq' into 'master'
Angus Gratton [Mon, 22 Aug 2016 09:38:00 +0000 (17:38 +0800)]
Merge branch 'default_freq' into 'master'

rtos: change XT_CLOCK_FREQ from 13MHz to 80MHz

Freq has been change to `80MHz` in system_init, otherwise system tick will not be accurate now.

Maybe we can config freq by menuconfig.

See merge request !8

8 years agogitlab-ci: initial version
Ivan Grokhotkov [Mon, 22 Aug 2016 07:02:22 +0000 (15:02 +0800)]
gitlab-ci: initial version

This change adds gitlab CI support. It tests if latest master of esp-idf-template can be built with the commit of ESP-IDF in question. Currently it's a bit lax because both SDK_PATH and IDF_PATH are defined.
This change also changes components/esp32/lib submodule to point to Github over HTTPS instead of SSH, because CI server might not have its SSH keys uploaded to Github.

8 years agoMerge branch 'bugfix/spurious_uninitialized_mux_notice' into 'master'
Jeroen Domburg [Mon, 22 Aug 2016 09:33:29 +0000 (17:33 +0800)]
Merge branch 'bugfix/spurious_uninitialized_mux_notice' into 'master'

Add static initializers for muxes, add mutex init to vPortCPUAcquireMutex

We still have some ERROR: vPortCPUAcquireMutex: mux 0x3ffc01cc is uninitialized (0x0)!  errors. I'd like to fix those by giving muxes as used in critical regions an initializer, so they can get initialized at program load. This is FreeRTOS core code, I'd like someone to review it before I commit it.

See merge request !10

8 years agoAdd C99-style named field in initialisation struct
Jeroen Domburg [Mon, 22 Aug 2016 09:45:46 +0000 (17:45 +0800)]
Add C99-style named field in initialisation struct

8 years agoOops, left in a debugging break.n. Removed.
Jeroen Domburg [Mon, 22 Aug 2016 09:41:55 +0000 (17:41 +0800)]
Oops, left in a debugging break.n. Removed.

8 years agoAdd static initializers for muxes, add mutex init to vPortCPUAcquireMutex
Jeroen Domburg [Mon, 22 Aug 2016 09:36:32 +0000 (17:36 +0800)]
Add static initializers for muxes, add mutex init to vPortCPUAcquireMutex

8 years agortos: change XT_CLOCK_FREQ from 13MHz to 80MHz
Wu Jian Gang [Mon, 22 Aug 2016 04:04:14 +0000 (12:04 +0800)]
rtos: change XT_CLOCK_FREQ from 13MHz to 80MHz

Freq has been change to 80MHz in system_init

8 years agoUse IDF_PATH instead of SDK_PATH for the environment variable pointing to esp-idf
Angus Gratton [Fri, 19 Aug 2016 06:32:35 +0000 (14:32 +0800)]
Use IDF_PATH instead of SDK_PATH for the environment variable pointing to esp-idf

This will require a matching change in all projects using ESP-IDF.

8 years agoStandardise remaining uses of SDK to ESP-IDF
Angus Gratton [Fri, 19 Aug 2016 06:30:39 +0000 (14:30 +0800)]
Standardise remaining uses of SDK to ESP-IDF

8 years agoMake: Add some "magic" to try and pull git submodules if missing
Angus Gratton [Fri, 19 Aug 2016 06:20:28 +0000 (14:20 +0800)]
Make: Add some "magic" to try and pull git submodules if missing

8 years agoWindows-setup: Remove direct download option as it doesn't work
Angus Gratton [Fri, 19 Aug 2016 06:08:11 +0000 (14:08 +0800)]
Windows-setup: Remove direct download option as it doesn't work

8 years agoMerge branch 'ag_make_fixes' into 'master'
Angus Gratton [Fri, 19 Aug 2016 06:29:06 +0000 (14:29 +0800)]
Merge branch 'ag_make_fixes' into 'master'

8 years agoMakefile: bootloader-clean shouldn't clean config or partition table
Angus Gratton [Fri, 19 Aug 2016 04:16:06 +0000 (12:16 +0800)]
Makefile: bootloader-clean shouldn't clean config or partition table

Also don't build config for 'make help', and remove some redundant
clearing of variables.

8 years agomake: 'make all' default target builds everything, 'make flash' flashes everything
Angus Gratton [Thu, 18 Aug 2016 09:11:27 +0000 (17:11 +0800)]
make: 'make all' default target builds everything, 'make flash' flashes everything

Also added 'make help' target which prints some useful usage summary.

8 years agoMove details about partition tables to their own ReST doc in docs/
Angus Gratton [Thu, 18 Aug 2016 09:46:34 +0000 (17:46 +0800)]
Move details about partition tables to their own ReST doc in docs/

8 years agoFix 'make bootloader' not printing instructions
Angus Gratton [Thu, 18 Aug 2016 08:59:38 +0000 (16:59 +0800)]
Fix 'make bootloader' not printing instructions

8 years agoFix documentation errors/typos
Angus Gratton [Thu, 18 Aug 2016 04:41:47 +0000 (12:41 +0800)]
Fix documentation errors/typos

8 years agoFix gen_esp32part.py locations & documentation (thanks @wujiangang\!)
Angus Gratton [Thu, 18 Aug 2016 04:38:51 +0000 (12:38 +0800)]
Fix gen_esp32part.py locations & documentation (thanks @wujiangang\!)

8 years agoMake: Fix make bootloader, make bootloader-flash, cleaning of bootloader
Angus Gratton [Thu, 18 Aug 2016 04:36:15 +0000 (12:36 +0800)]
Make: Fix make bootloader, make bootloader-flash, cleaning of bootloader

Should resolve TW6610

8 years agoInitial public version
Ivan Grokhotkov [Wed, 17 Aug 2016 15:08:22 +0000 (23:08 +0800)]
Initial public version