Russian Qt Forum
Ноябрь 22, 2024, 17:17 *
Добро пожаловать, Гость. Пожалуйста, войдите или зарегистрируйтесь.
Вам не пришло письмо с кодом активации?

Войти
 
  Начало   Форум  WIKI (Вики)FAQ Помощь Поиск Войти Регистрация  

Страниц: [1] 2   Вниз
  Печать  
Автор Тема: Настройки QBS для сборки под STM32f429I-DISCO  (Прочитано 15675 раз)
ЙадоФитый ПлюсЧ
Новичок

Offline Offline

Сообщений: 40


Просмотр профиля
« : Март 21, 2016, 11:14 »

Ранее я смог настроить сборку QBS проектов для STM32F103 как с поддержкой FreeRTOS так и без нее. Для Qt-Creator сделал шаблоны визарда. Не без проблем, но более-менее спокойно.

Пытаюсь настроить шаблон QBS для проектов с FreeRTOS для платы STM32F429I-Dico. В качестве тестового проекта взял проект осцилографа.

В чистом GCC командами
Код
Bash
cd ~/build/STM32F429I-Disco/obj
echo "Compiler"
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -g2 -Wall -O0 -c -DSTM32F4XX -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F429_439xx -DARM_MATH_CM4 -D__FPU_USED -D__FPU_PRESENT=1 -IE:/STM32 -I../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/include -I../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis -I../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib -I../STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib -I../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot -I../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib -I../STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib -I../STM32F429-Disco_FreeRTSOS/src ../STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib/oszi.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/stm32_ub_sdram.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_cfft_radix4_f32.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source/stm32f4xx_dma2d.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_common_tables.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_rfft_f32.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/stm32_ub_i2c3.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source/stm32f4xx_usart.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib/fft.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source/stm32f4xx_ltdc.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/startup/startup_stm32f4xx.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/stm32_ub_led.c ../STM32F429-Disco_FreeRTSOS/src/App/main.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source/stm32f4xx_rcc.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_rfft_init_f32.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source/stm32f4xx_adc.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/stm32_ub_systick.c ../STM32F429-Disco_FreeRTSOS/src/Drivers/stdio/printf.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/stm32_ub_button.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/font/ub_font_arial_7x10.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/stm32_ub_uart.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_cmplx_mag_f32.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/stm32_ub_graphic2d.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib/menu.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/stm32_ub_lcd_ili9341.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder/GUI1.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source/stm32f4xx_gpio.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/stm32_ub_font.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/system_stm32f4xx.c ../STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/stm32_ub_spi5.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder/GUI2.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source/stm32f4xx_dma.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib/adc.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source/stm32f4xx_fmc.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source/stm32f4xx_spi.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source/stm32f4xx_i2c.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source/misc.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/stm32_ub_touch_stmpe811.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_max_f32.c ../STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_cfft_radix4_init_f32.c ../STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source/stm32f4xx_tim.c
 
cd ~/build/STM32F429I-Disco/bin
echo "Linker"
arm-none-eabi-gcc -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -g2 -nostartfiles -Wl,-Map=stm32f429.map -O0 -Wl,--gc-sections -L../STM32F429-Disco_FreeRTSOS/src -Wl,-T../STM32F429-Disco_FreeRTSOS/ldscripts/ub_linkerscript_stm32f429i_disco.ld -g -o stm32f429.elf ../obj/stm32f4xx_gpio.o ../obj/stm32f4xx_usart.o ../obj/stm32f4xx_dma.o ../obj/stm32_ub_led.o ../obj/GUI2.o ../obj/stm32f4xx_ltdc.o ../obj/oszi.o ../obj/stm32f4xx_spi.o ../obj/arm_rfft_f32.o ../obj/misc.o ../obj/stm32f4xx_adc.o ../obj/arm_cfft_radix4_f32.o ../obj/syscalls.o ../obj/stm32f4xx_fmc.o ../obj/stm32f4xx_i2c.o ../obj/arm_max_f32.o ../obj/arm_rfft_init_f32.o ../obj/arm_cmplx_mag_f32.o ../obj/printf.o ../obj/ub_font_arial_7x10.o ../obj/stm32_ub_i2c3.o ../obj/arm_common_tables.o ../obj/stm32_ub_touch_stmpe811.o ../obj/startup_stm32f4xx.o ../obj/stm32f4xx_rcc.o ../obj/stm32_ub_graphic2d.o ../obj/stm32_ub_font.o ../obj/adc.o ../obj/system_stm32f4xx.o ../obj/stm32_ub_uart.o ../obj/arm_cfft_radix4_init_f32.o ../obj/stm32_ub_button.o ../obj/stm32_ub_spi5.o ../obj/GUI1.o ../obj/stm32f4xx_tim.o ../obj/menu.o ../obj/stm32_ub_sdram.o ../obj/stm32f4xx_dma2d.o ../obj/stm32_ub_lcd_ili9341.o ../obj/main.o ../obj/fft.o ../obj/stm32_ub_systick.o -lm -lgcc -lc

