600 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
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
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
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
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
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
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
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
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
Johan Kraft
6d364f0b1f TraceRecorder demo added in CORTEX_MPS2_QEMU_IAR_GCC (#1320)
* * 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.
2025-01-23 10:11:33 +05:30
Tony Josi
365a47921f Update TCP Qemu echo demo port number macro naming in readme (#1306)
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
2024-12-27 10:21:02 +05:30
Tony Josi
7f748546a1 Fix FreeRTOS+TCP IPv6 demo with latest version of FreeRTOS+TCP (#1307) 2024-12-27 10:02:15 +05:30
Gaurav-Aggarwal-AWS
66de13ce1b Update FreeRTOS-Kernel submodule pointer (#1316)
Update FreeRTOS-Kernel submodule pointer

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
2024-12-26 10:57:39 +05:30
Tony Josi
a3c047d22f Update FreeRTOS+TCP to latest version V4.3.1 (#1305)
Update FreeRTOS+TCP to latest version V4.3.1
2024-12-23 16:38:33 +05:30
Bhoomika R S
6615f8026c Add readme.url for FreeRTOS-Plus demos (#1290)
* Add readme.url for demos

* Updated FreeRTOS+TCP Minimal Windows Simulator Demo's readMe
2024-11-04 18:10:47 +05:30
Dakshit Babbar
86d6312da0 [mainline update] Populate RSA key attributes in mbedtls context (#1288)
* Populate RSA key attributes in mbedtls context

* Fix formatting

---------

Co-authored-by: Rahul Kar <karahulx@amazon.com>
2024-10-21 10:22:15 +05:30
Rohit Madan
0e8d2bf66c Add readme.url for corePKCS11 Windows Simulator Demo (#1277)
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
2024-10-15 09:32:54 +05:30
Florian La Roche
d80937d050 Cortex M3 MPS2: modernize assembler syntax and also add .ltorg (#1268)
Cortex M3 MPS2: modernize assembler syntax and also add .ltorg

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
2024-09-25 16:09:47 +05:30
Rohit Madan
2067506cc1 Update User Mode Networking debug command for QEMU Demo (#1270) 2024-09-23 20:11:14 +05:30
Florian La Roche
9245b4aaac Cortex M3 MPS2: fix alignment warning from assembler (#1266)
* Cortex M3 MPS2: fix alignment warning from assembler

Fix assembler alignment warnings for Cortex M3 MPS2:
Warning: section does not have enough alignment to ensure safe PC-relative loads

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
2024-09-16 12:19:39 +05:30
Rahul Kar
1a82df09df Update ReadMe to add UserMode Networking (#1216)
Update ReadMe to add UserMode Networking
2024-08-21 13:41:43 +05:30
Rahul Kar
a004a21b13 Remove ipLOCAL_MAC_ADDRESS from demo files (#1244)
* Remove ipLOCAL_MAC_ADDRESS from demo files

* Add return variable for IP_Init fucntions
2024-08-14 11:56:38 +05:30
Rahul Kar
ba4f37f3bb Fix compilation issue in WinSim Demo (#1232)
* Fix compilation issue

* Fix formatting

* Uncrustify: triggered by comment.

* Remove commented line

---------

Co-authored-by: GitHub Action <action@github.com>
2024-06-21 16:51:45 +05:30
Florian La Roche
a33d259b0c FreeRTOS_Plus_TCP_Echo_Qemu_mps2: remove unused defines/functions (#1229)
For FreeRTOS_Plus_TCP_Echo_Qemu_mps2:
- remove unused defines
- disable unused functions
- typo: ipconfigUSE_DNS -> ipconfigUSE_DHCP

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
Co-authored-by: Anubhav Rawal <113639451+rawalexe@users.noreply.github.com>
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
2024-06-20 13:23:12 -07:00
Florian La Roche
995a030a92 MPS2_AN385 improvements (#1225)
* MPS2_AN385 improvements

Sync various MPS2_AN385 CORTEX-M3 QEMU targets and improve their
Makefiles and cleanup gcc support:
- FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2:
  - Makefile
    - output image size after linking
    - move -nostartfiles from compiler to linker flags
    - modernize compiler warning flags
    - add --gc-sections to linker flags
  - TCPEchoClient_SingleTasks.c: fix compiler warnings
  - main.c: fix compiler warnings (remove unused code)
  - main_networking.c
    - remove ipLOCAL_MAC_ADDRESS (unknown)
    - fix compiler warnings about unused params
  - startup.c: main(void), remove unused includes,
    silence  unused params
  - syscalls.c: remove unused defines, silence unused params,
    more compact _sbrk()
- FreeRTOS/Demo/CORTEX_MPS2_QEMU_IAR_GCC/build/gcc:
  - Makefile
    - CFLAGS/LDFLAGS in more readable lines
    - move -nostartfiles to linker flags
    - comment out -specs=rdimon.specs as it is not needed
  - startup_gcc.c: fix typo in comment, remove unused uart code
- FreeRTOS/Demo/CORTEX_MPU_M3_MPS2_QEMU_GCC
  - Makefile
    - after compilation output size of image
    - remove -DQEMU_SOC_MPS2, not needed
    - update many CFLAGS/LDFLAGS settings to more modern gcc/source
    - -ffunction-sections -fdata-sections is moved to CFLAGS
  - startup.c: sync with other ports
  - syscall.c: _write(): param buf is not unused, silence unused params

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

* remove ipLOCAL_MAC_ADDRESS completely and fix formatting errors

remove ipLOCAL_MAC_ADDRESS completely and fix formatting errors

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
2024-06-04 20:08:16 +05:30
chinglee-iot
6518cb153d Update cellular comm interface to generate interrupt from windows thread (#1221)
* Make use of vPortGenerateSimulatedInterruptFromWindowsThread to generate interrupt from windows thread
2024-05-20 16:15:02 +08:00
Tony Josi
a3f42a78e7 Fleet provisioning winsim demo - fix warnings and reduce demo path length (#1222)
* Rename .\FreeRTOS-Plus\Demo\AWS\Fleet_Provisioning_Windows_Simulator\Fleet_Provisioning_With_CSR_Demo\ to .\FreeRTOS-Plus\Demo\AWS\Fleet_Provisioning_Windows_Simulator\CSR_Demo\ to reduce path length limit on Windows (260)

* Fix warnings in fleet provisioning demo

* Update path in CI actions script

* Fix formatting
2024-05-17 11:29:10 +05:30
chinglee-iot
680a1255e2 Fix coreHTTP demo compile warning (#1219)
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
2024-05-08 11:23:02 +05:30
Rahul Kar
6cda0cf7fc Update coreSNTP demo file to fix warnings (#1218)
* Update demo file to fix warnings

* Remove extra overflow check in sntpClient_GetTime function

* Add assert checking for UTC rollover

* Fix configASSERT condition

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Ching-Hsin,Lee <chinglee@amazon.com>
2024-05-03 12:47:33 +05:30
Tony Josi
8f3277f7eb Fix MQTT wolfssl demo, add wolfssl config WOLFSSL_ALT_CERT_CHAINS (#1217) 2024-04-26 09:55:32 +05:30
Tony Josi
97b800e339 Update MQTT broker setup steps (#1215)
* Update MQTT broker setup in FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Multitask/mqtt_broker_setup.txt

* Minor fix

---------

Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
2024-04-25 12:16:15 +05:30
Tony Josi
24ad46b7f8 Fix MQTT multitask demo build (#1214)
* Fix MQTT multitask demo build

* Fix formatting

* Update FreeRTOS-Plus/Demo/Common/coreMQTT_Agent_Interface/freertos_command_pool.c

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

---------

Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
2024-04-22 23:13:44 +05:30
xuelix
2023ac6404 Fix the erroneous check (#1210)
This is to address this issue: https://github.com/FreeRTOS/FreeRTOS/issues/1206
2024-04-17 13:55:05 -07:00
Tony Josi
469b8ad175 Fix MQTT keep alive and winsim logging warnings (#1209)
* Fix MQTT keep alive and winsim logging warnigs

* Fix winsim logging warnings

* Fix winsim logging warnings
2024-04-17 16:27:30 +05:30
chinglee-iot
66b0b0a5a0 Update corePKCS11 submodule pointer (#1208)
* Update corePKCS11 submodule pointer
* Fix corePKCS11 MQTT mutual authenticated demo
* Sync with other demo to wait for network up.
* Fix compiler warning.
2024-04-16 14:11:57 +08:00
chinglee-iot
e6b4e8288f Fix corePKCS11 demo logging message (#1205)
* Flush demo log before demo exit in corePKCS11 demo
* Fix logging line break problem
* Flush log when there is assertion
2024-04-15 10:27:02 +08:00
chinglee-iot
8517050490 Fix HTTP_S3_Download compile warning (#1195)
* Fix xPlatformIsNetworkUp() is undeclared warning
* Fix cast const type warning

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
2024-03-26 13:55:36 +08:00
chinglee-iot
bc5587ce5f Fix FreeRTOS-Plus device defender, shadow and job demo warnings (#1193)
* Fix FreeRTOS-Plus device defender, shadow and job demo warnings
* Cast to void * for vPortFree
2024-03-26 12:23:45 +08:00