Files
Kevin Thomas d05687b79b Updated WEEK03
2026-05-03 18:00:53 -04:00

20 lines
4.3 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_timer.c -o build/rp2350_timer.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_timer.o build/main.o build/image_def.o -o build/timer.elf
arm-none-eabi-size build/timer.elf
text data bss dec hex filename
1243 68 8 1319 527 build/timer.elf
arm-none-eabi-objcopy -O binary build/timer.elf build/timer.bin
"==================================="
"SUCCESS! Created timer.elf and timer.bin"
"==================================="