Commit graph

1103 commits

Author SHA1 Message Date
alfred gedeon
ae92d8c6ee
Add uncrustify github workflow (#659)
* Add uncrustify github workflow

* Fix exclusion pattern

* fix find expression

* exclude uncrustify files

* Uncrustify common demo and test files

* exlude white space checking files

* Fix EOL whitespace checker

* Remove whitespaces from EOL

* Fix space at EOL

* Fix find spaces at EOL

Co-authored-by: Archit Aggarwal <architag@amazon.com>
2021-07-22 14:23:48 -07:00
Gaurav-Aggarwal-AWS
e2b1d46340
Update the template readme file (#658)
Update instructions to use repositories instead of directories.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
2021-07-20 15:13:54 -07:00
Gaurav-Aggarwal-AWS
2fedeff332
Update BSP and SDK for HiFive board (#645)
* Update BSP and SDK for HiFive board

This commit also adds demo start and success/failure output messages.
2021-07-15 18:40:22 -07:00
alfred gedeon
e38c279b22
Fix: qemu mps2 demo bug (#649) 2021-07-15 14:32:37 -07:00
alfred gedeon
693a9994b0
Add static to a variable in Qemu mps2 demo (#646) 2021-07-14 10:05:22 -07:00
alfred gedeon
d663850e1b
Demo: Exit on Error with Qemu MPS2 Full Demo (#642) 2021-07-13 21:13:31 -07:00
alfred gedeon
141070a2eb
Demo: Run uncrustify on quemu mps2 demo (#643) 2021-07-12 18:04:36 -07:00
Graham Sanderson
25e73f2e75
RP2040 Demo (#618)
* Fix code to match comment; idle prioriry task should not block to yield, as then it will hardly run at all (bug affects SMP tests)

* Add RP2040 Demo - can be used for 'main' or 'smp' branch of FreeRTOS_Kernel

* move to latest main/ of FreeRTOS-Kernel

* move RP2040 demos into Community-Supported

* Update whitespace issue

Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>

* Add SMP to lexicon

Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
2021-07-09 09:32:42 -07:00
Gaurav-Aggarwal-AWS
bec88bfe41
Update the size of privileged data section (#639)
This is needed because FreeRTOS heap is now placed in the privileged
data section.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
2021-07-07 13:14:40 -07:00
Shivangi
d1c84a324a
Template Project for existing FreeRTOS port (#637)
* Partner demo changes

* Adding template folder

* readme addition to partner supported folder

* updating license

Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
2021-07-01 12:36:31 -07:00
Alfred Gedeon
a14f136596 Doc: Add new lines 2021-06-28 17:07:24 -07:00
Alfred Gedeon
449ad960e2 Doc: Improve debugging doc with Qemu demo 2021-06-28 17:07:24 -07:00
thomas-coding
e66c4a93ee
Fix data copy address error (#632)
* Fix data copy address error

Co-authored-by: Jinping Wu <jinping.wu@verisilicon.com>
2021-06-28 14:19:26 -07:00
victorfdezc
4c4a0ab755
Fix Bug from Issue #565 (#629)
Co-authored-by: Victor <vfernandez@maccorobotics.com>
Co-authored-by: Paul Bartell <pbartell@amazon.com>
Co-authored-by: Shivangi <66447522+gshvang@users.noreply.github.com>
2021-06-21 17:39:10 -07:00
Archit Gupta
5e596c2e32
Add new submodules for port demo contribution (#628)
Adds two new submodules for community and partner supported ports demos.
2021-06-21 10:42:23 -07:00
Alfred Gedeon
6881522370 Demo: fix trace vs coverage options, add option no trace on enter 2021-06-09 16:08:24 -07:00
Dan Good
b6624fa44d
Remove or rework assumptions in queue proofs (#603)
This commit is paired with another to queue.c in the kernel.  To
accomodate changes in newer versions of CBMC, the
--pointer-overflow-check is removed.
2021-06-04 15:42:14 -04:00
Alfred Gedeon
9904e571f9 Remove extra Makefile print 2021-06-02 11:00:10 -07:00
Alfred Gedeon
b0e693e88b Demo: exit 1 on error exit 2 on Ctrl_C 2021-06-02 11:00:10 -07:00
Alfred Gedeon
e84fc19966 Make full demo exit on error 2021-06-02 11:00:10 -07:00
Dan Good
f37753da06
Update unit tests to match changes in queue.c (#614) 2021-06-01 15:33:43 -04:00
Alfred Gedeon
0c0333985b Run unctustify, fix some Readme wording 2021-05-27 20:07:54 -07:00
Alfred Gedeon
a2029c781c Enable profiling for the linux port 2021-05-27 20:07:54 -07:00
alfred gedeon
5136a30399
Test: Mask unit test warning (#592)
* Test: Mask unit test warning

* Fix Unit Test Bug

* Unit Test: Add setters and getters for xMaskAssertAndAbort

* Fix Warning

* Update Makefile
2021-05-27 16:26:31 -07:00
alfred gedeon
3c4049c8f7
Update kernel HEAD (#611) 2021-05-27 14:37:41 -07:00
Joseph Julicher
5d3ec8031f
deprecating the mcf5235 demos (#609) 2021-05-26 16:37:01 -07:00
Carl Lundin
4ad4c7679e
Clean up commits. (#596) 2021-05-17 09:42:53 -07:00
Aniruddha Kanhere
1bc759d413
Aws only files spell check (#593)
* Added spell check

* All words

* Add a missing word

* Fix header checks

* Fix header checks v1

* Fix header check v2

* Updated freertos link in header

* Fixed afr link in the header

* Fix last of header checks

* Update the spell check script to check amazon licensed files only

* Fixed paths and added comments

* Try with modified repo

* Add inplace substitute option to sed

* Use official repo as the spell checker source

* Add vendor file to the ignored list

Co-authored-by: root <root@ip-172-31-5-28.us-west-2.compute.internal>
2021-05-13 16:07:56 -07:00
Archit Aggarwal
971a6e1d22
Merge FreeRTOS 202104.00 to main (#585) 2021-04-29 14:53:40 -07:00
RichardBarry
9f10725bee
Minor update to the UART write function in the IAR/QEMU/MPS2 demo (#535)
* Minor update to the UART write function in the IAR/QEMU/MPS2 demo project.  Now the function checks to ensure there is space in the Tx buffer before writing to the buffer - although this does not appear to be necessary in QEMU it is more correct.

* Update main.c

Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
2021-04-20 21:04:29 -07:00
Paul Bartell
7a695784bc
Add queue.c CMock unit test (#552)
* Disregard coverage data without a function_name field set

* Fix calling make on subdirectories

* Undefine FORTIFY_SOURCE when running without ENABLE_SANITIZERS

* Add queue and semaphore unit tests

* Update FreeRTOS-Kernel submodule revision
2021-04-20 15:45:52 -07:00
RichardBarry
53af0ec62e
Revert "Add test for timer start delayed past expiration (#557)" (#566)
This reverts commit 9c91199016.
2021-04-17 15:50:15 -07:00
Jeff Tenney
9c91199016
Add test for timer start delayed past expiration (#557)
Co-authored-by: Dan Good <49254594+dan4thewin@users.noreply.github.com>
Co-authored-by: RichardBarry <3073890+RichardBarry@users.noreply.github.com>
2021-04-17 15:02:47 -07:00
Archit Aggarwal
999e81e721
Bump submodules of Kernel and AWS libraries (#564) 2021-04-16 16:11:05 -07:00
Archit Aggarwal
cd75d5607f
Relocate History.txt and fix an typo (#558) 2021-04-13 16:52:26 -07:00
Jeff Tenney
f2bcfb3866
Add test for backlogged auto-reload timer (#553)
* Add test for backlogged auto-reset timer

Must call vTimerDemoIncludeBacklogTests() to activate.

* Fix little style issues

- Update to new header
- Add parentheses (style)
- Remove trailing space accidentally introduced

* Don't verify full clearing of backlog

The timer task should be free to process the stop request without a
specific requirement to work through the backlog of callbacks for the
stopped timer.  The timer task should be allowed to cancel the entire
backlog, part of it, or none of it.  In other words, once the
application sends the stop request, it should not depend on receiving
any more callbacks, even backlogged ones.

The only requirement here is that the timer stop as requested.

Co-authored-by: Joseph Julicher <jjulicher@mac.com>
Co-authored-by: Cobus van Eeden <35851496+cobusve@users.noreply.github.com>
2021-04-12 16:39:17 -07:00
Tim Newsome
c280f26c1b
Small RISC-V spike demo improvements (#554)
* Put XLEN into .o files.

Makes it easier to work on voth RV32 and RV64 binaries side-by-side.

* Let the debugger disable HTIF use.

* Makefile now links the binary at BASE_ADDRESS

I need this so I can easily generate the appropriate binaries for
riscv-tests/debug. Unfortunately there doesn't seem to be any good
mechanism to externally define values for lds files, so I'm running it
through the C preprocessor.

Co-authored-by: Joseph Julicher <jjulicher@mac.com>
2021-04-08 15:03:10 -07:00
Paul Bartell
595b05bce8 Fix spelling in stream_buffer_utest.c 2021-04-07 13:56:04 -07:00
Paul Bartell
58b1f9b27d Fix spelling in message_buffer_utest.c 2021-04-07 13:56:04 -07:00
Gaurav Aggarwal
308739464b Update test comments
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
(cherry picked from commit 44c66f1df24c9f9a26f218de1b6c1dd816f12a8b)
2021-04-07 13:56:04 -07:00
Paul Bartell
5c7f33fbfb Fix typo in message_buffer_utest.c 2021-04-07 13:56:04 -07:00
Paul Bartell
c82e6caa34 Remove imporper TEST_PROTECT usage from message_buffer_utest.c.
The way TEST_PROTECT is currently used in this test causes an infinite loop if the expected configASSERT failure does not occur.
2021-04-07 13:56:04 -07:00
Paul Bartell
68cb6142ae Remove improper TEST_PROTECT usage which results in an infinite loop when an expected configASSERT does not occur.
Replace TEST_PROTECT usage with CException library.

Fix test_xStreamBufferSend_zero_bytes test case logic (no assertion occurs in this case).
2021-04-07 13:56:04 -07:00
Carl Lundin
d0d633a524
Reintroduce quarantined CBMC test (#516)
This CBMC test would go over the memory limit of most hosts, causing the
kernel to kill the process. With larger memory capabilities, this can be
re-enabled.
2021-04-07 12:26:03 -07:00
Tim Newsome
3fee3ac61f
Add RISC-V demo for the spike simulator. (#532)
* Add RISC-V demo for the spike simulator.

* Figuring out what the header checker wants.

* Fix more headers.

* Ignore htif.c and htif.h for header checks.

These files are already stamped with BSD-3-Clause, which I'm not allowed
to remove. There are numerous other files with the same license in
FreeRTOS, so I assume this is fine.

* Use proxy syscalls for RV32.

Looks like spike won't be changed to make htif character writes work
propery for RV32.

This is now an even closer copy of the version in opensbi, which is
arguably strictly better.

* Support RV64 builds to use with spike.

OpenOCD does not currently support debugging 64-bit FreeRTOS, but now
that I have a target to test hopefully that will be remedied shortly.

* Tweak rv32 instructions.

This way you can have separate cross-tools installations that can
coexist side by side.

Co-authored-by: Joseph Julicher <jjulicher@mac.com>
2021-04-02 14:17:53 -07:00
Carl Lundin
aaece95529
Update Tasks.c CBMC Proofs to Latest Code (#547)
* Fix Tasks.c patch, line numbers were out of sync and patching was
broken.
* Add assumption to TaskCreate proof that a task's priority is less than
the configured max.

With the introduction of
9efe10b805
an assertion is added to ensure a new task's priority is less than the
confirmed max. The CBMC proof for TaskCreate needs to include this assumption
in order to not assert and fail. Since this is now enforced in the code
we can add an assumption to the proof that a task must be created with a
priority smaller than the configured max.
2021-04-02 14:17:26 -07:00
Paul Bartell
2e084538a8 Re-enable list, message_buffer, and stream_buffers unit tests 2021-04-01 10:52:03 -07:00
Ming Yue
fb0c517148
Add event_groups.c Unit Test (#536)
* Added event_groups.c Unit Test.

* Formatted and more comments.

* Formatted

* Split some test cases and add comment and coverage tag.

* Update test cases.

* Remove xEventGroupDelete Invalid Input test case, since the implementation does not handle this.
2021-04-01 01:57:42 -07:00
Paul Bartell
19271ddc8d Work around gcov json output bug
When gcov outputs into it's intermediate json format, sometimes it marks blocks as unexecuted but also sets an execution count != 0. In this case, the "count" field is correct, but the "unexecuted_block" field is incorrect.

When outputting lcov formatted coverage data in filtercov.py, only output a branch coverage data lines (BRDA) with a "-" for the "taken" field when both count==0 and unexecuted_block==true in the input gcov json intermediate file.
2021-03-31 13:28:45 -07:00
Ravishankar Bhagavandas
e39c34ba7e
Adding unit tests for stream buffer and message buffer (#528)
* Initial commit

* Add more stream buffer tests

* Adding message buffer tests

* Adding tests to cover config assert branches

Co-authored-by: alfred gedeon <28123637+alfred2g@users.noreply.github.com>
2021-03-30 12:56:02 -07:00