chprintf with STM32F100 demo error

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
pito
Posts: 199
Joined: Sun Nov 06, 2011 3:54 pm

chprintf with STM32F100 demo error

Post by pito »

I cannot get working

Code: Select all

..
#include "chprintf.h"
#include <chstreams.h>
#include <string.h>
#include <stdio.h>
..
chprintf((BaseSequentialStream*)&SD1, "DDD\r\n");

with stm32vl demo. I get "undefined reference to chprintf" error.

It compiles with stn32f407 demo. Any hint plz?
Last edited by pito on Sun Sep 22, 2013 6:23 pm, edited 1 time in total.
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: chprintf with STM32F100 demo error

Post by Tectu »

Are you referring to /demos/ARMCM3-STM32F100-DISCOVERY? That one build just fine for me - I even checked the latest master.
Make sure that you included the chprintf stuff in your Makefile:

Code: Select all

CSRC += $(CHIBIOS)/os/various/chprintf.c



~ Tectu
pito
Posts: 199
Joined: Sun Nov 06, 2011 3:54 pm

Re: chprintf with STM32F100 demo error

Post by pito »

Yes, all the latest.
The adding the above line into the Makefile helped. Thanks.
pito
Posts: 199
Joined: Sun Nov 06, 2011 3:54 pm

Re: chprintf with STM32F100 demo error

Post by pito »

Edit: deleted, solved
Post Reply