This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error from my own blinky

Hello guys,

I'm new to ARM and Keil software. I have experience in assembler with the 8051 series but this is a whole new thing for me.
I bought an XMC4200 application board and was able to use the blinky script and understand the script.
Now i'm making my own blinky example from scratch.
The code is identically to the first blinky.
When i compile the code i receive this error message:

C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include\arm_math.h(341): error: #35: #error directive: "Define according the used Cortex core ARM_MATH_CM7, ARM_MATH_CM4, ARM_MATH_CM3, ARM_MATH_CM0PLUS, ARM_MATH_CM0, ARM_MATH_ARMV8MBL, ARM_MATH_ARMV8MML" #error "Define according the used Cortex core ARM_MATH_CM7, ARM_MATH_CM4, ARM_MATH_CM3, ARM_MATH_CM0PLUS, ARM_MATH_CM0, ARM_MATH_ARMV8MBL, ARM_MATH_ARMV8MML"

I have no idea why this error happened and how to solve it. Could somebody help me with this please?
Thank you in advance!

Parents
  • Hello Michiel,

    It looks like you are using the CMSIS-DSP Libraries. There are pre-made examples you can reference inside the CMSIS Pack. They will show you how to setup your device.

    * Open c:\Keil_v5\uv4\PackInstaller.exe

    * On the top left of the screen, under "Devices" type "ARM Cortex M0" - the list filters below. Click on the "ARM Cortex M0" entry - on the right of the screen, the "Packs" section filters down to parts relevant to this device.

    * On the top right of the screen, click the "Examples" tab. In the list, next to the "DSP_Lib Class Marks" example entry, click the "Copy" button - a "Copy Example" dialog appears.

    * Choose a place to copy the project, click both the checkboex and press the "OK" button - the project opens.

    You can read more about this example at:

    http://www.keil.com/pack/doc/CMSIS/DSP/html/group__ClassMarks.html

    ====

    In the Keil IDE, under Project -> Options for Target -> 'C/C++' tab, note that the example defines the preprocessor symbol "ARM_MATH_CM0".

    The reason for this - the DSP libraries are actually optimized based on architecture, so specifying the type here picks the correct library functions.

    There is a good example of these libraries in action here:

    www.youtube.com/watch

    Another good resource:
    www.youtube.com/watch

    See also:
    http://www.keil.com/appnotes/docs/apnt_296.asp
    http://www.keil.com/forum/24729/armcm4-h-compile-error/

Reply
  • Hello Michiel,

    It looks like you are using the CMSIS-DSP Libraries. There are pre-made examples you can reference inside the CMSIS Pack. They will show you how to setup your device.

    * Open c:\Keil_v5\uv4\PackInstaller.exe

    * On the top left of the screen, under "Devices" type "ARM Cortex M0" - the list filters below. Click on the "ARM Cortex M0" entry - on the right of the screen, the "Packs" section filters down to parts relevant to this device.

    * On the top right of the screen, click the "Examples" tab. In the list, next to the "DSP_Lib Class Marks" example entry, click the "Copy" button - a "Copy Example" dialog appears.

    * Choose a place to copy the project, click both the checkboex and press the "OK" button - the project opens.

    You can read more about this example at:

    http://www.keil.com/pack/doc/CMSIS/DSP/html/group__ClassMarks.html

    ====

    In the Keil IDE, under Project -> Options for Target -> 'C/C++' tab, note that the example defines the preprocessor symbol "ARM_MATH_CM0".

    The reason for this - the DSP libraries are actually optimized based on architecture, so specifying the type here picks the correct library functions.

    There is a good example of these libraries in action here:

    www.youtube.com/watch

    Another good resource:
    www.youtube.com/watch

    See also:
    http://www.keil.com/appnotes/docs/apnt_296.asp
    http://www.keil.com/forum/24729/armcm4-h-compile-error/

Children
No data