Commit graph

3102 commits

Author SHA1 Message Date
Archit Gupta
c8fa483b68
Add custom metrics to defender demo (#507)
Adds custom metrics to the defender demo. The metrics added are a list of the task ids and the stack high water mark.
2021-03-05 17:56:28 -08:00
xuelix
e61730c9b1
Changed git-secrets check to check all PR branches. (#521)
* Change to check all PR branches.
2021-03-05 13:59:28 -08:00
xuelix
7de2a488b8
Added git-secrets check to Github Action (#520) 2021-03-04 11:40:24 -08:00
Nathan Chong
5309372245
Minor VeriFast proof changes to match V10.4.3 (#519)
* Minor changes for V10.4.3

* Update license
2021-02-25 14:00:22 -07:00
Carl Lundin
5ff9863249
Update corePKCS11 submodule. (#505)
Co-authored-by: alfred gedeon <28123637+alfred2g@users.noreply.github.com>
2021-02-22 11:31:18 -08:00
Carl Lundin
47052bc054
Correct FreeRTOS.org link in main_full.c for: (#510)
* FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/main_full.c
* FreeRTOS/Demo/Posix_GCC/main_full.c
2021-02-22 10:37:23 -08:00
RichardBarry
2e4485a0d6
Create Cortex-M3 QEMU project for testing with the IAR compiler (#503)
* Initial version of the CORTEX_MPS2_QEMU_IAR - needs tidying up and so far only contains the comprehensive demo.

* Update the comment block at the top of the source files to match the latest official release.

* Split out the main_full() demo from main().  Still need to add in the main_blinky() demo.

* Add the blinky demo option.

* Tidy up the QEMU/IAR project.

* Configure the QEMU IAR project to only create the blinky demo.

* Delete readme.txt which was in the wrong directory.

* Fix errors in the comments at the top of the file as highlighted by the auto checks.

Co-authored-by: alfred gedeon <28123637+alfred2g@users.noreply.github.com>
2021-02-19 12:19:23 -08:00
Carl Lundin
006c6dd5fd
Update python version to 3.7.10 (#512) 2021-02-18 18:55:29 -08:00
Paul Bartell
570ae6bb52
Add unity memory extension, fake_assert, and enable -fsanitize=address (#506)
* Enable libunitymemory extension to track dynamic memory usage during unit tests
* Use UnityMemory in timers_utest.c
* Add fake_assert.h to allow mocking of configASSERT calls
* Add .editorconfig to make github show indentation correctly
* Add unity memory and fake_assert to queue_utest.c
* Add -fsanitize=address CFLAG when running unit tests
* Define mtCOVERAGE_TEST_MARKER macro to include mtCOVERAGE_TEST_MARKER lines in coverage figures
* Add additional memory check / protection CFLAGS for CMock tests
* Fix out of bounds array access in list_utest.c
* Move the fake_assert.h include to the top of FreeRTOSConfig.h
2021-02-18 10:15:01 -08:00
alfred gedeon
c4d8002634
Generate JUnit style report for kernel unit test (#504)
* Add JUnit test report to ut
* Add JUnit test report with make run
* Fix gcc path
2021-02-15 14:09:24 -08:00
David Chalco
63aec3607d
Unit Test/timer[0] (#502)
* define CC/LD iff undef. Add timers suite

* timers_utest[0]
2021-02-14 11:24:55 -08:00
Carl Lundin
f6dff3fea3
Add Litani to run CBMC proofs (#501)
Update to out of source makefile build and add run-cbmc-proofs.py

CBMC proofs can now be run with Litani with the command
"./run-cbmc-proofs.py"

Based on commits:
* 1646301 - Ignore CBMC proof failures, fail the build later (4 months ago) <Kareem Khazem>
* 7e8c91a - Fix Makefile prerequisite symbol for CBMC proofs (4 months ago) <Kareem Khazem>
* bee04be - Enable CBMC proofs to run in CI (4 months ago) <Kareem Khazem>

Found in https://github.com/FreeRTOS/FreeRTOS-Plus-TCP
2021-02-12 10:21:07 -08:00
alfred gedeon
cd92c42b52
Kernel list.c Unit Test (#497)
* Test: List.c Unit Test

* Test: test list.h macros

* Test: Fix UT bug

* Remove unecessary statement from Makefile

* Update list_utest.c

* Update list_utest.c

Co-authored-by: Cobus van Eeden <35851496+cobusve@users.noreply.github.com>
2021-02-11 18:10:49 -08:00
alfred gedeon
c4839ecda3
Comment: Remove tcp echo client from the comments (#500) 2021-02-11 14:56:11 -08:00
Cobus van Eeden
1ef9daf721 Add feature request template 2021-02-10 15:46:28 -08:00
Archit Aggarwal
693212bd05
Update Jobs demo to use DescribeJobExecution instead of StartNextPendingJobExecution API (#496)
It is recommended by the AWS IoT Jobs service to use DescribeJobExecution API for scaling purposes instead of StartNextPendingJobExecution API. Thus, update the Jobs demo to replace the latter API call with the former API call.
2021-02-10 15:25:25 -08:00
David Chalco
5bb198cdb8
delete .gitattributes (#499) 2021-02-09 17:54:30 -08:00
Archit Aggarwal
8d325a5f47
Blocklist certificate files in .gitignore (#498) 2021-02-09 12:09:14 -08:00
alfred gedeon
9b9011917a
Add Kernel Unit Tests Environment (#494)
* Implement Kernel Unit Test Framework with CMock

* Add Readme.md to unit tests

* Add Posix build checker to git actions

* Add Ruby requirement

* Fix file header checks

* Fix header checks

* Add color output to test runs
2021-02-08 15:26:01 -08:00
Carl Lundin
a78cb45d12
Minor changes to wolfSSL MQTT demo files (#493)
* Clean up demo config for wolfSSL mutual auth. 
* Add comment about picking the correct ROOT CA.
* uncrustify using_wolfSSL.c and some other code style changes.
* Apply suggestions from code review

Co-authored-by: Archit Aggarwal <architag@amazon.com>
2021-02-04 16:17:34 -08:00
TakayukiMatsuo
dfdf2ddf1f
Add MQTT_Mutual_Auth_wolfSSL demo (#464)
Add a demo that shows MQTT over TLS mutual authentication connection and communication with a broken when using wolfSSL as the TLS library.
2021-02-02 17:28:43 -08:00
David Chalco
7bbf951c71
Color printing + New checker message and emphasis (#492)
* Color printing + new message and emphasis

* omit requirements.txt from checks
2021-01-29 16:37:43 -08:00
Marc-Antoine Lalonde
52c9756f21
Call taskYIELD after calling FreeRTOS_send in Plaintext_FreeRTOS_send (#491)
FreeRTOS_send adds the packet to be sent to the IP task's queue for
later processing. The packet is sent later by the IP task. When
FreeRTOS is used in collaborative mode (i.e. configUSE_PREEMPTION is 0),
the Plaintext_FreeRTOS_send function returns without actually sending
the packet as the IP task never gets a chance to run.

The fact that Plaintext_FreeRTOS_send returns without actually sending
the packet causes an issue in the MQTT_Connect which expects the CONNECT
packet to be actually sent and waits for CONNACK.

This commit adds a taskYIELD call after calling FreeRTOS_send to ensure
that the IP task gets a chance to run and send the packet before the
Plaintext_FreeRTOS_send function returns.
2021-01-25 14:30:42 -08:00
David Chalco
748a701b91
add .gitattributes, normalize line endings (#490) 2021-01-15 08:38:14 -08:00
alfred gedeon
47d37354bc
Add Posix build checker to git actions (#489)
* Add Posix build checker to git actions

* fix checker path

* Fix script, checkout recursively

* fix build check script return value

* clone submodules as well with posix checker

* Add quotes to true for submodules

* Fix Submodules

* Remove pcap dependency from Makefile

* install libpcap for build check

* Add networking build to posix

* Separate network build from normal build

* add libpcap after building normal posix
2021-01-12 20:13:29 -08:00
alfred gedeon
36fd2c8d8c
Update Kernel submodule (#488) 2021-01-09 14:54:47 -08:00
alfred gedeon
3a7da90c4f
Qemu Mps2 network interrupt (#487)
* Enable netwrork nterrupt handling for Qemu MPS2

* Fix interrupt priority

Co-authored-by: Cobus van Eeden <35851496+cobusve@users.noreply.github.com>
2021-01-04 11:08:47 -08:00
Cobus van Eeden
3781cd9224
Add build dependency (#486) 2020-12-24 09:39:54 -08:00
Cobus van Eeden
68a500bca3
Initial vscode debug configuration (#485) 2020-12-23 19:55:09 -08:00
alfred gedeon
1c99d9f200
Prevent optimization in reset handler for QEMU MPS2 (#484) 2020-12-22 22:39:33 -08:00
Cobus van Eeden
28548e06fe
Update Readme.md 2020-12-20 17:29:32 -08:00
David Chalco
0527a2a02a
AutoRelease + Header Checker Upgrades (#482)
* Initial version where all deps are pylibs
* mechanism for undoing an autorelease
* misc refactor touchups
* +mechanism to baseline older commit into detached HEAD tag
* decouple kernel check configs + misc refactor improvements
* improved compatibility with git action
* Get pushes working in git action with release
* Fix header-check issue when same deletion occurs in parallel
* Add help message in case check fails
* Address PR feedback
2020-12-20 17:03:37 -08:00
Alfred Gedeon
1f9389c7c4 Fix: Qemu MPS2 Demo build failure 2020-12-20 17:02:32 -08:00
alfred gedeon
208b260f98
Add Full Demo to Qemu mps2 (#481)
* Add Full Demo to Qemu with MPS2

* Increase full demo heap memory

* Add Full Demo to Qemu MPS2

* Fix headers

* Fix header FreeRTOS version

* Remove commented line

* Remove commented line

* Fix header checker version, and corresponding files

* Fix checker version number requirements
2020-12-17 13:05:36 -08:00
Joseph Julicher
398fa1e8a9
Update README.md 2020-12-15 12:20:25 -07:00
Joseph Julicher
da9b9a800d [AUTO][RELEASE]: Bump file header version to "202012.00" 2020-12-15 11:50:37 -07:00
Joseph Julicher
45ba920ad0 [AUTO][RELEASE]: Bump submodules per manifest.yml for V202012.00 2020-12-15 10:22:10 -07:00
Joseph Julicher
2e2ba99a74 [AUTO][RELEASE]: Bump file header version to "202012.00" 2020-12-15 10:20:29 -07:00
Joseph Julicher
1e105be7a4
Update manifest.yml 2020-12-15 10:02:29 -07:00
Joseph Julicher
b8c758b2fe
Update manifest.yml 2020-12-15 09:33:59 -07:00
Joseph Julicher
a34a62b885
Update manifest.yml 2020-12-15 09:21:28 -07:00
Joseph Julicher
66b75ba527
History and manifest updates (#480) 2020-12-15 08:42:06 -07:00
Cobus van Eeden
89c6fc6baf
Update FreeRTOS-Plus-TCP (#479) 2020-12-14 22:09:01 -07:00
Carl Lundin
4ec66eb364 Move mbedtls tag to v2.25.0 2020-12-14 20:52:09 -08:00
Carl Lundin
db18ff7d59 Fix pkcs11 demo build. 2020-12-14 20:52:09 -08:00
Sukhmani Minhas
f4591cec06
Stack fix (#475) 2020-12-14 19:10:03 -08:00
Carl Lundin
b035e0321f
Re-add missing license files caused by PR #471 and fix patches (#477)
* Re-add missing license files caused by PR #471.
* Fix proof patch.
2020-12-14 17:35:36 -08:00
Archit Gupta
bff2f04c5f
Update submodule pointers (#476) 2020-12-14 15:45:27 -08:00
Cobus van Eeden
1caa60d382
Move kernel submodule to latest (#474) 2020-12-13 18:47:18 -08:00
Oscar Michael Abrina
6155c025a2
Update submodules of CSDK libraries (#473) 2020-12-13 17:31:14 -08:00