3729 Commits

Author SHA1 Message Date
Kody Stribrny
592732b4d8 Update +TCP submodule to committed header fix (#1399)
This was last updated to point to a PR reference.
This submodule needs to be updated to point to the
comitted commit.
2026-07-22 15:19:15 -07:00
Kody Stribrny
602e1e76be Expand tests to account for queue use assertion (#1423)
Unit tests need to update now that the queue
asserts if in use during a deletion call.
Updated existing mutex test which left a queue
with a user during cleanup.
2026-07-22 11:21:55 -07:00
Old-Ding
6f81e4ecb1 fix: parse TCP echo IPv4 address into IPv4 field
Store the parsed IPv4 echo server address in the IPv4 union member instead of writing it into the IPv6 byte array.

Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>
2026-07-15 13:37:00 -07:00
ARYA MGC
0e199e6d06 Fix: strncpy() may leave pcWriteBuffer non-null-terminated in FreeRTOS_CLI.c (#1422) 2026-07-15 09:35:29 -07:00
Old-Ding
c73a397a41 CBMC: Escape Python regex strings (#1420)
Python warns about invalid escape sequences in the CBMC Makefile generation helpers. Use raw regex strings and escape the Windows path example so the parsed AST stays unchanged while removing the warnings.

Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>
Co-authored-by: Old-Ding <ai.neo.ae86@gmail.com>
2026-07-09 15:08:00 -07:00
Anubhav Rawal
de7decac1a Add xTimerDelete strippable pattern to event_groups and smp CMock configs (#1421)
This is in accordance to fix the failure at https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/1412
2026-07-08 17:17:26 -07:00
Srikanth Patchava
97878317f2 fix: replace bare except with except Exception in mpfs_configuration_generator.py (#1412)
Bare except clauses catch SystemExit, KeyboardInterrupt, and
GeneratorExit which is almost never intended. Using except Exception
follows Python best practices (PEP 8).

Co-authored-by: Srikanth Patchava <srpatcha@users.noreply.github.com>
Co-authored-by: Aniruddha Kanhere <kanherea@amazon.com>
2026-06-19 14:44:58 -07:00
Aniruddha Kanhere
8102d351eb CI: locate Visual Studio via vswhere instead of hardcoded Enterprise path (#1413)
The 'Install Glib' step in the Windows Simulator demo jobs (corePKCS11,
core libraries, FreeRTOS+TCP) hardcoded the VS 2022 *Enterprise* path to
Launch-VsDevShell.ps1. The GitHub windows-latest runner image no longer
provides Visual Studio under that edition path, so the step fails with
'Launch-VsDevShell.ps1 ... is not recognized' and all three WinSim demo
jobs error out.

Use vswhere.exe (which lives at a fixed, edition-independent location) to
discover the VS installation path at runtime, then invoke the located
Launch-VsDevShell.ps1.
2026-06-19 14:29:16 -07:00
Anand Kumar
f60e36e45d Fix: Replace size_t with uint32_t in TaskNotify*.c for 16-bit device support (#1401) 2026-06-11 23:21:38 -07:00
Aniruddha Joshi
b72aef2d31 Fix undefined behavior in mbedTLS transport log format specifiers (#1406)
* Fix undefined behavior in mbedTLS transport log statements

* pNetworkContext now explicitly cast to void pointer

* Delete personal fil
2026-04-27 14:13:58 -07:00
Abhinav
e6af9f22e5 fix: add missing xSemaphoreGive and fix formatting in console.c (#1400)
In FreeRTOS_Plus_TCP_Echo_Posix/console.c:
- Add missing xSemaphoreGive() call in console_print() to prevent
  mutex starvation after vprintf completes
- Fix uncrustify formatting: indent preprocessor directives (#if/#else/#endif),
  add space between #if and condition, remove space in empty xSemaphoreCreateMutex()
2026-04-23 23:52:43 +00:00
Christian Jensen
1495a812e4 Added timeout to SSL handshake in transport_mbedtls.c (#1405)
* Added timeout to SSL handshake in transport_mbedtls.c

---------

Co-authored-by: Aniruddha Kanhere <kanherea@amazon.com>
2026-04-23 20:16:18 +00:00
Aniruddha Kanhere
675335bf6a Update demos to use MQTTv5 APIs and code (#1398)
* Update coreMQTT to v5.0.0 and migrate demos to MQTT v5 API
- Update coreMQTT submodule to v5.0.0 release
* Update Agent module
* Update coreMQTT-Agent to point to latest commit
2026-04-22 20:20:23 +00:00
Kody Stribrny
99cf475718 Update community and partner supported demos (#1403)
Update the community and partner
demos to the latest available commits.
2026-04-17 12:57:24 -07:00
Kody Stribrny
b5e17ae32f Update the Kernel and TCP submodule, fix build failures (#1395)
* Update kernel submodule to latest
* Update TCP to v4.4.0+build fix
* Add windows header to fix winsim logger, win trace simulator, reliance edge + CLI win sim demo
* Fix TCP-UDP mode win sim demo
2026-03-16 13:47:01 -07:00
Kody Stribrny
862f6bf951 Fix spelling error (#1396) 2026-03-04 08:35:22 -08:00
okapui
827044f804 Include Content-Length in 404 response (#1393) 2026-02-23 10:20:19 -08:00
okapui
ff5a96c501 Fix timeout type from BaseType_t to TickType_t (#1392)
Fixed a bug where the timeout value was not reflected correctly in FreeRTOS_TCP_Server when TickType_t was set to 64-bit.
2026-02-12 14:19:56 -08:00
Florian La Roche
30b61e5503 remove stray semicolons
Remove stray semicolons from demo code.

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
2026-01-29 17:25:55 -08:00
xuan97z1
e83f1402d5 Fix Fleet Provisioning demo flow issues (#1385)
* Fix Fleet Provisioning demo flow issues

Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com>

* Fix CI-check failures

Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com>

---------

Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com>
2026-01-29 16:38:44 -08:00
xuan97z1
81a6503dee Fix wrong condition in mqtt_pkcs11_demo_helpers.c (#1390)
* Fix Fleet Provisioning demo flow issues

Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com>

* Fix CI-check failures

Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com>

* Fix wrong condition in mqtt_demo_helpers.c

Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com>

* Revert unrelated change in Fleet Provisioning

---------

Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com>
2026-01-22 15:38:16 -08:00
Kody Stribrny
22d02e9fe4 Add unit test coverage for vTaskPriorityDisinheritAfterTimeout (#1382)
vTaskPriorityDisinheritAfterTimeout has been tweaked to reset
the original priority upon entry. This change
modifies unit tests to verify this
2026-01-01 00:25:55 +00:00
Chintan0801
4879cfd208 docs: add beginner-friendly FreeRTOS overview (#1381)
* docs: add beginner-friendly FreeRTOS overview

* docs: direct users to freertos.org for documentation

Updates README to remove inline beginner explanations and instead direct users to the official FreeRTOS website for comprehensive documentation.
2025-12-31 12:41:48 -08:00
Hongjuan Jiang
df34d1f9a1 Demo: allow overriding toolchain prefix in RISC-V QEMU virt GCC demo (#1380) 2025-12-22 11:02:44 +05:30
Gaurav-Aggarwal-AWS
5424d9d36a Downgrade return-mismatch error to warning (#1374)
portYIELD_FROM_ISR(x) is defined as 'return x' in the Windows port which
causes compilation failures in the WIN32-MinGW demo when using GCC 14.

Failure: https://github.com/FreeRTOS/FreeRTOS-Kernel/actions/runs/18272553628/job/52017559140?pr=1317

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
2025-10-06 17:24:02 +05:30
Florian La Roche
bcef9d066a Demo code: add static modifiers (#1373)
Add "static" modifier to demo code to reduce global vars.

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
2025-09-17 10:57:53 +05:30
Florian La Roche
62195136d1 Demo/Common: fix divide by zero possibility and non-used return values (#1370)
* Demo/Common: fix divide by zero possibility and non-used return values

- In TimerDemo.c fix possible divide by zero in
  "xMaxBlockTimeUsedByTheseTests / xCycleFrequency".
- Move this code in TimerDemo.c into if-clause where it is
  actually used.
- In Minimal/StreamBufferDemo.c and Minimal/TaskNotify.c avoid
  unused return values.

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
Co-authored-by: Kody Stribrny <kstribrn@amazon.com>
2025-08-29 11:54:32 -07:00
Kovacsics Robert
e933faf3ee Fix build of & add CMake to LM3S Qemu Demo (#1368)
* Demo/CORTEX_LM3S6965_GCC_QEMU: Trim trailing spaces & lines

* Demo/CORTEX_LM3S6965_GCC_QEMU: Fix Eclipse build 1/2 (examples)

It was trying to build the examples, which pulled in symbols such as
`_write` that are not implemented.

* Demo/CORTEX_LM3S6965_GCC_QEMU: Fix Eclipse build 1/2 (discard .ARM.exidx)

Somewhere along the line now there is the .ARM.exidx section in the
files, we don't use exceptions so can just discard it.

* Demo/CORTEX_LM3S6965_GCC_QEMU: Add CMake

* Debug/CORTEX_LM3S6965_GCC_QEMU: Fix Qemu startup

It was tripping on port.c

        /* Check that the maximum system call priority is nonzero after
         * accounting for the number of priority bits supported by the
         * hardware. A priority of 0 is invalid because setting the BASEPRI
         * register to 0 unmasks all interrupts, and interrupts with priority 0
         * cannot be masked using BASEPRI.
         * See https://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */
        configASSERT( ucMaxSysCallPriority );

Inspecting the value ucMaxPriorityValue gave 0xE0, and setting it to
0xE0 complains about overflow in
FreeRTOS/Demo/CORTEX_LM3S6965_GCC_QEMU/LocalDemoFiles/IntQueueTimer.c:57

    /* Shift left 5 as only the top 3 bits are implemented. */
    IntPrioritySet( INT_TIMER2A, configMAX_SYSCALL_INTERRUPT_PRIORITY + ( 1 << 5 ) );

* Add qemu options to run in headless mode

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>

---------

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
2025-08-15 12:48:14 +05:30
Florian La Roche
1aa47857a0 Various Qemu Cortex M3 ports now support picolibc (#1364)
* Various Qemu Cortex M3 ports now support picolibc

Allow various Qemu Cortex M3 ports to compile against
picolibc. Also support "-flto" to work correctly.
Tested with picolibc in current Debian 13.
Just use "PICOLIBC=1 make" to switch over from default newlib.

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>

* Add ffreestanding

Signed-off-by: Ubuntu <ubuntu@ip-172-31-15-241.ap-south-1.compute.internal>

* Fix formatting check

Signed-off-by: Ubuntu <ubuntu@ip-172-31-15-241.ap-south-1.compute.internal>

---------

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
Signed-off-by: Ubuntu <ubuntu@ip-172-31-15-241.ap-south-1.compute.internal>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-15-241.ap-south-1.compute.internal>
2025-08-13 20:15:54 +05:30
Dinh Van Nam
51467d89e0 Update code to correct function pointer casting (#1366)
* Update code to correct function pointer casting

Signed-off-by: Dinh Van Nam <vannam.dinh.xt@renesas.com>

* Update function signature

Signed-off-by: Dinh Van Nam <vannam.dinh.xt@renesas.com>

* Continue updating the function signature and revert a variable

Signed-off-by: Dinh Van Nam <vannam.dinh.xt@renesas.com>

* Fix format

Signed-off-by: Dinh Van Nam <vannam.dinh.xt@renesas.com>

* Fix CI check

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>

* Fix CI checks

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>

---------

Signed-off-by: Dinh Van Nam <vannam.dinh.xt@renesas.com>
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
2025-08-05 22:09:20 +08:00
Aniruddha Kanhere
5cf13754a5 Update auto-release.yml 2025-07-09 13:15:21 -07:00
AniruddhaKanhere
b67ef3e3e2 Add artifact backup action 2025-07-09 13:15:21 -07:00
Florian La Roche
e0aa5eac74 Fix optimization bug and cleanup (#1363)
- Compiling Demo/Common/Minimal/TimerDemo.c with "gcc -flto" breaks the
  tests, so add "volatile" modifier to "ucOneShotTimerCounter" to fix
  this.
- In Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/main_networking.c print the
  network configuration even more visible.
- In MessageBufferDemo.c and Demo/Posix_GCC/main_full.c fix compiler
  warnings from "gcc -Wwrite-strings" by adding a const modifier.

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
2025-07-08 11:05:01 +05:30
Florian La Roche
722d17b13a POSIX Demo: clang warnings cleanup (#1359)
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 <Florian.LaRoche@gmail.com>
2025-06-19 14:02:36 +05:30
Dan Petrisko
9b5e277a6f update alignment in RISC-V-spike-htif_GCC (#1357) 2025-06-13 12:42:47 +05:30
Florian La Roche
d1136b4857 Demo/CORTEX_MPS2_QEMU_IAR_GCC: fix warnings (#1352)
* 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 <Florian.LaRoche@gmail.com>

* Increase heap size for tracing on

---------

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
2025-06-11 20:41:51 +05:30
Florian La Roche
1fb5ee4dad Demo/Common/Minimal/StreamBufferInterrupt.c: more strict result checking (#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 <Florian.LaRoche@gmail.com>
2025-06-11 12:47:56 +05:30
Rahul Kar
c4da4ef1a7 Update download locations to outside repository content (#1355)
Update curl command to download in a non user accessible folder
2025-06-05 23:21:31 +05:30
Florian La Roche
67bc5a930d Demo/Posix_GCC: fix compiler flags and compiler warnings (#1351)
- 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 <Florian.LaRoche@gmail.com>
Co-authored-by: Tony Josi <tonyjosi@amazon.com>
2025-06-04 11:15:09 +08:00
Florian La Roche
9d9bbd0e61 Demo/CORTEX_MPU_M3_MPS2_QEMU_GCC: support "gcc -flto" and fixes (#1353)
* 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 <Florian.LaRoche@gmail.com>
2025-05-26 15:47:12 +05:30
Archit Gupta
9b50dc160b Remove formatting bot workflow (#1348) 2025-05-09 14:09:20 -07:00
Florian La Roche
1ca9fd442f clean up warnings from "gcc -Wconversion" (#1344)
* clean up warnings from "gcc -Wconversion"

clean up warnings from "gcc -Wconversion"

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>

* Fix formatting

---------

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
Co-authored-by: Rahul Kar <karahulx@amazon.com>
2025-04-29 21:24:39 +05:30
Florian La Roche
0d2a5ae534 FreeRTOS_Plus_TCP_Echo_Qemu_mps2: fix compile with "gcc -flto" (#1343)
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 <Florian.LaRoche@gmail.com>
2025-04-28 13:52:16 -07:00
Rahul Kar
0cbfaab47d Update network_transport files based on MbedTLSv3.6.3 (#1340)
Update network_transport files based on MbedTLSv3.6.3
2025-04-21 20:21:08 +05:30
Florian La Roche
1325aaaad6 FreeRTOS_Plus_TCP_Echo_Qemu_mps2: cleanup (#1336)
* 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 <Florian.LaRoche@gmail.com>
2025-04-21 19:13:02 +05:30
Luca Mannella
9165944664 Align stack size to 16-byte boundary by changing __stack_size from 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.​
2025-04-08 11:24:31 +05:30
Jonathan Cubides
2625a12c04 Update demo RISCV qemu demo to check the vector context save (#1334)
Demo: RISC-V_RV32_QEMU_VIRT_GCC: Add a test for vector registers
2025-03-31 21:08:39 +05:30
Jonathan Cubides
881305dcb8 Update RV32 qemu Demo to support RVA23 (#1329)
* 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
2025-03-10 17:06:13 +05:30
Florian La Roche
2abeb3e52f Demo/CORTEX_MPS2_QEMU_IAR_GCC: increase min stack size from 80 to 88 (#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 <Florian.LaRoche@gmail.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
2025-03-07 00:14:29 +05:30
Dakshit Babbar
fda472bbd6 Update the coreMQTT submodule pointer (#1331)
* 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 <118818625+kar-rahul-aws@users.noreply.github.com>
2025-03-06 11:08:38 +05:30