Author Topic: Starting with STM32F401 Codeblocks  (Read 1136 times)

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1312
Re: Starting with STM32F401 Codeblocks
« Reply #15 on: March 12, 2017, 09:29:25 pm »
yes you have to copy and paste the code listings into text files and save them accordingly. The correct names of the files are written in the comments as first line of the code listings.
There should be at least 3 files:
main.c
stm32_minimal.ld
Makefile

Quote
C:\Users\Lord>arm-none-eabi-gcc -c -fno-common -O0 -g -mcpu=cortex-m3 -mthumb -o main.o main.c
arm-none-eabi-gcc: error: main.c: No such file or directory
arm-none-eabi-gcc: fatal error: no input files
From this we know this things:
1) The compiler is correctly installed      -- good
2) The compiler is in the system path    -- can be good, can be bad. Lets say at the moment good
3) You have absolute no idea about programming/ compiler  -- hopefully this will change with time ;)