mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-05-23 07:59:52 +02:00
20 lines
4.4 KiB
Plaintext
20 lines
4.4 KiB
Plaintext
if not exist build mkdir build
|
|
arm-none-eabi-gcc -mcpu=cortex-m33 -mthumb -Og -g3 -Wall -Wextra -ffunction-sections -fdata-sections -IInc -c Src/vector_table.c -o build/vector_table.o
|
|
arm-none-eabi-gcc -mcpu=cortex-m33 -mthumb -Og -g3 -Wall -Wextra -ffunction-sections -fdata-sections -IInc -c Src/rp2350_reset_handler.c -o build/rp2350_reset_handler.o
|
|
arm-none-eabi-gcc -mcpu=cortex-m33 -mthumb -Og -g3 -Wall -Wextra -ffunction-sections -fdata-sections -IInc -c Src/rp2350_stack.c -o build/rp2350_stack.o
|
|
arm-none-eabi-gcc -mcpu=cortex-m33 -mthumb -Og -g3 -Wall -Wextra -ffunction-sections -fdata-sections -IInc -c Src/rp2350_xosc.c -o build/rp2350_xosc.o
|
|
arm-none-eabi-gcc -mcpu=cortex-m33 -mthumb -Og -g3 -Wall -Wextra -ffunction-sections -fdata-sections -IInc -c Src/rp2350_reset.c -o build/rp2350_reset.o
|
|
arm-none-eabi-gcc -mcpu=cortex-m33 -mthumb -Og -g3 -Wall -Wextra -ffunction-sections -fdata-sections -IInc -c Src/rp2350_uart.c -o build/rp2350_uart.o
|
|
arm-none-eabi-gcc -mcpu=cortex-m33 -mthumb -Og -g3 -Wall -Wextra -ffunction-sections -fdata-sections -IInc -c Src/rp2350_delay.c -o build/rp2350_delay.o
|
|
arm-none-eabi-gcc -mcpu=cortex-m33 -mthumb -Og -g3 -Wall -Wextra -ffunction-sections -fdata-sections -IInc -c Src/rp2350_watchdog.c -o build/rp2350_watchdog.o
|
|
arm-none-eabi-gcc -mcpu=cortex-m33 -mthumb -Og -g3 -Wall -Wextra -ffunction-sections -fdata-sections -IInc -c Src/main.c -o build/main.o
|
|
arm-none-eabi-gcc -mcpu=cortex-m33 -mthumb -Og -g3 -Wall -Wextra -ffunction-sections -fdata-sections -IInc -c Src/image_def.c -o build/image_def.o
|
|
arm-none-eabi-gcc -mcpu=cortex-m33 -mthumb -T linker.ld -nostdlib -Wl,--gc-sections build/vector_table.o build/rp2350_reset_handler.o build/rp2350_stack.o build/rp2350_xosc.o build/rp2350_reset.o build/rp2350_uart.o build/rp2350_delay.o build/rp2350_watchdog.o build/main.o build/image_def.o -o build/watchdog.elf
|
|
arm-none-eabi-size build/watchdog.elf
|
|
text data bss dec hex filename
|
|
1393 8 8 1409 581 build/watchdog.elf
|
|
arm-none-eabi-objcopy -O binary build/watchdog.elf build/watchdog.bin
|
|
"==================================="
|
|
"SUCCESS! Created watchdog.elf and watchdog.bin"
|
|
"==================================="
|