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

 
 
3 страниц V   1 2 3 >  
Closed TopicStart new topic
> STM32F4 USB в режиме хоста.
glags
сообщение May 9 2013, 08:55
Сообщение #1


Участник
*

Группа: Участник
Сообщений: 58
Регистрация: 9-05-13
Из: Львов, Украина
Пользователь №: 76 782



Добрый день, чайник просит Вашей помощи в стыковки этого модуля и USB библиотеки (stm32_f105-07_f2_f4_usb-host-device_lib).
Как я понял их объединить не просто, кроме коррекции файлов diskio.c, usb_bsp.c (здесь конфигурится usb интерфейс и прерывания), usb_conf.h и тд бог знает чего ещё править ручками. Выкурил кучу мануала устал.
В конечном результате я хочу используя порты PA11 и PA12 подключить USB флешку (PA10 и PA9 как я понял можно не использовать так как у флешки всего 4 контакта - 2 информационные и 2 питание).
Моя задача читать файлы с флешки с помощю контроллера STM32F407VG обрабатывать их и писать на флеш.
Если можно дайте пожалуйста готовый архив с настроеной стыковкой fatfs и usb библиотеки или направьте на путь истинный (где чего копать и какие файлы как конфигурить). Буду рад любой помощи.
С уважением ЧАЙНИК.
Go to the top of the page
 
+Quote Post
hd44780
сообщение May 14 2013, 11:36
Сообщение #2


Профессионал
*****

Группа: Свой
Сообщений: 1 202
Регистрация: 26-08-05
Из: Донецк, ДНР
Пользователь №: 7 980



Цитата(glags @ May 9 2013, 11:55) *
Выкурил кучу мануала устал.
В конечном результате я хочу используя порты PA11 и PA12 подключить USB флешку (PA10 и PA9 как я понял можно не использовать так как у флешки всего 4 контакта - 2 информационные и 2 питание).


Надо было курить пример Audio_playback_and_record для F4Discovery ... Там и fatfs есть.
Я, правда, его пока недокурил biggrin.gif


--------------------
Чтобы возить такого пассажира, необходим лимузин другого класса.
(с) Мария Эдуарда
Go to the top of the page
 
+Quote Post
glags
сообщение May 14 2013, 20:58
Сообщение #3


Участник
*

Группа: Участник
Сообщений: 58
Регистрация: 9-05-13
Из: Львов, Украина
Пользователь №: 76 782



Цитата(hd44780 @ May 14 2013, 13:36) *
Надо было курить пример Audio_playback_and_record для F4Discovery ... Там и fatfs есть.
Я, правда, его пока недокурил biggrin.gif

Курил его, но там всё переплетено на кучу без разделения FATFS и USB, кроме того обрезанная версия FATFS и используется PA9-PA12 для USB, PC0 включение питания USB, PD5 контроль по перегрузке USB. Мне было б достаточно использовать PC0, PD5, PA11 и PA12. Не совсем разобрался с прерываниями (может без него можно обойтись используя просто вызов функции). Как я понял по прерыванию проверяется подключена ли флешка и нет ли перегруза по питалову флехи и таким образом постоянно обновляется переменная Stat, но эту переменную можно получать, когда надо, простым вызовом функции. Тяжело извлекать и хотелось бы иметь последнюю версию (0.9b) FATFS состыкованную с библиотекой USB. На данный момент пробую его докурить, а затем приспособить под FATFS 0.9b. Если у Вас быстрее получится то могли бы помочь?
Go to the top of the page
 
+Quote Post
hd44780
сообщение May 15 2013, 08:44
Сообщение #4


Профессионал
*****

Группа: Свой
Сообщений: 1 202
Регистрация: 26-08-05
Из: Донецк, ДНР
Пользователь №: 7 980



Да, если получится, выложу.
Я уже слегка его поуродовал (запись звука хочу выкинуть), но оно пока не компилится. Для чего там таймер, я вообще пока не понял wacko.gif . Может недосмотрел.

Если справитесь, выложите.

FATFS там отделён, но diskio засунут куда-то далеко. Я сам не сразу понял, где оно.

Вообще организация кода ужасная crying.gif .


