реклама на сайте
подробности

 
 
> Keil тупит или я?...
Memento Mori
сообщение Nov 14 2012, 16:16
Сообщение #1


Частый гость
**

Группа: Участник
Сообщений: 151
Регистрация: 1-10-12
Пользователь №: 73 751



Господа, осваиваю STM32F103. Пользуюсь KEIL.
Пытаюсь скрестить два проекта, в одном LCD библиотека, в другом библиотека для работы с USB.

Скопировал файлы. Создал группы. В группу добавил файлы. Как понимаете, добавлял средствами KEIL, а не где-то вручную прописывал.
Тем не менее, добавленные файлы при компиляции компилятор не находит.

Парадокс - лезу во вкладку Project, нажимаю на ненайденный файл, жму правую кнопку мыши, "открыть файл"- он открыватеся.

Почему пользовательский интерфейс понимает структуру проекта, а компилятор нет.

ПРоект прилагаю.

Прикрепленные файлы
Прикрепленный файл  HybridProject.rar ( 2.5 мегабайт ) Кол-во скачиваний: 24
Прикрепленный файл  Ishodniy_Proect.rar ( 2.25 мегабайт ) Кол-во скачиваний: 21
 
Go to the top of the page
 
+Quote Post
 
Start new topic
Ответов
Memento Mori
сообщение Nov 14 2012, 17:19
Сообщение #2


Частый гость
**

Группа: Участник
Сообщений: 151
Регистрация: 1-10-12
Пользователь №: 73 751



Немного вник - оказывается, в эту вкладку вписываются только .c файлы, а includes вписываются через Options. А скопировано было все...
Вот только проблемы не кончились:

