News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Starting with STM32F401 Codeblocks

Started by yvesuhc, March 02, 2017, 12:21:06 PM

Previous topic - Next topic

BlueHazzard

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

QuoteC:\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 ;)