FreeRTOS-Kernel/FreeRTOS/Demo/CORTEX_MPS2_QEMU_IAR_GCC
Florian La Roche 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
..
.vscode VSCode launch configurations (#820) 2022-06-07 21:21:52 -07:00
build MPS2_AN385 improvements (#1225) 2024-06-04 20:08:16 +05:30
CMSIS Add a GCC build to the QEMU/IAR project (#728) 2021-12-18 15:11:29 -08:00
FreeRTOSConfig.h Demo/CORTEX_MPS2_QEMU_IAR_GCC cleanup (#1213) 2024-04-22 15:00:13 +05:30
Instructions.url Add a GCC build to the QEMU/IAR project (#728) 2021-12-18 15:11:29 -08:00
IntQueueTimer.c Fix C source and header file license spacing (#1155) 2024-01-12 16:43:31 -08:00
IntQueueTimer.h Fix C source and header file license spacing (#1155) 2024-01-12 16:43:31 -08:00
main.c Add register test tasks to QEMU project (#765) 2024-02-19 20:50:02 +05:30
main_blinky.c Add register test tasks to QEMU project (#765) 2024-02-19 20:50:02 +05:30
main_full.c Add register test tasks to QEMU project (#765) 2024-02-19 20:50:02 +05:30
Readme.md VSCode launch configurations (#820) 2022-06-07 21:21:52 -07:00

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, and make --version.

Building and Running

  1. Open VSCode to the folder FreeRTOS/Demo/CORTEX_MPS2_QEMU_IAR_GCC.
  2. Open .vscode/launch.json, and ensure the miDebuggerPath variable is set to the path where arm-none-eabi-gdb is on your machine.
  3. Open main.c, and set mainCREATE_SIMPLE_BLINKY_DEMO_ONLY to 1 to generate just the simply blinky demo.
  4. 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.