mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-29 08:46:20 -04:00
Some small changes for Demo/CORTEX_MPS2_QEMU_IAR_GCC: - FreeRTOSConfig.h: define configENABLE_BACKWARD_COMPATIBILITY to 0 - build/gcc/Makefile: remove unused SUB_MAKEFILE_DIR - build/gcc/Makefile: no trailing slash(/) for FREERTOS_ROOT - build/gcc/Makefile: commented out, but prepared: - CFLAGS += -Wpedantic -Wshadow -fanalyzer - CFLAGS += -flto - build/gcc/startup_gcc.c: - "__attribute__( ( naked ) )" for Reset_Handler - "__attribute__( ( used ) )" for isr_vector and prvGetRegistersFromStack Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.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 themiDebuggerPathvariable is set to the path where arm-none-eabi-gdb is on your machine. - Open
main.c, and setmainCREATE_SIMPLE_BLINKY_DEMO_ONLYto1to 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.