--------------------
Чтобы возить такого пассажира, необходим лимузин другого класса.
(с) Мария Эдуарда
Go to the top of the page
 
+Quote Post
glags
сообщение May 15 2013, 09:10
Сообщение #5


Участник
*

Группа: Участник
Сообщений: 58
Регистрация: 9-05-13
Из: Львов, Украина
Пользователь №: 76 782



Цитата(hd44780 @ May 15 2013, 10:44) *
Да, если получится, выложу.
Я уже слегка его поуродовал (запись звука хочу выкинуть), но оно пока не компилится. Для чего там таймер, я вообще пока не понял wacko.gif . Может недосмотрел.

Если справитесь, выложите.

Что-то мне не очень нравится эта затея, а как после всех колупаний прочитать каталог и выбрать нужный файл для открытия. Здесь нет явной библиотеки FATFS, и по сему многие функции по работе с файловой системой недоступны.
Кстати таймер используется для запуска прерывания. Из всего этого изврата мне надо получить следующее: считать каталог, выбрать файл, открыть его и изменить, а затем записать обратно, при этом я хочу ещё сам создавать, удалять и переименовывать файлы.
Сейчас я взял библиотеку FATFS и библиотеку USB и пытаюсь их слепить. Мне кажется из этого что-то получится. Пока даёт кучу ошибок компиляции, но я по чуть-чуть с ними борюсь rolleyes.gif .
Go to the top of the page
 
+Quote Post
hd44780
сообщение May 15 2013, 13:00
Сообщение #6


Профессионал
*****

Группа: Свой
Сообщений: 1 202
Регистрация: 26-08-05
Из: Донецк, ДНР
Пользователь №: 7 980



Я тут нашёл MP3 плеер на F4discovery с флэшки через FatFs, переделал под свой IAR, скомпилился.
Он с корня читает *.mp3 и играет их. По UserButton переходит к следующему файлу.

Дома на железке проверю и, если всё ок, выложу.

Цитата(glags @ May 15 2013, 12:10) *
мне надо получить следующее: считать каталог, выбрать файл, открыть его и изменить, а затем записать обратно, при этом я хочу ещё сам создавать, удалять и переименовывать файлы.

Так FatFs это вроде умеет. Надо только подсунуть ей функции чтения/записи секторов.


--------------------
Чтобы возить такого пассажира, необходим лимузин другого класса.
(с) Мария Эдуарда
Go to the top of the page
 
+Quote Post
glags
сообщение May 15 2013, 15:44
Сообщение #7


Участник
*

Группа: Участник
Сообщений: 58
Регистрация: 9-05-13
Из: Львов, Украина
Пользователь №: 76 782



Цитата(hd44780 @ May 15 2013, 15:00) *
Так FatFs это вроде умеет. Надо только подсунуть ей функции чтения/записи секторов.


Да умеет и нормально у меня компилится, но проблема с USB библиотекой. Надо сконфигурить usbh_conf, usb_bsp, usb_conf и соответственно diskio.с.
Как это грамотно сделать я толком не знаю.
Go to the top of the page
 
+Quote Post
hd44780
сообщение May 15 2013, 16:24
Сообщение #8


Профессионал
*****

Группа: Свой
Сообщений: 1 202
Регистрация: 26-08-05
Из: Донецк, ДНР
Пользователь №: 7 980



У меня что-то получилось. Файл читается нормально. Другое не пробовал.
diskio.c там не нужен, его usbh_msc_fatfs заменяет.


--------------------
Чтобы возить такого пассажира, необходим лимузин другого класса.
(с) Мария Эдуарда
Go to the top of the page
 
+Quote Post
glags
сообщение May 15 2013, 16:37
Сообщение #9


Участник
*

Группа: Участник
Сообщений: 58
Регистрация: 9-05-13
Из: Львов, Украина
Пользователь №: 76 782



Цитата(hd44780 @ May 15 2013, 18:24) *
У меня что-то получилось. Файл читается нормально. Другое не пробовал.
diskio.c там не нужен, его usbh_msc_fatfs заменяет.

А можно получить исходники?
Go to the top of the page
 
+Quote Post
hd44780
сообщение May 15 2013, 16:57
Сообщение #10


Профессионал
*****

