FreeRTOS-Kernel/FreeRTOS/Demo/CORTEX_LM3S6965_GCC_QEMU
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
..
.settings Fix warnings after moving callback prototypes (#208) 2020-08-27 00:40:47 -07:00
LocalDemoFiles Fix C source and header file license spacing (#1155) 2024-01-12 16:43:31 -08:00
.cproject Fix build of & add CMake to LM3S Qemu Demo (#1368) 2025-08-15 12:48:14 +05:30
.project Use new QEMU test project to improve stream/message buffer tests (#168) 2020-08-11 10:50:30 -07:00
CMakeLists.txt Fix build of & add CMake to LM3S Qemu Demo (#1368) 2025-08-15 12:48:14 +05:30
CMakePresets.json Fix build of & add CMake to LM3S Qemu Demo (#1368) 2025-08-15 12:48:14 +05:30
FreeRTOSConfig.h Fix build of & add CMake to LM3S Qemu Demo (#1368) 2025-08-15 12:48:14 +05:30
gcc-arm-embedded.cmake Fix build of & add CMake to LM3S Qemu Demo (#1368) 2025-08-15 12:48:14 +05:30
main.c Fix formatting in kernel demo application files (#1148) 2024-01-02 11:05:59 +05:30
RTOSDemo Debug.launch Fix the path and command in demo projects to make it compatiable to Linux and MacOS (#220) 2020-09-01 11:05:23 -07:00
standalone.ld Fix build of & add CMake to LM3S Qemu Demo (#1368) 2025-08-15 12:48:14 +05:30
Start_QEMU.launch Use new QEMU test project to improve stream/message buffer tests (#168) 2020-08-11 10:50:30 -07:00
start_quem_and_debug.launch Use new QEMU test project to improve stream/message buffer tests (#168) 2020-08-11 10:50:30 -07:00
StartQEMU.bat Fix build of & add CMake to LM3S Qemu Demo (#1368) 2025-08-15 12:48:14 +05:30
startup.c Fix build of & add CMake to LM3S Qemu Demo (#1368) 2025-08-15 12:48:14 +05:30
trcConfig.h Fix build of & add CMake to LM3S Qemu Demo (#1368) 2025-08-15 12:48:14 +05:30
trcSnapshotConfig.h Use new QEMU test project to improve stream/message buffer tests (#168) 2020-08-11 10:50:30 -07:00