Angus Gratton
6acb38af4c
Merge branch 'bugfix/idf_monitor_windows10' into 'master'
...
idf_monitor: Fix bug with Windows 10 sometimes printing a character twice
See merge request idf/esp-idf!1964
2018-02-27 06:21:53 +08:00
Angus Gratton
672f8b057e
Merge branch 'feature/idf_size_sort_archives' into 'master'
...
Feature/idf size sort on size
See merge request idf/esp-idf!1957
2018-02-22 07:31:56 +08:00
Angus Gratton
3e83cfd77c
idf_monitor: Fix bug with Windows 10 sometimes printing a character twice
...
Turns out when IOError is thrown by the console, the character is
also successfully displayed.
Revisits fix from https://github.com/espressif/esp-idf/issues/1136
As reported https://esp32.com/viewtopic.php?f=14&t=4766&p=20637
2018-02-21 08:35:43 +11:00
Kedar Sovani
c8ef747c0a
idf_size: Report per-symbol size from the map file
...
Report as per the relevant sections output in the 'archives' output
2018-02-19 17:13:56 +05:30
Kedar Sovani
c9e6ed7d60
idf_size: Sort output on total-size instead of filename
2018-02-19 11:50:46 +05:30
Roland Dobai
4322e31c98
Make it easier to look up error messages
...
tools/gen_esp_err_to_name.py generates
components/esp32/esp_err_to_name.c for lookup of the error codes from
all of the IDF project and easily identify all codes in one place
2018-02-15 14:19:03 +01:00
He Yin Ling
532107c958
Merge branch 'test/ut_script' into 'master'
...
test: use the tiny-test-fw to run the unit test in CI
See merge request idf/esp-idf!1558
2018-02-06 18:03:22 +08:00
Ivan Grokhotkov
7ade59db6a
Merge branch 'bugfix/idf_monitor_fixes' into 'master'
...
idf_monitor bug fixes
See merge request idf/esp-idf!1889
2018-02-05 20:59:33 +08:00
houchenyao
5b8a9478a3
CI: new CI ut framework, and can run it in local PC
2018-02-05 06:58:22 +00:00
houchenyao
cb3c88fb2f
unit-test-app: use '-' to show test history
2018-02-05 06:58:22 +00:00
houchenyao
1e4508bc8d
tiny-test-fw: fix dut for python2 and python3
2018-02-05 06:58:22 +00:00
Angus Gratton
11bf72aace
Update cJSON to v1.7.1
...
* Fix buffer overflow issue in cJSON 1.6.0
* Change cJSON structure to git submodule
Closes https://github.com/espressif/esp-idf/issues/1577
2018-02-05 14:15:26 +08:00
Angus Gratton
4eab275a51
idf_monitor: Fix remaining case of Windows "console write fails" bug
...
Closes https://github.com/espressif/esp-idf/pull/1567
2018-02-01 14:05:56 +08:00
Angus Gratton
19d3d25ec2
idf_monitor: Aggressively clean up any interactive gdb session
...
At least on Linux, this can get stuck sometimes and cause terminal weirdness.
2018-02-01 14:05:53 +08:00
Angus Gratton
853736afe2
Toolchain: Update to version 1.22.0-80-g6c4433a
...
Includes updated prebuilt Windows MSYS2 environment.
2018-01-10 07:49:24 +00:00
Anton Maklakov
b902d00fa0
CI: Fix an occasional error caused by reordering the commands along with 'tee' in the script
2018-01-05 12:46:34 +08:00
Anton Maklakov
20616fc0f5
CI: Fix a sporadic bug when building of the examples. Add logs to the artifacts
2017-12-28 19:20:48 +08:00
Angus Gratton
b62e5a4b4e
idf_monitor: Fix Windows 10 bug in cases where second console write also fails
...
Although in my tests the second write always passes, people have reported
different results.
Closes https://github.com/espressif/esp-idf/issues/1136 (again)
2017-12-15 16:45:44 +11:00
michael
cb810ccbe1
feat(monitor): add pause feature.
2017-12-14 13:48:03 +08:00
michael
a8f89009a4
feat(monitor): add new feature allowing disabling log display.
2017-12-14 13:48:03 +08:00
krzychb
78aa1ec704
Resolves: Warning '-s option given but default rule can be matched'. Closes https://github.com/espressif/esp-idf/issues/1338
2017-12-11 22:53:39 +01:00
Ivan Grokhotkov
82aeb18c3f
Merge branch 'test/UT_master_slave_mode' into 'master'
...
unit-test-app: support multiple devices test cases
See merge request !1220
2017-12-11 15:22:51 +08:00
houchenyao
7a31b93fa3
unit-test-app: support multiple devices test cases:
...
current unit-test-app don't support test components need to communicate
with each other (like GPIO, SPI ...). Now we add multiple devices mode
to unit test app, support writing and running test with multiple DUTs.
please refer to `docs/api-guides/unit-tests.rst` for detail.
2017-12-07 13:57:26 +08:00
Ivan Grokhotkov
2b92119840
Merge branch 'bugfix/freertos_check_task_waiting_termination' into 'master'
...
Freertos Task Deletion backport and FPU documentation
See merge request !1591
2017-12-07 11:55:10 +08:00
Darian Leung
38afa32cfb
freertos/fix SMP bug with Idle task clean up
...
This commit backports vTaskDelete() behavior from FreeRTOS v9.0.0 which
allows for the immediate freeing of task memory if the task being deleted
is not currently running and not pinned to the other core. This commit also
fixes a bug in prvCheckTasksWaitingTermination which prevented the
Idle Task from cleaning up all tasks awaiting deletion. Each iteration of the Idle
Task should traverse the xTasksWaitingTermination list and clean up all tasks
not pinned to the other core. The previous implementation would cause
prvCheckTasksWaitingTermination to return when encountering a task
pinned to the other core whilst traversing the xTasksWaitingTermination list.
The test case for vTaskDelete() has been updated to test for the bugfix and
backported deletion behavior.
2017-12-05 18:13:56 +08:00
Angus Gratton
579201bcdc
Merge branch 'bugfix/windows_mingw32_gcc' into 'master'
...
windows: Allow "make menuconfig" to work if ming32 gcc is also installed
See merge request !1587
2017-12-04 06:22:33 +08:00
Ivan Grokhotkov
f0547d58e4
esp_timer: add documentation, expose profiling option in Kconfig
2017-11-29 11:44:46 +08:00
Ivan Grokhotkov
067c0e1ffe
Merge branch 'bugfix/cpp_unit_tests_not_executed_by_ci' into 'master'
...
CI: fix C++ unit test cases not executed by CI
See merge request !1589
2017-11-27 12:48:12 +08:00
Angus Gratton
7683bdbce2
Merge branch 'bugfix/monitor_windows10_crash' into 'master'
...
monitor: Fix Windows 10 crash since Fall Creators Update
See merge request !1567
2017-11-27 07:22:44 +08:00
Angus Gratton
02304ad83e
Merge branch 'feature/freertos_backported_functions' into 'master'
...
freertos/backport and test v9.0.0 functions
See merge request !1515
2017-11-24 08:49:59 +08:00
He Yin Ling
dd371289aa
CI: fix C++ unit test cases not executed by CI
2017-11-23 17:14:23 +08:00
Darian Leung
c1d101dd41
freertos/backport and test v9.0.0 functions
...
This commit backports the following features from FreeRTOS v9.0.0
- uxSemaphoreGetCount()
- vTimerSetTimerId(), xTimerGetPeriod(), xTimerGetExpiryTime()
- xTimerCreateStatic()
- xEventGroupCreateStatic()
- uxSemaphoreGetCount()
Functions backported previously
- xTaskCreateStatic()
- xQueueCreateStatic()
- xSemaphoreCreateBinaryStatic(), xSemaphoreCreateCountingStatic()
- xSemaphoreCreateMutexStatic(), xSemaphoreCreateRecursiveMutexStatic()
- pcQueueGetName()
- vTaskSetThreadLocalStoragePointer()
- pvTaskGetThreadLocalStoragePointer()
Unit tests were also written for the functions above (except for pcQueueGetName
which is tested in a separate Queue Registry MR). The original tlsp and del cb test case
was deleted and integrated into the test cases of this MR.
2017-11-23 14:18:09 +08:00
Angus Gratton
f41431022b
windows: Allow "make menuconfig" to work if ming32 gcc is also installed
...
Closes https://github.com/espressif/esp-idf/issues/1296
2017-11-23 14:31:04 +11:00
Angus Gratton
4d34251ff3
windows: Update precompiled env link & toolchain in setup script
2017-11-23 11:55:23 +11:00
Ivan Grokhotkov
6e1453e864
Merge branch 'feature/bot' into 'master'
...
CI: support customize test with @bot
See merge request !1502
2017-11-21 18:43:56 +08:00
Ivan Grokhotkov
2eae440646
unit-test-app: reduce startup delay, clean up
2017-11-20 17:51:27 +08:00
Ivan Grokhotkov
5117364c13
unit-test-app: don't print the list of tests by default
...
This reduces unit-test-app startup time when there are a lot of tests
included, speeding up unit tests in CI.
2017-11-20 17:51:27 +08:00
Angus Gratton
19598fa6d3
monitor: Fix Windows 10 crash since Fall Creators Update
...
Closes https://github.com/espressif/esp-idf/issues/1136
2017-11-20 17:47:43 +11:00
Alexey Gerenkov
692a890232
esp32: Adds Stack Smashing Protection Feature
...
These changes add posibility to enable GCC stack protector via menuconfig
for all source files in project.
2017-11-17 12:08:36 +03:00
He Yin Ling
9395a702ef
test: check and collect performance via CI
2017-11-16 17:48:30 +08:00
Darian Leung
d1853dbbc0
FreeRTOS/make Queue Registry and Run Time Stats configurable
...
This commit makes the configQUEUE_REGISTRY_SIZE and
configGENERATE_RUN_TIME_STATS configurable in menuconfig.
- configQUEUE_REGISTRY_SIZE can now be set in menuconfig.
- The functions vQueueAddToRegistry() and vQueueUnregisterQueue() were made
SMP compatbile
- pcQueueGetName() was backported from FreeRTOS v9.0.0
- Added test case for Queue Registry functions
- configGENERATE_RUN_TIME_STATS can now be enabled in menuconfig. CCOUNT or
esp_timer can be selected as the FreeRTOS run time clock in menuconfig as
well, although CCOUNT will overflow quickly.
- Run time stats collection (in vTaskSwitchContext) and generation (in
uxTaskGetSystemState) have been made SMP compatible. Therefore
vTaskGetRunTimeStats() now displays the run time usage of each task as a
percentage of total runtime of both CPUs
Squash
2017-11-14 15:50:31 +08:00
Ivan Grokhotkov
7632c6a80c
Merge branch 'test/UT_reset_check' into 'master'
...
Test/ut reset check
See merge request !1086
2017-11-10 11:30:46 +08:00
Ivan Grokhotkov
d1f6030921
Merge branch 'bugfix/from_github' into 'master'
...
Bug fixes from Github
See merge request !1487
2017-11-10 11:13:04 +08:00
He Yin Ling
c6f7a38536
CI: support customize test with @bot
2017-11-08 11:36:16 +08:00
houchenyao
f80824a2d8
test: support test for UT cases expect to reset
2017-11-07 12:19:39 +08:00
Ivan Grokhotkov
6b420b2452
unit tests: add psram configuration
2017-11-06 11:23:15 +08:00
Angus Gratton
2c72223a4e
Merge branch 'bugfix/protect_spiflash_regions' into 'master'
...
spi_flash: Abort on writes to dangerous regions (bootloader, partition table, app)
See merge request !1452
2017-11-04 12:40:21 +08:00
Angus Gratton
670733df9f
spi_flash: Abort on writes to dangerous regions (bootloader, partition table, app)
...
Can be disabled or made into a failure result in kconfig if needed.
2017-11-03 15:52:27 -07:00
Krzysztof Bociurko
5827fd8c71
idf_monitor: Fixed a bug where pressing a key that doesn't encode into
...
a proper ASCII character, terminated the monitor with an exception
2017-11-03 16:47:30 +08:00
Ivan Grokhotkov
849ad9b37b
tools/unit-test-app: fix build warning
2017-11-03 15:49:09 +08:00
He Yin Ling
cd1223a25e
CI: integrate example test to CI
2017-10-31 19:16:26 +08:00
He Yin Ling
47a9a4a614
test: add test fw for example test
2017-10-31 17:42:19 +08:00
Ivan Grokhotkov
59b7d98fec
Merge branch 'feature/dfs' into 'master'
...
Dynamic frequency scaling
See merge request !1189
2017-10-22 12:34:11 +08:00
Darian Leung
a6854b72cd
freertos/make trace facility configurable
...
This commit makes configUSE_TRACE_FACILITY and
configUSE_STATS_FORMATTING_FUNCTIONS configurable in kconfig. Test cases fro the
functions enabled by the two configurations above have also been added.
Test cases for the following functions have been added...
- uxTaskGetSystemState()
- uxTaskGetTaskNumber()
- vTaskSetTaskNumber()
- xEventGroupClearBitsFromISR()
- xEventGroupSetBitsFromISR()
- uxEventGroupGetNumber()
- uxQueueGetQueueNumber()
- vQueueSetQueueNumber()
- ucQueueGetQueueType()
Test cases for the following functions were not required...
- prvListTaskWithinSingleList()
- prvWriteNameToBuffer()
- vTaskList()
2017-10-20 15:17:17 +08:00
Ivan Grokhotkov
90bbcbcdc0
unit tests: fix warnings, build with -Werror
...
- libsodium: silence warnings
- unit tests: fix warnings
- spiram: fix warnings
- ringbuf test: enable by default, reduce delays
2017-10-19 21:35:23 +08:00
He Yin Ling
0a5b678e58
CI: support test UT with different config by CI
2017-10-19 21:35:20 +08:00
Ivan Grokhotkov
3d150be4e1
unit-test-app: new targets for building different configurations
2017-10-19 21:35:19 +08:00
Ivan Grokhotkov
bfeecd2b56
freertos: deprecate XT_CLOCK_FREQ
...
- freertos: add deprecated definition for XT_CLOCK_FREQ
- flash_ops: don't use XT_CLOCK_FREQ
- unity: don't use XT_CLOCK_FREQ
- hw_random: don't use XT_CLOCK_FREQ
- core_dump: don't use XT_CLOCK_FREQ
- app_trace: don't use XT_CLOCK_FREQ
- xtensa_init: init xt_tick_divisor
2017-10-18 14:19:19 +08:00
Ivan Grokhotkov
2b3325b1ab
unit tests: fix ref_clock value obtained due to overflow
2017-10-18 14:19:15 +08:00
Angus Gratton
69e92ee320
unit tests: If heap tracing is enabled in sdkconfig, leak trace each test
2017-10-17 15:29:25 +08:00
Angus Gratton
6f07e0797d
Unit tests: If a test fails due to corrupting memory, don't print a misleading source file name
2017-10-17 14:46:08 +08:00
Angus Gratton
d20fbffae1
idf_monitor: Demangle C++ names
2017-10-17 14:46:08 +08:00
Angus Gratton
0a52dbccca
Merge branch 'bugfix/spi_reset_race' into 'master'
...
periph_ctrl: Refactor to add periph_module_reset(), avoid potential race in SPI DMA workaround
See merge request !1349
2017-10-13 08:51:36 +08:00
Angus Gratton
5d8bd1aa9e
Merge branch 'bugfix/libsodium_mbedtls_sha' into 'master'
...
libsodium: Fix mbedTLS SHA256 & SHA512 implementation, make optional
See merge request !1329
2017-10-13 08:50:24 +08:00
Angus Gratton
d98934d56b
doc: Fix mentions of Cygwin-style paths to Unix-style
...
Cygwin-style is really only /cygpath/xxx and IDF doesn't support these.
Closes https://github.com/espressif/esp-idf/pull/1033
2017-10-09 14:22:53 +11:00
Angus Gratton
acff3c9c59
libsodium: Fix mbedTLS SHA256 & SHA512 implementation, make optional
...
* Only direct invocation of cypto_hash_sha256 & crypto_hash_sha512 produced correct output.
* Some remaining header file mixups, so changed approach to wrapping the state structures.
* Fixes https://github.com/espressif/esp-idf/issues/1044 (crypto_sign problems)
* Add option to disable mbedTLS implementation for SHA256 & SHA512 in libsodium
2017-10-06 11:51:55 +11:00
Angus Gratton
0dd9b899b7
periph_ctrl: Refactor to add periph_module_reset(), avoid potential race in SPI DMA workaround
...
Also refactor use of direct clock access in unit test ref_clock (probably not a real issue)
2017-10-02 17:48:16 +11:00
michael
7370f2913d
test: update the format of TEST_ASSERT macro series in `unity.c
`
2017-09-27 19:56:46 +08:00
Angus Gratton
c4e65d6a95
Merge branch 'bugfix/build_kconfig_deps' into 'master'
...
build: make clean should remove all .d files in tools/kconfig
See merge request !1302
2017-09-22 12:42:37 +08:00
Angus Gratton
976135c3a8
Merge branch 'bugfix/build_system_regen_component_vars' into 'master'
...
build system: Fix bug requiring "make clean" after IDF updates or menuconfig changes
See merge request !1293
2017-09-22 12:42:00 +08:00
Angus Gratton
a361a00405
build: make clean should remove all .d files in tools/kconfig
...
Causes a problem that can't be fixed by "make clean" if the
host OS headers have moved around.
ie https://esp32.com/viewtopic.php?f=13&t=3098&p=14487
2017-09-22 10:27:32 +10:00
Angus Gratton
ab531c0b48
doc: Add steps to update Windows environment installations
2017-09-21 16:57:06 +10:00
Angus Gratton
53d12a6212
build system tests: Don't unix2dos .git files, build directories
2017-09-20 18:21:29 +10:00
Angus Gratton
85ce07e6fd
build system: Fix bad partial builds after updates, sdkconfig changes
...
Fixes accidental regression merging 9903ea1c11
.
Add test case for this kind of rebuilding.
2017-09-20 18:11:15 +10:00
Ivan Grokhotkov
01c0c4b661
unit-test-app: initialize partition table info before starting the test
2017-09-19 10:39:44 +08:00
Angus Gratton
0db01b4a4d
windows: Update windows prereq script & precompiled environment download
2017-09-18 18:26:57 +10:00
Angus Gratton
61e3a5bd16
windows: Update toolchain & MSYS package download links
2017-09-13 17:27:47 +08:00
Angus Gratton
e250dbb433
windows: Add workaround for "git submodule" stray output bug
...
TW10271
2017-09-13 17:27:47 +08:00
me-no-dev
dd87deb278
Add SPIFFS Component to IDF
2017-09-11 19:56:40 +03:00
Angus Gratton
1c7b8aa3a5
Heap tracing support
2017-09-07 16:32:05 +10:00
Angus Gratton
64bfdf56bb
Unit tests: enable comprehensive heap poisoning checks
2017-09-07 16:32:05 +10:00
Angus Gratton
5222428dde
unit tests: Check heap integrity after each test, check for obvious leaks
2017-09-07 16:32:05 +10:00
Angus Gratton
4809c70899
Merge branch 'feature/register_heaps_runtime' into 'master'
...
heap: Support adding new heap regions at runtime
See merge request !1159
2017-09-07 10:18:21 +08:00
Deomid Ryabkov
9903ea1c11
Add --warn-undefined-variables to MAKEFLAGS
...
Fix warnings where undefined vars are used.
Make Kconfig emit "FOO=" for unset bool options
To ensure make variables are always defined, even if empty.
When writing auto.conf, include symbols disabled by dependency to make sure all make variables are always defined.
Fixes espressif/esp-idf#137
Cherry-picked from https://github.com/espressif/esp-idf/pull/138
2017-09-05 16:10:46 +10:00
Angus Gratton
5361c08989
heap: Support adding new heap regions at runtime
...
To facilitate this, the list of registered heap regions is now a linked list
(allowing entries to be appended at runtime.)
2017-09-05 14:07:02 +10:00
Angus Gratton
f487bb19d7
Merge branch 'bugfix/ci_build_examples_more' into 'master'
...
CI build_examples: Fix build flakiness
See merge request !1191
2017-09-04 16:02:12 +08:00
Angus Gratton
867b20837f
build system: Explicitly disallow 'clean' along with non-cleaning targets
...
Too hard to stage the dependencies so that all clean steps complete before any build steps begin. Also, using and then
deleting and then regenerating SDKCONFIG_MAKEFILE in one pass is really hard to manage successfully.
2017-09-04 17:40:15 +10:00
Angus Gratton
97efaab27b
build system tests: Run inside PWD same as build_examples.sh
2017-09-04 17:40:15 +10:00
Angus Gratton
2544355301
build_examples: Small cleanups
...
* Override MAKEFLAGS via make not via shell variables
* Remove build_examples in gitlab-ci
* Don't use mktemp for any logs
2017-09-04 17:40:15 +10:00
Jeroen Domburg
34372a091c
Add initial SPI RAM support. This adds support for an ESP-PSRAM32 chip connected to the default flash pins and GPIO 16 and 17. The RAM is mapped to address 0x3F800000, but otherwise ignored by esp-idf as of yet.
2017-09-04 12:05:49 +08:00
Ivan Grokhotkov
5666fc0a56
Merge branch 'feature/esp_timer_improvements' into 'master'
...
esp_timer improvements
See merge request !1172
2017-09-01 16:14:01 +08:00
Ivan Grokhotkov
d2acf1ce77
sleep: add light sleep, factor out APIs common for deep/light sleep
2017-09-01 10:36:14 +08:00
Ivan Grokhotkov
9a2c62cf2b
unity: add reference clock for use in unit tests
2017-09-01 10:34:36 +08:00
Ivan Grokhotkov
3d8390fa8a
ci: put example log files on the build volume
2017-08-31 23:00:48 +08:00
Ivan Grokhotkov
a25eb825e1
Merge branch 'bugfix/dport_protect_crypto' into 'master'
...
add protection for crypto registers in DPORT
See merge request !928
2017-08-30 11:45:35 +08:00
Ivan Grokhotkov
80486240c6
unity: log error codes as hex
...
Error codes are normally defined as hex numbers in header files, so
changing the assert macro to print them as hex as well.
2017-08-29 08:35:23 +08:00
Angus Gratton
0ea4cd67dd
mbedtls: Remove "unsafe" warning, enable AES by default & make SHA/MPI optional
2017-08-25 16:08:03 +10:00
Ivan Grokhotkov
b9cdbfea87
Merge branch 'test/UT_SDMMC' into 'master'
...
Enable SDMMC driver test cases
See merge request !1106
2017-08-24 14:41:39 +08:00
houchenyao
cf64c7e9a6
unit test: add sd env and spi env for sdmmc
2017-08-22 21:01:34 +08:00
Ivan Grokhotkov
6f52cf0f9d
Merge branch 'bugfix/ci_fix_getting_sources' into 'master'
...
CI: Fix the spell for more reliable getting the sources
See merge request !1127
2017-08-22 20:03:12 +08:00