584 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
7f748546a1 Fix FreeRTOS+TCP IPv6 demo with latest version of FreeRTOS+TCP (#1307) 2024-12-27 10:02:15 +05:30
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
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
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
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
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
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
2067506cc1 Update User Mode Networking debug command for QEMU Demo (#1270) 2024-09-23 20:11:14 +05:30
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
1a82df09df Update ReadMe to add UserMode Networking (#1216)
Update ReadMe to add UserMode Networking
2024-08-21 13:41:43 +05:30
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
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
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
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
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
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
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
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
8f3277f7eb Fix MQTT wolfssl demo, add wolfssl config WOLFSSL_ALT_CERT_CHAINS (#1217) 2024-04-26 09:55:32 +05:30
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
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
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
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
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
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
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
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
000c005cee Update +TCP to latest version (#1192) 2024-03-14 14:51:54 +05:30
e9593edb39 Select correct startup project. (#1190) 2024-03-06 14:56:42 +08:00
257c2916c0 Remove included server key/certs from WolfSSL Demo 2024-02-02 15:42:25 -08:00
3d236bd83d Add x64 configuration to Win32-MSVC demo (#1164)
Add x64 configuration to Win32-MSVC demo.

This was originally contributed in this PR - #1139

---------

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: José Simões <jose.simoes@eclo.solutions>
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
2024-01-30 10:44:47 +05:30
7fc12c29f3 Update FreeRTOS and AWS Library Submodules (#1162)
* Update the AWS and FreeRTOS Library Submodule Pointers
* Update the manifest.yml file for new submodules
2024-01-26 19:51:49 -05:00
5c374f1a6e Add TCP zero copy example to the TCP echo client demo - IPv6 WinSim (#1138)
* Add TCP zero copy example to the TCP echo client demo - IPv6 WinSim

* Uncrustify: triggered by comment.

* Uncrustify: triggered by comment

* Uncrustify fix formatting

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
2024-01-11 11:40:36 +05:30
0b5cd08665 Improvement to UARTCommandConsole.c (FreeRTOS#548) (#1147)
- Removed the function scope 'xPort' variable within FreeRTOS+CLI task in order for task to use the static file scope 'xPort' variable.
- Added a prototype of vOutputString in UARTCommandConsole.c
2024-01-08 20:08:49 +05:30
6b513cb1a2 Use MbedTLS 3.5.1 and Add TLS 1.3 Support to WinSim Demos (#1135)
* 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
2023-12-15 12:30:39 -08:00
4bad7a6ba4 Update cellular interface submodule pointer (#1141) 2023-12-15 11:35:09 -08:00
b9cb18e46e Update coreHTTP S3 Download Instructions (#1127)
* Update coreHTTP S3 Download Instructions

* Revert to 85d531916

* 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 <action@github.com>
2023-12-13 08:58:13 -08:00
f6d2b62ec6 Remove 64 Bit Visual Studio Configurations (#1120) 2023-12-01 06:00:16 -05:00
82b4c249aa Fix AWS Demo Build Configurations (#1115)
* 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

---------
2023-11-16 19:52:49 +00:00
f60dd88609 Remove deprecated ipconfigRAND32 (#1108)
* Remove deprecated ipconfigRAND32

* Uncrustify: triggered by comment.

* Update

* Check for return value

* Uncrustify: triggered by comment.

* Update

---------

Co-authored-by: GitHub Action <action@github.com>
2023-11-01 12:33:25 +05:30
b1cadcc6fc Demo: Qemu-mps2 Enable DHCP by default (#1107)
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
2023-10-31 11:00:54 +05:30
9dc172db2d Use 1500 Bytes as the MTU for all FreeRTOS+TCP demos (#1105)
Co-authored-by: Joseph Julicher <jjulicher@mac.com>
2023-10-31 10:39:33 +05:30
2d3b32c845 Set ETHERNET_IRQn priority in main_networking.c
This allows the qemu-mps2 demo to use DHCP which requires ethernet mac
functionality prior to when vApplicationIPNetworkEventHook or
vApplicationIPNetworkEventHook_Multi are called.
2023-10-30 18:53:19 -07:00