Hello,
I use the last Chibistudio, works great!
I found this http://www.wheeze.plus.com/RPi_and_STM32F4DISCOVERY/
I think is based on a older Version of chibios.
Compiling stops with
Description Resource Path Location Type
fatal error: usb_cdc.h: No such file or directory usbcfg.c /ARMCM4-STM32F407-DISCOVERY-PI line 23 C/C++ Problem
I can´t find usb_cdc.h in the directories. So I think something changes???
Regards
Joerg
Problem compiling project
Moderators: RoccoMarco, barthess
Re: Problem compiling project
The USB stuff has been changed with version 2.6. It's correct that there's no usb_cdc.h file anymore. Take a look at the demos to see how it's done now (The code itself changed too [slightly]).
~ Tectu
~ Tectu
Re: Problem compiling project
Ok I try to add code to a actual sample.
In code chrtclib.c is needed so I add "#include "chrtclib.h"" to main.c
I get compile error (see picture)
In code chrtclib.c is needed so I add "#include "chrtclib.h"" to main.c
I get compile error (see picture)
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Problem compiling project
I think I did?
/**
* @brief Enables the RTC subsystem.
*/
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
#define HAL_USE_RTC TRUE
#endif
/**
* @brief Enables the RTC subsystem.
*/
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
#define HAL_USE_RTC TRUE
#endif
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
-
- Posts: 32
- Joined: Thu Dec 20, 2012 11:57 pm
- Location: Poland
- Has thanked: 2 times
- Been thanked: 1 time
- Contact:
Re: Problem compiling project
Have you included chrtclib.c in your Makefile?
Code: Select all
CSRC += $(CHIBIOS)/os/various/chrtclib.c
Re: Problem compiling project
Thats was it, thanks a lot.
There is still a warning
main.c: In function 'Thread1':
main.c:276:1: warning: no return statement in function returning non-void [-Wreturn-type]
was before my changes to.
Is it possible to say eclipse to save all changed files before compile?
Joerg
There is still a warning
main.c: In function 'Thread1':
main.c:276:1: warning: no return statement in function returning non-void [-Wreturn-type]
was before my changes to.
Is it possible to say eclipse to save all changed files before compile?
Joerg
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Problem compiling project
Hi,
That warning is known ad accepted, you can suppress that by putting a "return 0" at the end but doing so the Keil and IAR compiler would start complaining about unreachable code.
Being 2 compilers vs 1 compiler Keil and IAR win and the warning using GCC has to stay.
Giovanni
That warning is known ad accepted, you can suppress that by putting a "return 0" at the end but doing so the Keil and IAR compiler would start complaining about unreachable code.
Being 2 compilers vs 1 compiler Keil and IAR win and the warning using GCC has to stay.
Giovanni
Who is online
Users browsing this forum: No registered users and 49 guests