Все нормально собирается (без вывода ворнингов), и готовый elf-файл можно спокойно обжкопинуть в hex или bin и прошить. Все работает.

Все obj-файл сложены в один каталог.

Но вот QBS c настройками:
Application.qbs
Код
Javascript
import qbs
 
Project {
   qbsSearchPaths: "qbs"
   references: [
       "src/src.qbs"
   ]
}
src.qbs
Код
Javascript
import qbs
import Stm32Application
import qbs.FileInfo
import qbs.ModUtils
 
Stm32Application {
   name: "Application"
 
   cpp.includePaths: [
       "App",
       "AppLib",
       "AppLib/fft_lib",
       "AppLib/ub_lib",
       "AppLib/ub_lib/bilder",
       "AppLib/ub_lib/font",
       "AppLib/uboszi_lib",
       "Drivers",
       "Drivers/stdio",
       "Libs",
       "Libs/cmsis",
       "Libs/cmsis_boot",
       "Libs/cmsis_boot/startup",
       "Libs/cmsis_lib",
       "Libs/cmsis_lib/include",
       "Libs/cmsis_lib/source",
       "Syscalls"
   ]
   cpp.defines: [
       "STM32F4XX",
       "STM32F429_439xx",
       "USE_STDPERIPH_DRIVER",
       "HSE_VALUE=168000000",
   ]
   Properties {
       condition: cpp.debugInformation
       cpp.defines: outer.concat("DEBUG")
   }
 
   cpp.linkerScripts: [
       "../ldscripts/ub_linkerscript_stm32f429i_disco.ld",
   ]
 
   Group {
       name: "sources"
       prefix: "../**/"
       files: [
           "*.c",
           "*.cpp",
           "*.h",
           "*.s"
       ]
       excludeFiles: [
           "ipv6/*.*",
           "test/unit/**/*.*",
       ]
       cpp.cxxFlags: [ "-std=c++11" ]
       cpp.cFlags: [ "-std=gnu99" ]
       cpp.warningLevel: "all"
   }
   Group {
       name: "ldscripts"
       prefix: "../ldscripts/"
       files: "*.ld"
   }
}
 
Stm32Application.qbs
Код
Javascript
import qbs
 
Stm32Product {
   type: "application" // To suppress bundle generation on Mac
   consoleApplication: true
 
   cpp.positionIndependentCode: false
   cpp.executableSuffix: ".elf"
   cpp.linkerFlags: {
       base.push("-Xlinker");
       base.push("--gc-sections");
       return base;
   }
}

STM32Product.qbs
Код
Javascript
import qbs
 
Product {
   Depends { name: "cpp" }
 
   cpp.commonCompilerFlags: [
       "-mcpu=cortex-m4",
       "-mthumb",
 
       "-c",
       "-DSTM32F4XX",
        "-DSTM32F429ZI",
       "-DUSE_STDPERIPH_DRIVER",
       "-D__ASSEMBLY__",
       "-DSTM32F429_439xx",
       "-DARM_MATH_CM4",
       "-D__FPU_USED",
       "-D__FPU_PRESENT=1",
       "-mfpu=fpv4-sp-d16",
       "-mfloat-abi=softfp"
   ]
   cpp.linkerFlags: [
       "-mcpu=cortex-m4",
       "-mthumb",
       "-g2",
       "-nostartfiles",
       "-Wl,-Map=stm32f429.map",
       "-O0",
       "-Wl,--gc-sections",
       "-lm",
       "-lgcc",
       "-lc",
       "-mfpu=fpv4-sp-d16",
       "-mfloat-abi=softfp"
   ]
}
Собирается с другими опциями, кусками и кучей ворнингов. К тому же код получается нерабочим на конечном устройстве.

