Advertisement
Guest User

Untitled

a guest
Nov 27th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.39 KB | None | 0 0
  1. all: main.bin
  2.  
  3. main.elf: main.c
  4.     arm-none-eabi-gcc -mthumb -mthumb-interwork -mcpu=cortex-m4 --specs=nosys.specs -Icore_defines -std=gnu99 -g -O2 -Wall -march=armv7e-m -fsingle-precision-constant -Wdouble-promotion main.c -o main.elf
  5.  
  6. main.bin: main.elf
  7.     arm-none-eabi-objcopy -O binary main.elf main.bin
  8.  
  9. install: main.bin
  10.     st-flash write main.bin 0x8000000
  11.  
  12. clean:
  13.     rm -f main.elf main.bin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement