Skip to content

prabagaran28/stm32_reset_to_main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stm32_reset_to_main

booting stm32f1 bulephill from srach using gnu toolchain bare minial setup to run c code . not using standard lib and newlib

  • On-chip flash 32kb
  • on-chip ram 10kb
  • STM32F103c6t6

img

  • VS Code with the Cortex-Debug extension

Compiling with custom linker script and startup file

Untitled.video.-.Made.with.Clipchamp.mp4

If you want to link your program without the default C library (libc), startup files, and linker script, you can use the following arm-none-eabi-gcc command:

arm-none-none-eabi-gcc -mcpu=cortex-m3 -mthumb -std=c11 -O1 -g -c main.c -o main.o
arm-none-none-eabi-gcc -mcpu=cortex-m3 -mthumb -std=c11 -O1 -g -c boot.c -o boot.o
arm-none-none-eabi-gcc -nolibc -nostartfiles -T linker.ld -Wl,-Map=blink.elf main.o boot.o -o blink.elf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published