Это что за...
Цитата
.\Source\CMSIS\Core\CM3\stm32f10x.h(312): error: #256: invalid redeclaration of type name "s32" (declared at line 23 of ".\Source\User\FWLib\library\inc\stm32f10x_type.h")
.\Source\CMSIS\Core\CM3\stm32f10x.h(316): error: #256: invalid redeclaration of type name "sc32" (declared at line 27 of ".\Source\User\FWLib\library\inc\stm32f10x_type.h")
.\Source\CMSIS\Core\CM3\stm32f10x.h(320): error: #256: invalid redeclaration of type name "vs32" (declared at line 31 of ".\Source\User\FWLib\library\inc\stm32f10x_type.h")
.\Source\CMSIS\Core\CM3\stm32f10x.h(324): error: #256: invalid redeclaration of type name "vsc32" (declared at line 35 of ".\Source\User\FWLib\library\inc\stm32f10x_type.h")
.\Source\CMSIS\Core\CM3\stm32f10x.h(328): error: #256: invalid redeclaration of type name "u32" (declared at line 39 of ".\Source\User\FWLib\library\inc\stm32f10x_type.h")
.\Source\CMSIS\Core\CM3\stm32f10x.h(332): error: #256: invalid redeclaration of type name "uc32" (declared at line 43 of ".\Source\User\FWLib\library\inc\stm32f10x_type.h")
.\Source\CMSIS\Core\CM3\stm32f10x.h(336): error: #256: invalid redeclaration of type name "vu32" (declared at line 47 of ".\Source\User\FWLib\library\inc\stm32f10x_type.h")
.\Source\CMSIS\Core\CM3\stm32f10x.h(340): error: #256: invalid redeclaration of type name "vuc32" (declared at line 51 of ".\Source\User\FWLib\library\inc\stm32f10x_type.h")
.\Source\CMSIS\Core\CM3\stm32f10x.h(345): error: #101: "FALSE" has already been declared in the current scope
.\Source\CMSIS\Core\CM3\stm32f10x.h(345): error: #101: "TRUE" has already been declared in the current scope
.\Source\CMSIS\Core\CM3\stm32f10x.h(345): error: #256: invalid redeclaration of type name "bool" (declared at line 55 of ".\Source\User\FWLib\library\inc\stm32f10x_type.h")
.\Source\CMSIS\Core\CM3\stm32f10x.h(348): error: #101: "RESET" has already been declared in the current scope
.\Source\CMSIS\Core\CM3\stm32f10x.h(348): error: #101: "SET" has already been declared in the current scope
.\Source\CMSIS\Core\CM3\stm32f10x.h(348): error: #256: invalid redeclaration of type name "FlagStatus" (declared at line 57 of ".\Source\User\FWLib\library\inc\stm32f10x_type.h")
.\Source\CMSIS\Core\CM3\stm32f10x.h(348): error: #256: invalid redeclaration of type name "ITStatus" (declared at line 57 of ".\Source\User\FWLib\library\inc\stm32f10x_type.h")
.\Source\CMSIS\Core\CM3\stm32f10x.h(350): error: #101: "DISABLE" has already been declared in the current scope
.\Source\CMSIS\Core\CM3\stm32f10x.h(350): error: #101: "ENABLE" has already been declared in the current scope
.\Source\CMSIS\Core\CM3\stm32f10x.h(350): error: #256: invalid redeclaration of type name "FunctionalState" (declared at line 59 of ".\Source\User\FWLib\library\inc\stm32f10x_type.h")
.\Source\CMSIS\Core\CM3\stm32f10x.h(353): error: #101: "ERROR" has already been declared in the current scope
.\Source\CMSIS\Core\CM3\stm32f10x.h(353): error: #101: "SUCCESS" has already been declared in the current scope
.\Source\CMSIS\Core\CM3\stm32f10x.h(353): error: #256: invalid redeclaration of type name "ErrorStatus" (declared at line 62 of ".\Source\User\FWLib\library\inc\stm32f10x_type.h")
.\Source\User\FWLib\library\inc\cortexm3_macro.h(30): error: #55: too many arguments in macro invocation
.\Source\User\FWLib\library\inc\cortexm3_macro.h(30): error: #79: expected a type specifier
.\Source\User\FWLib\library\inc\cortexm3_macro.h(31): error: #55: too many arguments in macro invocation
.\Source\User\FWLib\library\inc\cortexm3_macro.h(31): error: #79: expected a type specifier
.\Source\User\FWLib\library\inc\cortexm3_macro.h(32): error: #55: too many arguments in macro invocation
.\Source\User\FWLib\library\inc\cortexm3_macro.h(32): error: #79: expected a type specifier
.\Source\User\FWLib\library\inc\stm32f10x_map.h(58): error: #256: invalid redeclaration of type name "ADC_TypeDef" (declared at line 389 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_map.h(154): error: #256: invalid redeclaration of type name "BKP_TypeDef" (declared at line 488 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_map.h(163): error: #256: invalid redeclaration of type name "CAN_TxMailBox_TypeDef" (declared at line 500 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
compiling usb_istr.c...
compiling usb_prop.c...
.\Source\User\FWLib\library\inc\stm32f10x_type.h(23): error: #256: invalid redeclaration of type name "s32" (declared at line 312 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(27): error: #256: invalid redeclaration of type name "sc32" (declared at line 316 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(31): error: #256: invalid redeclaration of type name "vs32" (declared at line 320 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(35): error: #256: invalid redeclaration of type name "vsc32" (declared at line 324 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(39): error: #256: invalid redeclaration of type name "u32" (declared at line 328 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(43): error: #256: invalid redeclaration of type name "uc32" (declared at line 332 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(47): error: #256: invalid redeclaration of type name "vu32" (declared at line 336 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(51): error: #256: invalid redeclaration of type name "vuc32" (declared at line 340 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(55): error: #101: "FALSE" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(55): error: #101: "TRUE" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(55): error: #256: invalid redeclaration of type name "bool" (declared at line 345 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(57): error: #101: "RESET" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(57): error: #101: "SET" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(57): error: #256: invalid redeclaration of type name "FlagStatus" (declared at line 348 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(57): error: #256: invalid redeclaration of type name "ITStatus" (declared at line 348 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(59): error: #101: "DISABLE" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(59): error: #101: "ENABLE" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(59): error: #256: invalid redeclaration of type name "FunctionalState" (declared at line 350 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(62): error: #101: "ERROR" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(62): error: #101: "SUCCESS" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(62): error: #256: invalid redeclaration of type name "ErrorStatus" (declared at line 353 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\cortexm3_macro.h(30): error: #55: too many arguments in macro invocation
.\Source\User\FWLib\library\inc\cortexm3_macro.h(30): error: #79: expected a type specifier
.\Source\User\FWLib\library\inc\cortexm3_macro.h(31): error: #55: too many arguments in macro invocation
.\Source\User\FWLib\library\inc\cortexm3_macro.h(31): error: #79: expected a type specifier
.\Source\User\FWLib\library\inc\cortexm3_macro.h(32): error: #55: too many arguments in macro invocation
.\Source\User\FWLib\library\inc\cortexm3_macro.h(32): error: #79: expected a type specifier
.\Source\User\FWLib\library\inc\stm32f10x_map.h(58): error: #256: invalid redeclaration of type name "ADC_TypeDef" (declared at line 389 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_map.h(154): error: #256: invalid redeclaration of type name "BKP_TypeDef" (declared at line 488 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_map.h(163): error: #256: invalid redeclaration of type name "CAN_TxMailBox_TypeDef" (declared at line 500 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
compiling usb_pwr.c...
.\Source\User\FWLib\library\inc\stm32f10x_type.h(23): error: #256: invalid redeclaration of type name "s32" (declared at line 312 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(27): error: #256: invalid redeclaration of type name "sc32" (declared at line 316 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(31): error: #256: invalid redeclaration of type name "vs32" (declared at line 320 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(35): error: #256: invalid redeclaration of type name "vsc32" (declared at line 324 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(39): error: #256: invalid redeclaration of type name "u32" (declared at line 328 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(43): error: #256: invalid redeclaration of type name "uc32" (declared at line 332 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(47): error: #256: invalid redeclaration of type name "vu32" (declared at line 336 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(51): error: #256: invalid redeclaration of type name "vuc32" (declared at line 340 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(55): error: #101: "FALSE" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(55): error: #101: "TRUE" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(55): error: #256: invalid redeclaration of type name "bool" (declared at line 345 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(57): error: #101: "RESET" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(57): error: #101: "SET" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(57): error: #256: invalid redeclaration of type name "FlagStatus" (declared at line 348 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(57): error: #256: invalid redeclaration of type name "ITStatus" (declared at line 348 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(59): error: #101: "DISABLE" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(59): error: #101: "ENABLE" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(59): error: #256: invalid redeclaration of type name "FunctionalState" (declared at line 350 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_type.h(62): error: #101: "ERROR" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(62): error: #101: "SUCCESS" has already been declared in the current scope
.\Source\User\FWLib\library\inc\stm32f10x_type.h(62): error: #256: invalid redeclaration of type name "ErrorStatus" (declared at line 353 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\cortexm3_macro.h(30): error: #55: too many arguments in macro invocation
.\Source\User\FWLib\library\inc\cortexm3_macro.h(30): error: #79: expected a type specifier
.\Source\User\FWLib\library\inc\cortexm3_macro.h(31): error: #55: too many arguments in macro invocation
.\Source\User\FWLib\library\inc\cortexm3_macro.h(31): error: #79: expected a type specifier
.\Source\User\FWLib\library\inc\cortexm3_macro.h(32): error: #55: too many arguments in macro invocation
.\Source\User\FWLib\library\inc\cortexm3_macro.h(32): error: #79: expected a type specifier
.\Source\User\FWLib\library\inc\stm32f10x_map.h(58): error: #256: invalid redeclaration of type name "ADC_TypeDef" (declared at line 389 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_map.h(154): error: #256: invalid redeclaration of type name "BKP_TypeDef" (declared at line 488 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
.\Source\User\FWLib\library\inc\stm32f10x_map.h(163): error: #256: invalid redeclaration of type name "CAN_TxMailBox_TypeDef" (declared at line 500 of ".\Source\CMSIS\Core\CM3\stm32f10x.h")
Go to the top of the page
 
