Skip to content

[pull] main from FreeRTOS:main #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 179 commits into
base: main
Choose a base branch
from
Open

[pull] main from FreeRTOS:main #4

wants to merge 179 commits into from

Conversation

pull[bot]
Copy link

@pull pull bot commented Oct 17, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added the ⤵️ pull label Oct 17, 2023
chinglee-iot and others added 27 commits October 18, 2023 15:03
* Add uxTaskBasePriorityGet and uxTaskBasePriorityGetFromISR unit test
* Add unit test for FreeRTOS SMP to verify SMP scheduler logic in tasks.c which is enclosed by `configNUMBER_OF_CORES > 1`.

---------

Co-authored-by: Joshua Zarr <[email protected]>
Co-authored-by: Anubhav Rawal <[email protected]>
Co-authored-by: Alfred Gedeon <[email protected]>
Co-authored-by: Adam Scislowicz <[email protected]>
Co-authored-by: jannusi <[email protected]>
Co-authored-by: Krishna Vamsi Tallapaneni <[email protected]>
Co-authored-by: Kody Stribrny <[email protected]>
Co-authored-by: kar-rahul-aws <[email protected]>
This allows the qemu-mps2 demo to use DHCP which requires ethernet mac
functionality prior to when vApplicationIPNetworkEventHook or
vApplicationIPNetworkEventHook_Multi are called.
* Remove deprecated ipconfigRAND32

* Uncrustify: triggered by comment.

* Update

* Check for return value

* Uncrustify: triggered by comment.

* Update

---------

Co-authored-by: GitHub Action <[email protected]>
* Add Cmock test case for updates in vTaskResume API introduced in Kernel PR#865.

* Update Kernel submodule pointer

---------

Co-authored-by: Rahul Kar <[email protected]>
* Fix one typical misusage of CMock.

CMock has three policies when dealing with pointer:
1. compare_ptr : compare the pointer itself;
2. compare_data : compare the data which is pointed by pointer;
3. smart : compare the pointer itself, or compare the data;
By default, CMock use compare_data policy.

Most test cases in FreeRTOS need to compare the pointer itself,
and we haven't use CMock properly.
For example, one test case of vTaskResume is wrong, because current
CMock compares the data pointed by pointer, so the error didn't exposed.

There are so many misusage need to fix, it will take a lot of work.
I'm here to fix one typical misusage first.

* Try to fix formatting syntax.
* Add test cases to cover vApplicationGetIdleTaskMemory and 
  vApplicationGetPassiveIdleTaskMemory for prvCreateIdleTasks
* Fix comilation problem with unit test for passive idle task memory
* Add back mtCOVERAGE_TEST_MARKER in stream_buffer unit test
* Swap the device defender demo to Win32 instead of x86
* Swap the Jobs_Windows_Simulator Demo to have Win32 instead of x86
* Swap the Device_Shadow_Windows_Simulator Demo to have Win32 instead of x86

---------
1. Change CMock policy of pointer from smart to compare_ptr;
2. Fix errors in test cases found by CMock.
* Add unit test for xTaskGetIdleTaskHandleForCore()

---------

Co-authored-by: Rahul Kar <[email protected]>
* Update FreeRTOS.h for portTASK_SWITCH_HOOK

---------

Co-authored-by: GitHub Action <[email protected]>
* Fix SMP unit test for switch hook
Update MPU Demos for Kernel V10.6.2
Disable handler checking in XMC1000 demo
* Update coreHTTP S3 Download Instructions

* Revert to 85d5319

* Update comment for S3 Root CA in Upload and Download Multithreaded demos

* Wrap changes to 80 characters

* Uncrustify: triggered by comment.

* Run Github Actions.

* Fix broken section link in README

* Wrap README text on 90 characters

* Uncrustify: triggered by comment.

* Run Github Actions

---------

Co-authored-by: GitHub Action <[email protected]>
* Bump up to MBed-TLS V3.5.1, make changes to Visual Studio Projects to account for this.
* Update MBedTLS Transport files to call psa_crypto_init() if the MBEDTLS_PSA_CRYPTO_C is set.
* Add WIN32_LEAN_AND_MEAN to the corePKCS11_MQTT_Mutual_Auth_Windows_Simulator demo. Add in a check for MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET when making a TLS handshake.
* Change transport interface files from using void * to mbedtls_pk_context * instead per changes in the MbedTLS API.
* Changes to Fleet Provisioning Demo and Demo Setup to use ECDSA keys
* Remove non-32 bit configs from various VisualStudio Projects. Enforce all projects using WIN32_LEAN_AND_MEAN as well as winsock2.h
* Update RISC-V QEMU project for GCC
* Exclude examples in FreeRTOS-Kernel from build
* Update vega and microsemi risc-v eclipse project
* Update polarfire eclipse project
sudeep-mohanty and others added 30 commits December 19, 2024 22:32
This commit updates the xTaskGetIdleTaskHandle unit test as per the idle
task naming logic.

Signed-off-by: Sudeep Mohanty <[email protected]>
Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
Fix coverage tests for Kernel PR 1203

PR Link - FreeRTOS/FreeRTOS-Kernel#1203.

Signed-off-by: Gaurav Aggarwal <[email protected]>
Update FreeRTOS+TCP to latest version V4.3.1
Update FreeRTOS-Kernel submodule pointer

Signed-off-by: Gaurav Aggarwal <[email protected]>
Signed-off-by: Gaurav Aggarwal <[email protected]>
* * Added TraceRecorder demo for Percepio View in CORTEX_MPS2_QEMU_IAR_GCC (only gcc supported at the moment)

