How to automatically generate makefiles on OpenODS ?

Started by redon, May 03, 2013, 04:01:47 pm

Previous topic - Next topic


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 :

main.c :

makefile :

Thanks .



I don't have any information about automatically generating makefiles, but you can take a look here:

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.


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,
Software developer at 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
rc=0 FR_OK

>fo 10 test