Группа: Свой
Сообщений: 1 202
Регистрация: 26-08-05
Из: Донецк, ДНР
Пользователь №: 7 980



Да, конечно.

Сейчас ещё чуть поиграюсь и выложу.


--------------------
Чтобы возить такого пассажира, необходим лимузин другого класса.
(с) Мария Эдуарда
Go to the top of the page
 
+Quote Post
hd44780
сообщение May 15 2013, 18:55
Сообщение #11


Профессионал
*****

Группа: Свой
Сообщений: 1 202
Регистрация: 26-08-05
Из: Донецк, ДНР
Пользователь №: 7 980



Ловите под IAR. Стандартные библиотеки я не стал вкладывать.

Чтение файла там в комментаренной части есть. Оно работает.
Запись вроде идёт, но файла я потом не нашёл biggrin.gif , завтра гляну ..
Прикрепленные файлы
Прикрепленный файл  FlashTest.zip ( 101.95 килобайт ) Кол-во скачиваний: 146
 


--------------------
Чтобы возить такого пассажира, необходим лимузин другого класса.
(с) Мария Эдуарда
Go to the top of the page
 
+Quote Post
glags
сообщение May 15 2013, 21:44
Сообщение #12


Участник
*

Группа: Участник
Сообщений: 58
Регистрация: 9-05-13
Из: Львов, Украина
Пользователь №: 76 782



Цитата(hd44780 @ May 15 2013, 20:55) *
Ловите под IAR. Стандартные библиотеки я не стал вкладывать.

Чтение файла там в комментаренной части есть. Оно работает.
Запись вроде идёт, но файла я потом не нашёл biggrin.gif , завтра гляну ..

Премного благодарен Вам, но попробовать смогу только 17.05 вечером после 22-00. У меня кстати CoIDE, но проблем не должно быть. Как попробую отпишусь. Если всё ок то попробую последнюю FATFS прикрутить, тут проблем не должно быть. Главное было USB библиотеку настроить, за что я Вам безгранично благодарен. beer.gif
Go to the top of the page
 
+Quote Post
glags
сообщение May 16 2013, 10:02
Сообщение #13


Участник
*

Группа: Участник
Сообщений: 58
Регистрация: 9-05-13
Из: Львов, Украина
Пользователь №: 76 782



Цитата(glags @ May 15 2013, 23:44) *
Премного благодарен Вам, но попробовать смогу только 17.05 вечером после 22-00. У меня кстати CoIDE, но проблем не должно быть. Как попробую отпишусь. Если всё ок то попробую последнюю FATFS прикрутить, тут проблем не должно быть. Главное было USB библиотеку настроить, за что я Вам безгранично благодарен. beer.gif

Не сдержался и занялся сегодня, бросив все свои дела.
При компиляции не нашло следующие файлы: usb_hcd_int.h, usbh_core.h, usbh_msc_core.h и usb_bsp.h. Можите ли Вы их мне закинуть?
Go to the top of the page
 
+Quote Post
hd44780
сообщение May 16 2013, 10:24
Сообщение #14


Профессионал
*****

Группа: Свой
Сообщений: 1 202
Регистрация: 26-08-05
Из: Донецк, ДНР
Пользователь №: 7 980



Охота пуще неволи biggrin.gif

Это стандартные файлы из ST-шных библиотек.
Лежат обычно здесь - Libraries\STM32_USB_OTG_Driver\inc
Включите этот каталог в пути кокоса...

У меня подключено вот это:
$PROJ_DIR$\..\
$PROJ_DIR$\..\USB
$PROJ_DIR$\..\FATFS
$PROJ_DIR$\..\..\Libraries\CMSIS\Include
$PROJ_DIR$\..\..\Libraries\CMSIS\ST\STM32F4xx\Include
$PROJ_DIR$\..\..\Libraries\STM32F4xx_StdPeriph_Driver\inc
$PROJ_DIR$\..\..\Libraries\STM32_USB_HOST_Library\Core\inc
$PROJ_DIR$\..\..\Libraries\STM32_USB_HOST_Library\Class\MSC\inc
$PROJ_DIR$\..\..\Libraries\STM32_USB_OTG_Driver\inc
$PROJ_DIR$\..\..\Utilities\STM32F4-Discovery

$PROJ_DIR$ - IAR-овское волшебное слово, означает каталог, где проект лежит.

Кстати нашёл глюк, из-за которого запись не шла.
Файл для записи надо с флагом FA_WRITE открывать:
if (FR_OK == f_open(&file, "/list.txt", FA_CREATE_ALWAYS | FA_WRITE))
Если FA_WRITE не указать, то fwrite сразу же возвращается с кодом FR_DENIED. Файл при этом даже не формируется.


--------------------
Чтобы возить такого пассажира, необходим лимузин другого класса.
(с) Мария Эдуарда
Go to the top of the page
 
+Quote Post
glags
сообщение May 16 2013, 12:27
Сообщение #15


Участник
*

Группа: Участник
Сообщений: 58
Регистрация: 9-05-13
Из: Львов, Украина
Пользователь №: 76 782



Цитата(hd44780 @ May 16 2013, 12:24) *
Охота пуще неволи biggrin.gif

Это стандартные файлы из ST-шных библиотек.
Лежат обычно здесь - Libraries\STM32_USB_OTG_Driver\inc
Включите этот каталог в пути кокоса...
Если FA_WRITE не указать, то fwrite сразу же возвращается с кодом FR_DENIED. Файл при этом даже не формируется.


Добавил в проект все необходимые файлы и попёрла у меня куча ошибок компиляции. Если есть у Вас такая возможность прописать путь именно только к моему проекту не включая другие библиотеки и подсказать в чём моя ошибка.
GCC HOME: C:\CooCox\arm-2011.03-coocox\bin
compile:
[mkdir] Created dir: C:\CooCox\CoIDE\workspace\flash\flash\Debug\bin
[mkdir] Created dir: C:\CooCox\CoIDE\workspace\flash\flash\Debug\obj
[cc] 200
[cc] 25 total files to be compiled.
[cc] arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Wall -ffunction-sections -g -O0 -c -DSTM32F407VG -DSTM32F4XX -ID:\STM32F4\lib\LIBRIARY -ID:\STM32F4\lib\LIBRIARY\FlashTest\USB -IC:\CooCox\CoIDE\workspace\flash\cmsis_boot -IC:\CooCox\CoIDE\workspace -ID:\STM32F4\lib\LIBRIARY\FlashTest -ID:\STM32F4\lib -IC:\CooCox\CoIDE\workspace\flash -IC:\CooCox\CoIDE\workspace\flash\cmsis -IC:\CooCox\CoIDE\workspace\flash\cmsis_lib\include -IC:\CooCox\CoIDE\workspace\flash\cmsis_lib -ID:\STM32F4\lib\LIBRIARY\FlashTest\FATFS D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_core.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_hcs.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_stdreq.c C:\CooCox\CoIDE\workspace\flash\cmsis_boot\startup\startup_stm32f4xx.c D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c D:\STM32F4\lib\LIBRIARY\FlashTest\main.c C:\CooCox\CoIDE\workspace\flash\cmsis_lib\source\stm32f4xx_rcc.c D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_it.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_msc_core.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_core.c D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_gpio.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_msc_scsi.c C:\CooCox\CoIDE\workspace\flash\cmsis_boot\system_stm32f4xx.c D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_dma.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c D:\STM32F4\lib\LIBRIARY\FlashTest\FATFS\ccsbcs.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c D:\STM32F4\lib\LIBRIARY\FlashTest\FATFS\ff.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_hcd.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_msc_bot.c D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_exti.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_ioreq.c D:\STM32F4\lib\LIBRIARY\FlashTest\FATFS\fattime.c D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_tim.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_hcd_int.c
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:69:34: error: 'GPIO_Pin_12' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:69:44: error: 'GPIO_Pin_13' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:69:54: error: 'GPIO_Pin_14' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:70:34: error: 'GPIO_Pin_15' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:71:34: error: 'RCC_AHB1Periph_GPIOD' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:76:39: error: 'GPIO_Pin_0' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:78:39: error: 'RCC_AHB1Periph_GPIOA' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:80:45: error: 'EXTI_Line0' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:82:46: error: 'EXTI_PortSourceGPIOA' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:84:45: error: 'EXTI_PinSource0' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:87:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NVIC_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c: In function 'STM_EVAL_LEDInit':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:118:3: error: 'GPIO_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:118:3: note: each undeclared identifier is reported only once for each function it appears in
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:118:21: error: expected ';' before 'GPIO_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:121:3: warning: implicit declaration of function 'RCC_AHB1PeriphClockCmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:124:3: error: 'GPIO_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:125:34: error: 'GPIO_Mode_OUT' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:126:35: error: 'GPIO_OType_PP' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:127:34: error: 'GPIO_PuPd_UP' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:128:35: error: 'GPIO_Speed_50MHz' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:129:3: warning: implicit declaration of function 'GPIO_Init'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c: In function 'STM_EVAL_PBInit':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:190:3: error: 'GPIO_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:190:20: error: expected ';' before 'GPIO_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:191:3: error: 'EXTI_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:191:20: error: expected ';' before 'EXTI_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:192:3: error: 'NVIC_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:192:20: error: expected ';' before 'NVIC_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:196:3: warning: implicit declaration of function 'RCC_APB2PeriphClockCmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:196:26: error: 'RCC_APB2Periph_SYSCFG' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:199:3: error: 'GPIO_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:199:34: error: 'GPIO_Mode_IN' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:200:34: error: 'GPIO_PuPd_NOPULL' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:207:5: warning: implicit declaration of function 'SYSCFG_EXTILineConfig'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:210:5: error: 'EXTI_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:211:36: error: 'EXTI_Mode_Interrupt' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:212:39: error: 'EXTI_Trigger_Rising' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:214:5: warning: implicit declaration of function 'EXTI_Init'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:217:5: error: 'NVIC_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:222:5: warning: implicit declaration of function 'NVIC_Init'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c: In function 'STM_EVAL_PBGetState':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:234:3: warning: implicit declaration of function 'GPIO_ReadInputDataBit'
[cc] In file included from D:\STM32F4\lib\LIBRIARY\FlashTest\main.c:3:0:
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\/stm32f4xx_conf.h:34:27: fatal error: stm32f4xx_adc.h: No such file or directory
[cc] compilation terminated.
[cc] C:\CooCox\CoIDE\workspace\flash\cmsis_lib\source\stm32f4xx_rcc.c: In function 'RCC_HSEConfig':
[cc] C:\CooCox\CoIDE\workspace\flash\cmsis_lib\source\stm32f4xx_rcc.c:240:3: warning: implicit declaration of function 'assert_param'
[cc] In file included from D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_it.c:27:0:
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\/stm32f4xx_conf.h:34:27: fatal error: stm32f4xx_adc.h: No such file or directory
[cc] compilation terminated.
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_gpio.c: In function 'GPIO_DeInit':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_gpio.c:123:3: warning: implicit declaration of function 'assert_param'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_dma.c: In function 'DMA_DeInit':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_dma.c:191:3: warning: implicit declaration of function 'assert_param'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c: In function 'USBH_USR_DeviceAttached':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:84:2: warning: implicit declaration of function 'GPIO_SetBits'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:84:22: error: 'GPIO_Pin_14' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:84:22: note: each undeclared identifier is reported only once for each function it appears in
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c: In function 'USBH_USR_DeviceDisconnected':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:104:2: warning: implicit declaration of function 'GPIO_ResetBits'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:104:24: error: 'GPIO_Pin_14' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:105:24: error: 'GPIO_Pin_12' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c: In function 'USBH_USR_MSC_Application':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:253:22: error: 'GPIO_Pin_12' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'USB_OTG_BSP_Init':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:87:2: error: 'GPIO_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:87:2: note: each undeclared identifier is reported only once for each function it appears in
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:87:19: error: expected ';' before 'GPIO_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:90:2: warning: implicit declaration of function 'RCC_AHB1PeriphClockCmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:90:26: error: 'RCC_AHB1Periph_GPIOA' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:93:2: error: 'GPIO_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:93:32: error: 'GPIO_Pin_9' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:94:4: error: 'GPIO_Pin_11' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:95:4: error: 'GPIO_Pin_12' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:97:34: error: 'GPIO_Speed_100MHz' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:98:33: error: 'GPIO_Mode_AF' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:99:34: error: 'GPIO_OType_PP' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:100:33: error: 'GPIO_PuPd_NOPULL' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:101:2: warning: implicit declaration of function 'GPIO_Init'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:103:2: warning: implicit declaration of function 'GPIO_PinAFConfig'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:103:25: error: 'GPIO_PinSource9' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:103:41: error: 'GPIO_AF_OTG1_FS' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:104:25: error: 'GPIO_PinSource11' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:105:25: error: 'GPIO_PinSource12' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:110:33: error: 'GPIO_Pin_10' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:111:34: error: 'GPIO_OType_OD' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:112:33: error: 'GPIO_PuPd_UP' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:115:25: error: 'GPIO_PinSource10' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:118:2: warning: implicit declaration of function 'RCC_APB2PeriphClockCmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:118:25: error: 'RCC_APB2Periph_SYSCFG' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:119:2: warning: implicit declaration of function 'RCC_AHB2PeriphClockCmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:119:25: error: 'RCC_AHB2Periph_OTG_FS' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'USB_OTG_BSP_EnableInterrupt':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:248:2: error: 'NVIC_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:248:19: error: expected ';' before 'NVIC_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:250:2: warning: implicit declaration of function 'NVIC_PriorityGroupConfig'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:250:27: error: 'NVIC_PriorityGroup_1' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:252:2: error: 'NVIC_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:256:2: warning: implicit declaration of function 'NVIC_Init'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'USB_OTG_BSP_DriveVBUS':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:290:3: warning: implicit declaration of function 'GPIO_SetBits'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:290:35: error: 'GPIO_Pin_0' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:295:3: warning: implicit declaration of function 'GPIO_ResetBits'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'USB_OTG_BSP_ConfigVBUS':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:307:2: error: 'GPIO_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:307:19: error: expected ';' before 'GPIO_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:310:25: error: 'RCC_AHB1Periph_GPIOC' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:314:2: error: 'GPIO_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:314:32: error: 'GPIO_Pin_0' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:315:34: error: 'GPIO_Speed_50MHz' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:316:33: error: 'GPIO_Mode_OUT' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:317:34: error: 'GPIO_OType_PP' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:318:33: error: 'GPIO_PuPd_NOPULL' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'USB_OTG_BSP_TimeInit':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:339:2: error: 'NVIC_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:339:19: error: expected ';' before 'NVIC_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:342:2: warning: implicit declaration of function 'NVIC_SetVectorTable'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:342:22: error: 'NVIC_VectTab_FLASH' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:345:27: error: 'NVIC_PriorityGroup_2' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:348:2: error: 'NVIC_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:355:2: warning: implicit declaration of function 'RCC_APB1PeriphClockCmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:355:25: error: 'RCC_APB1Periph_TIM2' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'USB_OTG_BSP_TimerIRQ':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:410:2: warning: implicit declaration of function 'TIM_GetITStatus'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:410:28: error: 'TIM_IT_Update' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:412:3: warning: implicit declaration of function 'TIM_ClearITPendingBit'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:419:4: warning: implicit declaration of function 'TIM_Cmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'BSP_SetTime':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:451:2: error: 'TIM_TimeBaseInitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:451:27: error: expected ';' before 'TIM_TimeBaseStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:454:2: warning: implicit declaration of function 'TIM_ITConfig'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:454:21: error: 'TIM_IT_Update' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:459:3: error: 'TIM_TimeBaseStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:467:42: error: 'TIM_CounterMode_Up' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:469:2: warning: implicit declaration of function 'TIM_TimeBaseInit'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:472:2: warning: implicit declaration of function 'TIM_ARRPreloadConfig'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_exti.c: In function 'EXTI_Init':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_exti.c:124:3: warning: implicit declaration of function 'assert_param'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_tim.c: In function 'TIM_DeInit':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_tim.c:197:3: warning: implicit declaration of function 'assert_param'

BUILD FAILED
Total time: 5 seconds
Прикрепленные файлы
Прикрепленный файл  FlashTest.zip ( 221.55 килобайт ) Кол-во скачиваний: 932
 
Go to the top of the page
 
+Quote Post

3 страниц V   1 2 3 >
Closed TopicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 19th July 2025 - 21:48
Рейтинг@Mail.ru


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