+Quote Post

Сообщений в этой теме
- Memento Mori   Keil тупит или я?...   Nov 14 2012, 16:16
- - HHIMERA   Цитата(Memento Mori @ Nov 14 2012, 20:16)...   Nov 14 2012, 16:49
- - ViKo   Моментально... в море! Вы бы по одной ошибке р...   Nov 14 2012, 17:31
- - Falkon_99   Цитата(Memento Mori @ Nov 14 2012, 18:16)...   Nov 14 2012, 18:17
- - Memento Mori   дисплей ili9320 интерфейс параллельный   Nov 14 2012, 18:49
|- - Falkon_99   я щас розшариваю дисплей от Nokia 6300, он чуть по...   Nov 14 2012, 19:44
- - Memento Mori   ДА пожалуйста! Но схема не моя - китайсы плат...   Nov 14 2012, 20:34
|- - Falkon_99   Цитата(Memento Mori @ Nov 14 2012, 22:34)...   Nov 15 2012, 06:45
|- - scifi   Цитата(Memento Mori @ Nov 15 2012, 00:34)...   Nov 15 2012, 06:58
- - spectral1989   вы пытаетесь объявить переменные, которые уже были...   Nov 15 2012, 02:24
- - Memento Mori   Господа, ну помогите. Осталось всего 2 ошибки, я ч...   Nov 18 2012, 14:18
|- - ViKo   Цитата(Memento Mori @ Nov 18 2012, 17:18)...   Nov 18 2012, 14:25
- - Memento Mori   Viko я не библиотеки скрещиваю, а проекты, один из...   Nov 18 2012, 14:39
- - ViKo   #include <stdbool.h> // bool, true, false ...   Nov 18 2012, 15:05
- - Memento Mori   Так... вроде бы скомпилировалось и слинковалось. Н...   Nov 18 2012, 16:00
|- - ViKo   Цитата(Memento Mori @ Nov 18 2012, 19:00)...   Nov 18 2012, 16:01
- - Memento Mori   ёё.... Я сдаюсь... у кого-нибудь есть готовый прос...   Nov 18 2012, 16:45
- - spectral1989   так большие дела не делаются. разберитесь хоть нем...   Nov 19 2012, 02:40
- - Memento Mori   Корректный пример я нашел в IAR. Только в нем нет ...   Nov 19 2012, 08:09
- - Nix_86   Здравствуйте! Подскажите, кто знает, как ведёт...   Jun 1 2015, 14:07
- - редактор   При превышении размера кода в 32К, линкер ругается...   Jun 2 2015, 05:19


Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 11th August 2025 - 20:08
Рейтинг@Mail.ru


Страница сгенерированна за 0.01436 секунд с 7
ELECTRONIX ©2004-2016