* * Added TraceRecorder demo instructions in readme.md.

* * Updated FreeRTOS-Plus-Trace pointer

* * Using FreeRTOS-Plus-Trace submodule (TraceRecorder) instead of a static TraceRecorder copy.
Add tests to cover xQueueCreateSetStatic

This API was recently added in the following PR:
FreeRTOS/FreeRTOS-Kernel#1228

Signed-off-by: Gaurav Aggarwal <[email protected]>
…demo (#1325)

* * Added TraceRecorder also in IAR project for demo CORTEX_MPS2_QEMU_IAR_GCC.

* * Added TraceRecorder also in IAR project for demo CORTEX_MPS2_QEMU_IAR_GCC.
* Update the coreMQTT submodule pointer

* [coreMQTT Version Update] Include core_mqtt_config.h in mqtt helper files

* Update the coreMQTT-Agent Submodule pointer to the updated fork branch

* Update manifest.yml file

* Add readme for OTA demos transitioning

* Update the pointer to coreMQTT-Agent to the upstream main and update manifest file

* Update manifest file

---------

Co-authored-by: Rahul Kar <[email protected]>
…1332)

Compiling this demo with picolibc 1.8.9 (as packaged with Debian trixie)
results in a stack overflow. Increasing the minimal stack size from
80 to 88 bytes resolves this. (Debian trixie arm crosscompiler defaults
to compile/link against picolibc and not newlib anymore.)

Signed-off-by: Florian La Roche <[email protected]>
Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
* Demo: RISC-V_RV32_QEMU_VIRT_GCC: Increase the memory for RVA23 compilation

* Demo: RISC-V_RV32_QEMU_VIRT_GCC: Update the regtest to include fpu registers

* Demo: RISC-V_RV32_QEMU_VIRT_GCC: Fix small issues for 64-bit configs

* Demo: RISC-V_RV32_QEMU_VIRT_GCC: Enable FPU unit

* Demo: RISC-V_RV32_QEMU_VIRT_GCC: Enable compilation for RVA23 platforms

* Demo: RISC-V_RV32_QEMU_VIRT_GCC: Fix copyright related CI issues

* Demo: RISC-V_RV32_QEMU_VIRT_GCC: Update submodule manifest

* Demo: RISC-V_RV32_QEMU_VIRT_GCC: Update a few typos and left overs

* Demo: RISC-V_RV32_QEMU_VIRT_GCC: Apply @aggarg's sugestions

* Update pointer to Freertos-Kernel
Demo: RISC-V_RV32_QEMU_VIRT_GCC: Add a test for vector registers
…350 to 352​ (#1335)

This commit updates the __stack_size definition in the
linker flags, changing its value from 350 to 352. This
change ensures that the stack size is a multiple of 16,
aligning the stack pointer (sp) to a 16-byte boundary
as required by the system architecture.​
* FreeRTOS_Plus_TCP_Echo_Qemu_mps2: cleanup

FreeRTOS_Plus_TCP_Echo_Qemu_mps2:
- Add missing include for header files.
- Remove redundant function declarations.
- Add "static" modifier if possible.
- No need to use "weak" for EthernetISR().

Signed-off-by: Florian La Roche <[email protected]>
Update network_transport files based on MbedTLSv3.6.3
FreeRTOS_Plus_TCP_Echo_Qemu_mps2: fix compile with "gcc -flto"
by adding "__attribute__( used )" to isr_vector and _fstat().

Signed-off-by: Florian La Roche <[email protected]>
* clean up warnings from "gcc -Wconversion"

clean up warnings from "gcc -Wconversion"

Signed-off-by: Florian La Roche <[email protected]>

* Fix formatting

---------

Signed-off-by: Florian La Roche <[email protected]>
Co-authored-by: Rahul Kar <[email protected]>
* Fix compiler warning "gcc -Wmissing-prototypes" in startup.c.
* For "gcc -flto" fix duplicate labels in asm (startup.c) and mark
  some functions as "used" in startup.c and syscalls.c.
* Fix "gcc -Wredundant-decls" in main.c.

Signed-off-by: Florian La Roche <[email protected]>
- Change CMakeLists.txt to set the C compiler flags instead
  of the C++ compiler flags.
- Change to compiler warnings from "gcc -Wconversion" in
  main_full.c.

Signed-off-by: Florian La Roche <[email protected]>
Co-authored-by: Tony Josi <[email protected]>
Update curl command to download in a non user accessible folder
…ing (#1356)

From looking at the code, I think this more strict error checking
was intended in xIsInterruptStreamBufferDemoStillRunning().
If not, then the else part and var could be completely removed
as dead code.

Signed-off-by: Florian La Roche <[email protected]>
* Demo/CORTEX_MPS2_QEMU_IAR_GCC: fix warnings

* fix compiler warning "gcc -Wmissing-prototypes" in startup_gcc.c
* fix compiler warning "gcc -Wredundant-decls" in main.c
* change stack size from 88 to 128
* change heap from 60 to 64 Kbyte

Signed-off-by: Florian La Roche <[email protected]>

* Increase heap size for tracing on

---------

Signed-off-by: Florian La Roche <[email protected]>
Co-authored-by: Rahul Kar <[email protected]>
Cleanup for clang compiler warnings:
- add "#include" to proper header files
- add "static" modifier to some vars
- if tracing is disabled, do not compile helper functions
- remove unused macro "mainFLASH_TASK_PRIORITY"

Signed-off-by: Florian La Roche <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.