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

18 lines
3.6 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/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/main.o build/image_def.o -o build/uart.elf
arm-none-eabi-size build/uart.elf
text data bss dec hex filename
1010 8 0 1018 3fa build/uart.elf
arm-none-eabi-objcopy -O binary build/uart.elf build/uart.bin
"==================================="
"SUCCESS! Created uart.elf and uart.bin"
"==================================="