mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 08:47:45 -04:00
* Add register test tasks to the CORTEX_MPS2_QEMU_IAR GCC and IAR builds. * Update header comment in the two added files. * Fix header checks * Fix build issue * update IAR version --------- Co-authored-by: none <> Co-authored-by: Rahul Kar <karahulx@amazon.com> Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com> |
||
---|---|---|
.. | ||
.vscode | ||
build | ||
CMSIS | ||
FreeRTOSConfig.h | ||
Instructions.url | ||
IntQueueTimer.c | ||
IntQueueTimer.h | ||
main.c | ||
main_blinky.c | ||
main_full.c | ||
Readme.md |
Running with VSCode Launch Configurations
Prerequisites
- Install C/C++ extension in VSCode.
- Install arm-none-eabi-gcc.
- Install GNU make utility.
- Ensure the required binaries are in PATH with
arm-none-eabi-gcc --version
,arm-none-eabi-gdb --version
, andmake --version
.
Building and Running
- Open VSCode to the folder
FreeRTOS/Demo/CORTEX_MPS2_QEMU_IAR_GCC
. - Open
.vscode/launch.json
, and ensure themiDebuggerPath
variable is set to the path where arm-none-eabi-gdb is on your machine. - Open
main.c
, and setmainCREATE_SIMPLE_BLINKY_DEMO_ONLY
to1
to generate just the simply blinky demo. - On the VSCode left side panel, select the “Run and Debug” button. Then select “Launch QEMU RTOSDemo” from the dropdown on the top right and press the play button. This will build, run, and attach a debugger to the demo program.