Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: CMSIS 5.6.0 DSP 1.6 on T3.6

  1. #1
    Senior Member
    Join Date
    Oct 2016
    Posts
    181

    CMSIS 5.6.0 DSP 1.6 on T3.6

    Hi, how can I install CMSIS 5.6.0 DSP 1.6 on my teensy 3.6?

    can u help me?

    https://github.com/ARM-software/CMSIS_5

    Thank u

  2. #2
    Senior Member duff's Avatar
    Join Date
    Jan 2013
    Location
    Las Vegas
    Posts
    991
    You need to copy the arm_math.h, arm_const_structs.h and arm_comman_tables.h to the teensy ".../cores/teensy3/" directory in Arduino renaming or removing the old arm_math.h and arm_comman_tables.h. Then replace or rename the teensy pre-built arm libraries ".../tools/arm/arm-none-eabi/lib/" with the CMSIS_5 versions.

    In the new arm_math.h my edit to this file are the following:
    Code:
    /**
     * @defgroup groupExamples Examples
     */
    #ifndef _ARM_MATH_H
    #define _ARM_MATH_H
    
    
    // Teensy 3.0
    #include <stdint.h>
    #define __ASM        __asm
    #define __INLINE    inline
    #define __STATIC_INLINE    static inline
    #define __CORTEX_M    4
    #define __FPU_USED    0
    #define ARM_MATH_CM4
    #include "core_cmInstr.h"
    //#include "core_cm4_simd.h"
    
    
    /* Compiler specific diagnostic adjustment */
    #if   defined ( __CC_ARM )
    
    
    #elif defined ( __ARMCC_VERSION ) && ( __ARMCC_VERSION >= 6010050 )
    
    
    #elif defined ( __GNUC__ )
    #pragma GCC diagnostic push
    #pragma GCC diagnostic ignored "-Wsign-conversion"
    #pragma GCC diagnostic ignored "-Wconversion"
    #pragma GCC diagnostic ignored "-Wunused-parameter"
    
    
    #elif defined ( __ICCARM__ )
    
    
    #elif defined ( __TI_ARM__ )
    
    
    #elif defined ( __CSMC__ )
    
    
    #elif defined ( __TASKING__ )
    
    
    #else
      #error Unknown compiler
    #endif
    
    
    #if 0
    #define __CMSIS_GENERIC         /* disable NVIC and Systick functions */
    
    
    #if defined(ARM_MATH_CM7)
      #include "core_cm7.h"
      #define ARM_MATH_DSP
    #elif defined (ARM_MATH_CM4)
      #include "core_cm4.h"
      #define ARM_MATH_DSP
    #elif defined (ARM_MATH_CM3)
      #include "core_cm3.h"
    #elif defined (ARM_MATH_CM0)
      #include "core_cm0.h"
      #define ARM_MATH_CM0_FAMILY
    #elif defined (ARM_MATH_CM0PLUS)
      #include "core_cm0plus.h"
      #define ARM_MATH_CM0_FAMILY
    #elif defined (ARM_MATH_ARMV8MBL)
      #include "core_armv8mbl.h"
      #define ARM_MATH_CM0_FAMILY
    #elif defined (ARM_MATH_ARMV8MML)
      #include "core_armv8mml.h"
      #if (defined (__DSP_PRESENT) && (__DSP_PRESENT == 1))
        #define ARM_MATH_DSP
      #endif
    #else
      #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"
    #endif
    #endif
    I not 100% sure 1.6 will work I have dsp 1.5.3 currently which you can get I think here I think: https://github.com/ARM-software/CMSI...ases/tag/5.4.0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •