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

 
 
> не компилится под IAR 6.21, STboard
MK2
сообщение Oct 1 2011, 11:29
Сообщение #1


Местный
***

Группа: Свой
Сообщений: 202
Регистрация: 30-10-10
Пользователь №: 60 535



Установил последний IAR 6.21. Перестало все компилироваться. Даже стандартные примеры из StdPeriph_Lib
пишет:
Код
Error[Pe147]: declaration is incompatible with "__interwork __softfp unsigned long __get_PSP(void)" (declared at line 52 of "E:\PRODJECT\Embedded Workbench 6.0\arm\ E:\My Document\STM32F207\stm32vldiscovery_package\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1084
inc\c\intrinsics.h")
Error[Pe147]: declaration is incompatible with "__interwork __softfp void __set_PSP(unsigned long)" (declared at line 53 of "E:\PRODJECT\Embedded Workbench 6.0\arm\ E:\My Document\STM32F207\stm32vldiscovery_package\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1094
inc\c\intrinsics.h")
Error[Pe147]: declaration is incompatible with "__interwork __softfp unsigned long __get_MSP(void)" (declared at line 50 of "E:\PRODJECT\Embedded Workbench 6.0\arm\ E:\My Document\STM32F207\stm32vldiscovery_package\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1104
inc\c\intrinsics.h")
Error[Pe147]: declaration is incompatible with "__interwork __softfp void __set_MSP(unsigned long)" (declared at line 51 of "E:\PRODJECT\Embedded Workbench 6.0\arm\ E:\My Document\STM32F207\stm32vldiscovery_package\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1114
inc\c\intrinsics.h")
Error[Pe147]: declaration is incompatible with "__interwork __softfp unsigned long __REV16(unsigned long)" (declared at line 173 of "E:\PRODJECT\Embedded Workbench  E:\My Document\STM32F207\stm32vldiscovery_package\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1124
6.0\arm\inc\c\intrinsics.h")
Error[Pe147]: declaration is incompatible with "__interwork __softfp unsigned long __RBIT(unsigned long)" (declared at line 174 of "E:\PRODJECT\Embedded Workbench 6.0\ E:\My Document\STM32F207\stm32vldiscovery_package\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1134
arm\inc\c\intrinsics.h")
Error[Pe147]: declaration is incompatible with "__interwork __softfp unsigned long __STREXB(unsigned char, unsigned char *)" (declared at line 181 of "E:\PRODJECT\ E:\My Document\STM32F207\stm32vldiscovery_package\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1175
Embedded Workbench 6.0\arm\inc\c\intrinsics.h")
Error[Pe147]: declaration is incompatible with "__interwork __softfp unsigned long __STREXH(unsigned short, unsigned short *)" (declared at line 182 of "E:\PRODJECT\ E:\My Document\STM32F207\stm32vldiscovery_package\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1186
Embedded Workbench 6.0\arm\inc\c\intrinsics.h")
Error while running C/C++ Compiler
startup_stm32f10x_md_vl.s
stm32f10x_flash.c  
.................................. ну и остальное в таком же духе что то ему CMSISкие файлы не нравятся


облазил всю справку но нигде не нашел эту ошибку "Error[Pe147]: declaration is incompatible with"
может надо что-то в настройках проекта поменять?
Go to the top of the page
 
+Quote Post
 
Start new topic
Ответов
pesicot
сообщение Oct 8 2011, 20:41
Сообщение #2





Группа: Новичок
Сообщений: 1
Регистрация: 8-10-11
Пользователь №: 67 619



Столкнулся с такой же проблемой.

Release note for IAR ARM 6.21

A special note on CMSIS integration:

If your application source code include CMSIS header files explicitly, then you should not check the Use CMSIS check-box Project>Options...>General Options>Library Configuration>Use CMSIS. Some of the Cortex-M application examples includes CMSIS source files explicitly, do not check the said check-box in these projects.


Нужно:
  • Установить Project>Options...>General Options>Library Configuration>Use CMSIS
  • Удалить из проекти и из его папки файлы core_cm3.c и core_cm3.h.


Во вложении рабочий проект для STM32-Discovery под IAR ARM 6.21
Прикрепленные файлы
Прикрепленный файл  STM32.zip ( 102.34 килобайт ) Кол-во скачиваний: 47
 
Go to the top of the page
 
+Quote Post



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

 


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


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