obj -файлы раскиданы по подкаталогам в каталоге ~/Develop/build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/Application.qtc-STM32-041964a9.2979eb4b

Помогите, пожалуста, заставить QBS собирать проект правильно?
Заранее, спасибо!
« Последнее редактирование: Март 21, 2016, 12:04 от ЙадоФитый ПлюсЧ » Записан
ЙадоФитый ПлюсЧ
Новичок

Offline Offline

Сообщений: 40


Просмотр профиля
« Ответ #1 : Март 21, 2016, 11:16 »

Лог сборки в QBS (первая часть):
Код
Bash
13:49:27: Выполняются этапы для проекта STM32F429ZI-Discovery...
compiling printf.c
compiling syscalls.c
compiling arm_cfft_radix4_init_f32.c
compiling arm_cfft_radix4_f32.c
/opt/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-gcc -g -O0 -Wall -Wextra -pipe -fvisibility=default -mcpu=cortex-m4 -mthumb -c -DSTM32F4XX -DSTM32F429ZI -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F429_439xx -DARM_MATH_CM4 -D__FPU_USED -D__FPU_PRESENT=1 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu99 -DSTM32F4XX -DSTM32F429_439xx -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=168000000 -DDEBUG -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/font -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/startup -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/include -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls -c /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c -o /home/yamah/Develop/build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/Application.qtc-STM32-041964a9.2979eb4b/.obj/c483ae70643438df/syscalls.c.o
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c: In function 'link':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c:32:16: warning: unused parameter 'old' [-Wunused-parameter]
int link(char *old, char *new) {
               ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c:32:27: warning: unused parameter 'new' [-Wunused-parameter]
int link(char *old, char *new) {
                          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c: In function '_close':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c:37:16: warning: unused parameter 'file' [-Wunused-parameter]
int _close(int file)
               ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c: In function '_fstat':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c:43:16: warning: unused parameter 'file' [-Wunused-parameter]
int _fstat(int file, struct stat *st)
               ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c: In function '_isatty':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c:50:17: warning: unused parameter 'file' [-Wunused-parameter]
int _isatty(int file)
                ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c: In function '_lseek':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c:56:16: warning: unused parameter 'file' [-Wunused-parameter]
int _lseek(int file, int ptr, int dir)
               ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c:56:26: warning: unused parameter 'ptr' [-Wunused-parameter]
int _lseek(int file, int ptr, int dir)
                         ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c:56:35: warning: unused parameter 'dir' [-Wunused-parameter]
int _lseek(int file, int ptr, int dir)
                                  ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c: In function '_read':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c:61:15: warning: unused parameter 'file' [-Wunused-parameter]
int _read(int file, char *ptr, int len)
              ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c:61:27: warning: unused parameter 'ptr' [-Wunused-parameter]
int _read(int file, char *ptr, int len)
                          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c:61:36: warning: unused parameter 'len' [-Wunused-parameter]
int _read(int file, char *ptr, int len)
                                   ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c: In function '_write':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c:66:16: warning: unused parameter 'file' [-Wunused-parameter]
int _write(int file, char *ptr, int len)
               ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls/syscalls.c:66:28: warning: unused parameter 'ptr' [-Wunused-parameter]
int _write(int file, char *ptr, int len)
                           ^
compiling arm_common_tables.c
/opt/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-gcc -g -O0 -Wall -Wextra -pipe -fvisibility=default -mcpu=cortex-m4 -mthumb -c -DSTM32F4XX -DSTM32F429ZI -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F429_439xx -DARM_MATH_CM4 -D__FPU_USED -D__FPU_PRESENT=1 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu99 -DSTM32F4XX -DSTM32F429_439xx -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=168000000 -DDEBUG -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/font -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/startup -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/include -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls -c /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio/printf.c -o /home/yamah/Develop/build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/Application.qtc-STM32-041964a9.2979eb4b/.obj/b3fbddc16f9be6a9/printf.c.o
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio/printf.c: In function 'PrintChar':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio/printf.c:18:21: warning: unused parameter 'c' [-Wunused-parameter]
void PrintChar(char c)
                    ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio/printf.c: At top level:
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio/printf.c:31:8: warning: missing initializer for field '_inc' of 'struct _reent' [-Wmissing-field-initializers]
struct _reent r = {0, (FILE *) 0, (FILE *) 1, (FILE *) 0};
       ^
In file included from /opt/gcc-arm-none-eabi-4_9-2014q4/arm-none-eabi/include/stdio.h:47:0,
                from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio/printf.c:7:
/opt/gcc-arm-none-eabi-4_9-2014q4/arm-none-eabi/include/sys/reent.h:578:8: note: '_inc' declared here
  int  _inc;   /* used by tmpnam */
       ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio/printf.c: In function 'vsnprintf':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio/printf.c:280:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    while (*pFormat != 0 && size < length) {
                                 ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio/printf.c:317:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
            if (size + width > length) {
                             ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio/printf.c:342:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (size < length) {
             ^
compiling arm_rfft_init_f32.c
/opt/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-gcc -g -O0 -Wall -Wextra -pipe -fvisibility=default -mcpu=cortex-m4 -mthumb -c -DSTM32F4XX -DSTM32F429ZI -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F429_439xx -DARM_MATH_CM4 -D__FPU_USED -D__FPU_PRESENT=1 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu99 -DSTM32F4XX -DSTM32F429_439xx -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=168000000 -DDEBUG -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/font -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/startup -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/include -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls -c /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_cfft_radix4_init_f32.c -o /home/yamah/Develop/build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/Application.qtc-STM32-041964a9.2979eb4b/.obj/c9b3de592116f4ec/arm_cfft_radix4_init_f32.c.o
In file included from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_cfft_radix4_init_f32.c:37:0:
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_f32':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5397:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if(i >= S->nValues)
             ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q31':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5449:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q15':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5508:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q7':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5566:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(index >= (nValues - 1))
             ^
compiling arm_rfft_f32.c
/opt/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-gcc -g -O0 -Wall -Wextra -pipe -fvisibility=default -mcpu=cortex-m4 -mthumb -c -DSTM32F4XX -DSTM32F429ZI -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F429_439xx -DARM_MATH_CM4 -D__FPU_USED -D__FPU_PRESENT=1 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu99 -DSTM32F4XX -DSTM32F429_439xx -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=168000000 -DDEBUG -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/font -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/startup -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/include -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls -c /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_common_tables.c -o /home/yamah/Develop/build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/Application.qtc-STM32-041964a9.2979eb4b/.obj/c9b3de592116f4ec/arm_common_tables.c.o
In file included from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_common_tables.c:31:0:
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_f32':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5397:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if(i >= S->nValues)
             ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q31':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5449:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q15':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5508:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q7':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5566:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(index >= (nValues - 1))
             ^
compiling arm_max_f32.c
/opt/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-gcc -g -O0 -Wall -Wextra -pipe -fvisibility=default -mcpu=cortex-m4 -mthumb -c -DSTM32F4XX -DSTM32F429ZI -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F429_439xx -DARM_MATH_CM4 -D__FPU_USED -D__FPU_PRESENT=1 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu99 -DSTM32F4XX -DSTM32F429_439xx -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=168000000 -DDEBUG -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/font -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/startup -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/include -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls -c /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_cfft_radix4_f32.c -o /home/yamah/Develop/build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/Application.qtc-STM32-041964a9.2979eb4b/.obj/c9b3de592116f4ec/arm_cfft_radix4_f32.c.o
In file included from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_cfft_radix4_f32.c:37:0:
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_f32':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5397:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if(i >= S->nValues)
             ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q31':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5449:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q15':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5508:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q7':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5566:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(index >= (nValues - 1))
             ^
Записан
ЙадоФитый ПлюсЧ
Новичок

Offline Offline

Сообщений: 40


Просмотр профиля
« Ответ #2 : Март 21, 2016, 11:18 »

Лог сборки в QBS (вторая часть):
Код
Bash
compiling arm_cmplx_mag_f32.c
/opt/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-gcc -g -O0 -Wall -Wextra -pipe -fvisibility=default -mcpu=cortex-m4 -mthumb -c -DSTM32F4XX -DSTM32F429ZI -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F429_439xx -DARM_MATH_CM4 -D__FPU_USED -D__FPU_PRESENT=1 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu99 -DSTM32F4XX -DSTM32F429_439xx -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=168000000 -DDEBUG -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/font -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/startup -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/include -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls -c /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_rfft_f32.c -o /home/yamah/Develop/build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/Application.qtc-STM32-041964a9.2979eb4b/.obj/c9b3de592116f4ec/arm_rfft_f32.c.o
In file included from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_rfft_f32.c:33:0:
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_f32':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5397:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if(i >= S->nValues)
             ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q31':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5449:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q15':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5508:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q7':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5566:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(index >= (nValues - 1))
             ^
compiling startup_stm32f4xx.c
/opt/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-gcc -g -O0 -Wall -Wextra -pipe -fvisibility=default -mcpu=cortex-m4 -mthumb -c -DSTM32F4XX -DSTM32F429ZI -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F429_439xx -DARM_MATH_CM4 -D__FPU_USED -D__FPU_PRESENT=1 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu99 -DSTM32F4XX -DSTM32F429_439xx -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=168000000 -DDEBUG -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/font -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/startup -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/include -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls -c /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_rfft_init_f32.c -o /home/yamah/Develop/build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/Application.qtc-STM32-041964a9.2979eb4b/.obj/c9b3de592116f4ec/arm_rfft_init_f32.c.o
In file included from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_rfft_init_f32.c:34:0:
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_f32':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5397:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if(i >= S->nValues)
             ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q31':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5449:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q15':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5508:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q7':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5566:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(index >= (nValues - 1))
             ^
compiling stm32f4xx_fmc.c
/opt/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-gcc -g -O0 -Wall -Wextra -pipe -fvisibility=default -mcpu=cortex-m4 -mthumb -c -DSTM32F4XX -DSTM32F429ZI -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F429_439xx -DARM_MATH_CM4 -D__FPU_USED -D__FPU_PRESENT=1 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu99 -DSTM32F4XX -DSTM32F429_439xx -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=168000000 -DDEBUG -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/font -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/startup -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/include -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls -c /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_max_f32.c -o /home/yamah/Develop/build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/Application.qtc-STM32-041964a9.2979eb4b/.obj/c9b3de592116f4ec/arm_max_f32.c.o
In file included from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_max_f32.c:30:0:
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_f32':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5397:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if(i >= S->nValues)
             ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q31':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5449:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q15':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5508:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q7':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5566:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(index >= (nValues - 1))
             ^
compiling main.c
compiling stm32_ub_uart.c
/opt/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-gcc -g -O0 -Wall -Wextra -pipe -fvisibility=default -mcpu=cortex-m4 -mthumb -c -DSTM32F4XX -DSTM32F429ZI -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F429_439xx -DARM_MATH_CM4 -D__FPU_USED -D__FPU_PRESENT=1 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu99 -DSTM32F4XX -DSTM32F429_439xx -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=168000000 -DDEBUG -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/font -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/startup -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/include -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls -c /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_cmplx_mag_f32.c -o /home/yamah/Develop/build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/Application.qtc-STM32-041964a9.2979eb4b/.obj/c9b3de592116f4ec/arm_cmplx_mag_f32.c.o
In file included from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_cmplx_mag_f32.c:30:0:
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_f32':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5397:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if(i >= S->nValues)
             ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q31':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5449:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q15':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5508:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q7':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5566:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(index >= (nValues - 1))
             ^
Записан
ЙадоФитый ПлюсЧ
Новичок

Offline Offline

Сообщений: 40


Просмотр профиля
« Ответ #3 : Март 21, 2016, 11:19 »

Лог сборки в QBS (третья часть):
Код
Bash
compiling menu.c
compiling stm32f4xx_ltdc.c
/opt/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-gcc -g -O0 -Wall -Wextra -pipe -fvisibility=default -mcpu=cortex-m4 -mthumb -c -DSTM32F4XX -DSTM32F429ZI -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F429_439xx -DARM_MATH_CM4 -D__FPU_USED -D__FPU_PRESENT=1 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu99 -DSTM32F4XX -DSTM32F429_439xx -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=168000000 -DDEBUG -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/font -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/startup -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/include -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls -c /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App/main.c -o /home/yamah/Develop/build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/Application.qtc-STM32-041964a9.2979eb4b/.obj/fc4a695f02a8a53a/main.c.o
In file included from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib/fft.h:15:0,
                from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib/oszi.h:24,
                from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App/main.c:21:
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_f32':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5397:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if(i >= S->nValues)
             ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q31':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5449:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q15':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5508:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q7':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5566:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(index >= (nValues - 1))
             ^
compiling stm32f4xx_spi.c
compiling fft.c
compiling GUI1.c
compiling adc.c
/opt/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-gcc -g -O0 -Wall -Wextra -pipe -fvisibility=default -mcpu=cortex-m4 -mthumb -c -DSTM32F4XX -DSTM32F429ZI -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F429_439xx -DARM_MATH_CM4 -D__FPU_USED -D__FPU_PRESENT=1 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu99 -DSTM32F4XX -DSTM32F429_439xx -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=168000000 -DDEBUG -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/font -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/startup -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/include -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls -c /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib/fft.c -o /home/yamah/Develop/build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/Application.qtc-STM32-041964a9.2979eb4b/.obj/a89734a4c67740af/fft.c.o
In file included from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib/fft.h:15:0,
                from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib/fft.c:24:
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_f32':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5397:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if(i >= S->nValues)
             ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q31':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5449:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q15':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5508:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q7':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5566:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(index >= (nValues - 1))
             ^
compiling oszi.c
compiling stm32_ub_button.c
compiling stm32f4xx_dma.c
compiling stm32f4xx_tim.c
compiling GUI2.c
/opt/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-gcc -g -O0 -Wall -Wextra -pipe -fvisibility=default -mcpu=cortex-m4 -mthumb -c -DSTM32F4XX -DSTM32F429ZI -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F429_439xx -DARM_MATH_CM4 -D__FPU_USED -D__FPU_PRESENT=1 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu99 -DSTM32F4XX -DSTM32F429_439xx -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=168000000 -DDEBUG -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/App -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/bilder -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/ub_lib/font -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Drivers/stdio -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_boot/startup -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/include -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Libs/cmsis_lib/source -I/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/Syscalls -c /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib/oszi.c -o /home/yamah/Develop/build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/Application.qtc-STM32-041964a9.2979eb4b/.obj/a89734a4c67740af/oszi.c.o
In file included from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib/fft.h:15:0,
                from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib/oszi.h:24,
                from /home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/uboszi_lib/oszi.c:19:
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_f32':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5397:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if(i >= S->nValues)
             ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q31':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5449:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q15':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5508:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if(index >= (nValues - 1))
          ^
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h: In function 'arm_linear_interp_q7':
/home/yamah/Develop/STM32F429-Disco_FreeRTSOS/src/AppLib/fft_lib/arm_math.h:5566:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(index >= (nValues - 1))
             ^
compiling stm32_ub_font.c
compiling stm32f4xx_dma2d.c
compiling misc.c
compiling stm32_ub_lcd_ili9341.c
compiling stm32_ub_led.c
compiling stm32_ub_graphic2d.c
compiling stm32f4xx_gpio.c
compiling stm32_ub_systick.c
compiling ub_font_arial_7x10.c
compiling stm32f4xx_adc.c
compiling stm32_ub_i2c3.c
compiling stm32_ub_touch_stmpe811.c
compiling stm32f4xx_usart.c
compiling system_stm32f4xx.c
compiling stm32f4xx_rcc.c
compiling stm32_ub_spi5.c
compiling stm32_ub_sdram.c
compiling stm32f4xx_i2c.c
linking Application.elf
13:49:28: Прошло времени: 00:01.
Записан
ЙадоФитый ПлюсЧ
Новичок

Offline Offline

Сообщений: 40


Просмотр профиля
« Ответ #4 : Март 21, 2016, 11:20 »

В обоих случаях скрипт линковки один и тот же
Код
C++ (Qt)
/* 18.12.2013 angepasst von UB auf STM32f429i-Disco-Board */
 
 
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
/* Internal Memory Map*/
MEMORY
{
rom (rx)    : ORIGIN = 0x08000000, LENGTH = 0x00200000
ram (rwx)   : ORIGIN = 0x20000000, LENGTH = 0x00030000
ram1 (rwx)  : ORIGIN = 0x10000000, LENGTH = 0x00010000
sdram (rwx) : ORIGIN = 0xD0100000, LENGTH = 0x00400000
}
 
_eram = 0x20000000 + 0x00020000;
/* Section Definitions */
SECTIONS
{
   .text :
   {
       KEEP(*(.isr_vector .isr_vector.*))
       *(.text .text.* .gnu.linkonce.t.*)      
       *(.glue_7t) *(.glue_7)                
       *(.rodata .rodata* .gnu.linkonce.r.*)                      
   } > rom
 
   .ARM.extab :
   {
       *(.ARM.extab* .gnu.linkonce.armextab.*)
   } > rom
 
   __exidx_start = .;
   .ARM.exidx :
   {
       *(.ARM.exidx* .gnu.linkonce.armexidx.*)
   } > rom
   __exidx_end = .;
 
   . = ALIGN(4);
   _etext = .;
   _sidata = .;
 
   .data : AT (_etext)
   {
       _sdata = .;
       *(.data .data.*)
       . = ALIGN(4);
       _edata = . ;
   } > ram
 
   /* .bss section which is used for uninitialized data */
   .bss (NOLOAD) :
   {
       _sbss = . ;
       *(.bss .bss.*)
       *(COMMON)
       . = ALIGN(4);
       _ebss = . ;
   } > ram
 
   /* stack section */
   .co_stack (NOLOAD):
   {
       . = ALIGN(8);
       *(.co_stack .co_stack.*)
   } > ram
 
   . = ALIGN(4);
   _end = . ;
 
   .HeapMemSection :
   {
       *(.HeapMemSection)
   } > sdram
}
Записан
Old
Джедай : наставник для всех
*******
Offline Offline

Сообщений: 4350



Просмотр профиля
« Ответ #5 : Март 21, 2016, 11:49 »

Куча предупреждений у вас о том, что нельзя сравнивать знаковые и беззнаковые и показываются они из-за флага -Wextra.
По поводу работоспособности... для беглого просмотра опций особых различий не увидел. Попробуйте для начала сравнить map-файлы.
Записан
ЙадоФитый ПлюсЧ
Новичок

Offline Offline

Сообщений: 40


Просмотр профиля
« Ответ #6 : Март 21, 2016, 12:01 »

По поводу работоспособности... для беглого просмотра опций особых различий не увидел. Попробуйте для начала сравнить map-файлы.
Map-файла в каталоге сборки нет. Грустный

А дублирующие опции компилятора с разными значениями не мешают друг-другу?
Записан
Old
Джедай : наставник для всех
*******
Offline Offline

Сообщений: 4350



Просмотр профиля
« Ответ #7 : Март 21, 2016, 12:08 »

А дублирующие опции компилятора с разными значениями не мешают друг-другу?
Применяется последнее значение.
Записан
Old
Джедай : наставник для всех
*******
Offline Offline

Сообщений: 4350



Просмотр профиля
« Ответ #8 : Март 21, 2016, 12:10 »

Map-файла в каталоге сборки нет. Грустный
Добавьте опцию его создания к себе:
-Wl,-Map=stm32f429.map
Записан
ЙадоФитый ПлюсЧ
Новичок

Offline Offline

Сообщений: 40


Просмотр профиля
« Ответ #9 : Март 21, 2016, 12:36 »

Да вроде он в опциях линковки есть
Код
Javascript
cpp.linkerFlags: [
       "-mcpu=cortex-m4",
       "-mthumb",
       "-g2",
       "-nostartfiles",
       "-Wl,-Map=stm32f429.map",
       "-O0",
       "-Wl,--gc-sections",
       "-lm",
       "-lgcc",
       "-lc",
       "-mfpu=fpv4-sp-d16",
       "-mfloat-abi=softfp"
   ]

QBS почему-то не отображает саму команду линковки и процесс ее выполнения в Qt-Creator.

Цитировать
Применяется последнее значение.
Спасибо, буду знать. Улыбающийся
Записан
ЙадоФитый ПлюсЧ
Новичок

Offline Offline

Сообщений: 40


Просмотр профиля
« Ответ #10 : Март 22, 2016, 08:25 »

Нашел, куда QBS пишет map-файл
Во вложении:
stm32f429.map - созлданный ручным процессом компилирования и линковки
stm32f429_qbs.map - созлданный QBS
stm32f429_qbs_clear.map -  - созлданный QBS и приведенный к виду по путям к файлов, как в мапе ручной сборки
map.diff - сравнение stm32f429.map и stm32f429_qbs_clear.map
Записан
alex312
Хакер
*****
Offline Offline

Сообщений: 606



Просмотр профиля
« Ответ #11 : Март 22, 2016, 10:21 »

ЙадоФитый ПлюсЧ, у вас какой-то кавардак с дефайнами.
Первое, что мне не понравилось - HSE_VALUE=168000000. HSE_VALUE должен быть равен частоте внешнего кварца, а это обычно 8МГц.
Во вторых, куча обьявлений STM32F4XX,STM32F429ZI,STM32F429_439xx - тут надо определится.

А еще, если ты хочеш использовать FPU, то тебе не надо указывать "-D__FPU_USED",  "-D__FPU_PRESENT=1". Надо к опциям компилятора и линкера добавить "-mfloat-abi=hard","-mfpu=fpv4-sp-d16", а вы добавляете "-mfloat-abi=softfp".

Ну, и хотелось бы знать в чем выражается неработоспособность.
Может стоит выложить проект?
Записан
ЙадоФитый ПлюсЧ
Новичок

Offline Offline

Сообщений: 40


Просмотр профиля
« Ответ #12 : Март 22, 2016, 11:41 »

Проект не мой вообще.
Ссылку на сам проект я дал в первом сообщении. QBS-файлы выложил. Думал, что будет достаточно. Грустный

Файл во вложении. Не смотря на присутсвие в названии FreeRTOS, ее там нет. Просто распаковал проект в папку с таким названием.

Опции компиятора брал из проект под Coocox.

"HSE_VALUE=168000000" - это от импортированного QBS проекта для STM32F407-Discovery
Для STM32F103RET я использую 72000000 Гц. Там все собирается в QBS и работает, включая отладку в Qt-Creator.

"Не работает" тут как повезет, может вообше не запуститься, но чаще всего зависает сразу после того как два раза мигнут светодиодом.

Проект настраивал по этому руководству.
« Последнее редактирование: Март 22, 2016, 11:56 от ЙадоФитый ПлюсЧ » Записан
alex312
Хакер
*****
Offline Offline

Сообщений: 606



Просмотр профиля
« Ответ #13 : Март 23, 2016, 09:46 »

Ну, в общем, я посмотрел проект. Может я чегото не понимаю, но мне не понравилось как выдедяется стек.
Тем более, если ты говориш что диодик таки пару раз мигает. Это могут быть проблемы со стеком.

Так что, возможно, лучше взять проект из примеров SPL вместе со скриптом линкера.
Записан
ЙадоФитый ПлюсЧ
Новичок

Offline Offline

Сообщений: 40


Просмотр профиля
« Ответ #14 : Март 23, 2016, 20:51 »

Хорошо, попробую примеры.

Мне непонятно только:
Почему один и тот же компилятор (физически один исполняемый файл) таки создает рабочий код, если ему подсунуть команды компиялции и линковки с опциями компилятора от Coocox, и не создает, если те же опции компилятора прописать в QBS.
Записан
Страниц: [1] 2   Вверх
  Печать  
 
Перейти в:  


Страница сгенерирована за 0.291 секунд. Запросов: 23.