Hello ,
I try to program a STM32-P103 board on Windows .
I use Olimex ARM-USB-OCD-H device + OpenODS ( eclipse + OpenOCD + Yagarto ... ) .
all function well , I tested with STM32-P103_blink_FLASH project example existing on OpenODS .
I need now create my new project .and I need to create makefile .
How to automatically generate makefiles on OpenODS . "eclipce"
Error compiling result :
http://pastebin.com/SdD8RWNP
main.c :
http://pastebin.com/PdC4aHS2
makefile :
http://pastebin.com/rcaRkiSS
Thanks .
Hello,
I don't have any information about automatically generating makefiles, but you can take a look here:
http://www.linuxquestions.org/questions/programming-9/how-to-automatically-generate-makefiles-778180/
From what I can see in your compiler & linker output, the linker cannot find the implementation of comm_putc in any of the objects it's linking.
To fix that, you need to find the source file where comm_putc resides, add it to the source files list, he objects list and the compilation list.
Example:
...
C_OBJECTS += $(OBJ)/<new_souce_name>.o
...
...
$(CC) $(CFLAGS) -o $(OBJ)/<new_souce_name>.o <the path to your file's folder, no spaces!>/<new_souce_name>.c
...
Generally, it's a good idea to use an existing project as a basis for your new one and make small modifications to things such as the makefile (you'd just have to write a lot of the same things anyway)
In one of the pdf's we have included with ODS it is described how to create a new project based on an existing one(we make a lot of our projects to be minimal - i.e blink a led - exactly for this purpose).
Best regards,
Maria/OLIMEX
thanks ,I have a now problem with the spi and SD/MMC card on STM32_P103.
i can't creat a fil
FatFs module test terminal
>fi
rc=0 FR_OK
>fo 10 test
rc=3 FR_FR_NO_PATH