mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-17 10:17:45 -04:00
* 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> |
||
---|---|---|
.. | ||
.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.