اطلاعیه

Collapse
No announcement yet.

مشکل CMSIS و IAR

Collapse
X
 
  • فیلتر
  • زمان
  • Show
Clear All
new posts

    مشکل CMSIS و IAR

    سلام

    من CMSIS برای STM32f103 رو از st دانلود کردم .

    template که برای IAR گزاشته را وقتی کامپایل میکنم 600 تا ارور میده .اینا چی هستن ؟
    همه هم برای فایل intrincis :

    Error[Pe147]: declaration is incompatible with "__nounwind __interwork __softfp unsigned long ..\stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\ CMSIS\CM3\CoreSupport\core_cm3.h 1186

    Error[Pe147]: declaration is incompatible with "__nounwind __interwork __softfp unsigned long __get_PSP(void)" ...\stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\ CMSIS\CM3\CoreSupport\core_cm3.h 1084

    Error[Pe147]: declaration is incompatible with "__nounwind __interwork __softfp void __set_MSP(unsigned long)" ...stsw-stm32054\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\ CMSIS\CM3\CoreSupport\core_cm3.h 1114
    .
    .
    .
    .
    از جمله ی رفتگان این راه دراز
    باز آمده ای کو که به ما گوید راز
    هان بر سر این دو راهه از روی نیاز
    چیزی نگذاری که نمی آیی باز

    #2
    پاسخ : مشکل CMSIS و IAR

    Please follow the following steps:
    under project options:
    1- on the "General Options" option in the "Library Configuration" tab
    check the checkbox “Use CMSIS”
    2- on the "C/C++ Compiler" option in the "Preprocessor" tab
    remove the include directory of CM3 "$PROJ_DIR$\..\..\Libraries\CMSIS\CM3\CoreSup port"

    از جمله ی رفتگان این راه دراز
    باز آمده ای کو که به ما گوید راز
    هان بر سر این دو راهه از روی نیاز
    چیزی نگذاری که نمی آیی باز

    دیدگاه

    لطفا صبر کنید...
    X