<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using CMSIS library in MQX RTOS 4.2, KDS 3.2.0 in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-CMSIS-library-in-MQX-RTOS-4-2-KDS-3-2-0/m-p/699988#M9155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can move the include file "arm_math.h" before "main.h".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2018 03:12:32 GMT</pubDate>
    <dc:creator>xiulizhang</dc:creator>
    <dc:date>2018-04-04T03:12:32Z</dc:date>
    <item>
      <title>Using CMSIS library in MQX RTOS 4.2, KDS 3.2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-CMSIS-library-in-MQX-RTOS-4-2-KDS-3-2-0/m-p/699985#M9152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Evening!&lt;BR /&gt;Currently developing on the TWR-K70F120M kit, developing on IDE, KDS 3.2.&lt;BR /&gt;I have been having extreme difficulty getting CMSIS library examples to run on MQX 4.2. I have completed the MQX 20 technical sessions and decided to make a new project to test out CMSIS and the variety of examples provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially, I tried using KSDK1.x, KSDK2.x and realised they were incompatible. I also downloaded CMSIS v4.2, v5.&lt;BR /&gt;I am mainly interested in using the CMSIS-DSP library, I have followed the guides word for word:&lt;BR /&gt;&lt;A class="link-titled" href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4489.pdf" title="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4489.pdf"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4489.pdf&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;AND&lt;BR /&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2013/02/14/tutorial-using-the-arm-cmsis-library/" title="https://mcuoneclipse.com/2013/02/14/tutorial-using-the-arm-cmsis-library/"&gt;Tutorial: Using the ARM CMSIS Library | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My steps:&lt;BR /&gt;1) Clone Hello2 example from MQX&lt;BR /&gt;2) Included Libraries from CMSIS&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My understanding is there is a conflict in function names but I am just unsure where to go from here.&lt;BR /&gt;However, the errors I am getting are in the screenshot (See Attached Document).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindest regards,&lt;/P&gt;&lt;P&gt;************************CONSOLE LOG**********************************&lt;span class="lia-inline-image-display-wrapper" image-alt="Problems with CMSIS.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13210iCBBED2EE89A4E208/image-size/large?v=v2&amp;amp;px=999" role="button" title="Problems with CMSIS.png" alt="Problems with CMSIS.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="problems with cmsis scrolled.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13232i05FD4227BF7FA7CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="problems with cmsis scrolled.PNG" alt="problems with cmsis scrolled.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;15:42:40 **** Incremental Build of configuration int flash sramdata debug for project hello2_CMSIS_LAB ****&lt;BR /&gt;Info: Internal Builder is used for build&lt;BR /&gt;"C:\\Users\\macro\\Documents\\KDSpersonal\\hello2_CMSIS_LAB\\makedir.bat" "C:/Users/macro/Documents/KDSpersonal/hello2_CMSIS_LAB/int flash sramdata debug"&lt;/P&gt;&lt;P&gt;C:\Users\macro\Documents\KDSpersonal\hello2_CMSIS_LAB\int flash sramdata debug&amp;gt;set TARGETDIR="C:/Users/macro/Documents/KDSpersonal/hello2_CMSIS_LAB/int flash sramdata debug"&lt;/P&gt;&lt;P&gt;C:\Users\macro\Documents\KDSpersonal\hello2_CMSIS_LAB\int flash sramdata debug&amp;gt;set TARGETDIR="C:\Users\macro\Documents\KDSpersonal\hello2_CMSIS_LAB\int flash sramdata debug"&lt;/P&gt;&lt;P&gt;C:\Users\macro\Documents\KDSpersonal\hello2_CMSIS_LAB\int flash sramdata debug&amp;gt;set TARGETDIR=C:\Users\macro\Documents\KDSpersonal\hello2_CMSIS_LAB\int flash sramdata debug&lt;/P&gt;&lt;P&gt;C:\Users\macro\Documents\KDSpersonal\hello2_CMSIS_LAB\int flash sramdata debug&amp;gt;IF NOT EXIST "C:\Users\macro\Documents\KDSpersonal\hello2_CMSIS_LAB\int flash sramdata debug" mkdir "C:\Users\macro\Documents\KDSpersonal\hello2_CMSIS_LAB\int flash sramdata debug" &lt;BR /&gt;arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -Wno-missing-braces -g3 -gdwarf-2 -gstrict-dwarf -gstrict-dwarf -gstrict-dwarf -nostdinc -D_AEABI_LC_CTYPE=C -D__FPU_PRESENT -D__STRICT_ANSI__=1 -D_DEBUG=1 "-IC:\\Freescale\\CMSIS_5-develop\\CMSIS/Core/Include" "-IC:\\Freescale\\CMSIS_5-develop\\CMSIS/DSP/Include" "-IC:\\Freescale\\Freescale_MQX_4_2\\lib\\twrk70f120m.kds\\debug" "-IC:\\Freescale\\Freescale_MQX_4_2\\lib\\twrk70f120m.kds\\debug\\bsp" "-IC:\\Freescale\\Freescale_MQX_4_2\\lib\\twrk70f120m.kds\\debug\\bsp\\Generated_Code" "-IC:\\Freescale\\Freescale_MQX_4_2\\lib\\twrk70f120m.kds\\debug\\psp" "-IC:\\Freescale\\Freescale_MQX_4_2\\lib\\twrk70f120m.kds\\debug\\shell" "-IC:\\Freescale\\KDS_v3\\eclipse\\../toolchain/lib/gcc/arm-none-eabi/4.8.4/include" "-IC:\\Freescale\\KDS_v3\\eclipse\\../toolchain/lib/gcc/arm-none-eabi/4.8.4/include-fixed" "-IC:\\Freescale\\KDS_v3\\eclipse\\../toolchain/arm-none-eabi/include" -std=gnu99 -D__VFPV4__=1 -D_DEBUG=1 -c -fmessage-length=0 -c -o "Sources\\arm_sin_cos_example_f32.o" "..\\Sources\\arm_sin_cos_example_f32.c" &lt;BR /&gt;In file included from C:\Freescale\CMSIS_5-develop\CMSIS/Core/Include/cmsis_compiler.h:48:0,&lt;BR /&gt; from C:\Freescale\CMSIS_5-develop\CMSIS/Core/Include/core_cm4.h:162,&lt;BR /&gt; from C:\Freescale\CMSIS_5-develop\CMSIS/DSP/Include/arm_math.h:328,&lt;BR /&gt; from ..\Sources\arm_sin_cos_example_f32.c:86:&lt;BR /&gt;C:\Freescale\CMSIS_5-develop\CMSIS/Core/Include/cmsis_gcc.h:148:57: error: static declaration of '__get_CONTROL' follows non-static declaration&lt;BR /&gt; __attribute__((always_inline)) __STATIC_INLINE uint32_t __get_CONTROL(void)&lt;BR /&gt; ^&lt;BR /&gt;In file included from C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\psp/psp_cpu.h:49:0,&lt;BR /&gt; from C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\bsp/mqx.h:1236,&lt;BR /&gt; from ..\Sources\main.h:11,&lt;BR /&gt; from ..\Sources\arm_sin_cos_example_f32.c:84:&lt;BR /&gt;C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\psp/cortex.h:527:25: note: previous declaration of '__get_CONTROL' was here&lt;BR /&gt; extern uint32_t __get_CONTROL(void);&lt;BR /&gt; ^&lt;BR /&gt;In file included from C:\Freescale\CMSIS_5-develop\CMSIS/Core/Include/cmsis_compiler.h:48:0,&lt;BR /&gt; from C:\Freescale\CMSIS_5-develop\CMSIS/Core/Include/core_cm4.h:162,&lt;BR /&gt; from C:\Freescale\CMSIS_5-develop\CMSIS/DSP/Include/arm_math.h:328,&lt;BR /&gt; from ..\Sources\arm_sin_cos_example_f32.c:86:&lt;BR /&gt;C:\Freescale\CMSIS_5-develop\CMSIS/Core/Include/cmsis_gcc.h:244:57: error: static declaration of '__get_PSP' follows non-static declaration&lt;BR /&gt; __attribute__((always_inline)) __STATIC_INLINE uint32_t __get_PSP(void)&lt;BR /&gt; ^&lt;BR /&gt;In file included from C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\psp/psp_cpu.h:49:0,&lt;BR /&gt; from C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\bsp/mqx.h:1236,&lt;BR /&gt; from ..\Sources\main.h:11,&lt;BR /&gt; from ..\Sources\arm_sin_cos_example_f32.c:84:&lt;BR /&gt;C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\psp/cortex.h:507:25: note: previous declaration of '__get_PSP' was here&lt;BR /&gt; extern uint32_t __get_PSP(void);&lt;BR /&gt; ^&lt;BR /&gt;In file included from C:\Freescale\CMSIS_5-develop\CMSIS/Core/Include/cmsis_compiler.h:48:0,&lt;BR /&gt; from C:\Freescale\CMSIS_5-develop\CMSIS/Core/Include/core_cm4.h:162,&lt;BR /&gt; from C:\Freescale\CMSIS_5-develop\CMSIS/DSP/Include/arm_math.h:328,&lt;BR /&gt; from ..\Sources\arm_sin_cos_example_f32.c:86:&lt;BR /&gt;C:\Freescale\CMSIS_5-develop\CMSIS/Core/Include/cmsis_gcc.h:298:57: error: static declaration of '__get_MSP' follows non-static declaration&lt;BR /&gt; __attribute__((always_inline)) __STATIC_INLINE uint32_t __get_MSP(void)&lt;BR /&gt; ^&lt;BR /&gt;In file included from C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\psp/psp_cpu.h:49:0,&lt;BR /&gt; from C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\bsp/mqx.h:1236,&lt;BR /&gt; from ..\Sources\main.h:11,&lt;BR /&gt; from ..\Sources\arm_sin_cos_example_f32.c:84:&lt;BR /&gt;C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\psp/cortex.h:511:25: note: previous declaration of '__get_MSP' was here&lt;BR /&gt; extern uint32_t __get_MSP(void);&lt;BR /&gt; ^&lt;BR /&gt;In file included from C:\Freescale\CMSIS_5-develop\CMSIS/Core/Include/cmsis_compiler.h:48:0,&lt;BR /&gt; from C:\Freescale\CMSIS_5-develop\CMSIS/Core/Include/core_cm4.h:162,&lt;BR /&gt; from C:\Freescale\CMSIS_5-develop\CMSIS/DSP/Include/arm_math.h:328,&lt;BR /&gt; from ..\Sources\arm_sin_cos_example_f32.c:86:&lt;BR /&gt;C:\Freescale\CMSIS_5-develop\CMSIS/Core/Include/cmsis_gcc.h:328:53: error: static declaration of '__set_MSP' follows non-static declaration&lt;BR /&gt; __attribute__((always_inline)) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)&lt;BR /&gt; ^&lt;BR /&gt;In file included from C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\psp/psp_cpu.h:49:0,&lt;BR /&gt; from C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\bsp/mqx.h:1236,&lt;BR /&gt; from ..\Sources\main.h:11,&lt;BR /&gt; from ..\Sources\arm_sin_cos_example_f32.c:84:&lt;BR /&gt;C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\psp/cortex.h:503:25: note: previous declaration of '__set_MSP' was here&lt;BR /&gt; extern void __set_MSP(uint32_t);&lt;BR /&gt; ^&lt;BR /&gt;In file included from C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\psp/psp_comp.h:34:0,&lt;BR /&gt; from C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\bsp/mqx.h:90,&lt;BR /&gt; from ..\Sources\main.h:11,&lt;BR /&gt; from ..\Sources\arm_sin_cos_example_f32.c:84:&lt;BR /&gt;C:\Freescale\Freescale_MQX_4_2\lib\twrk70f120m.kds\debug\psp/comp.h:39:32: error: expected identifier or '(' before '__asm'&lt;BR /&gt; #define __set_BASEPRI(basePri) __asm volatile ("msr BASEPRI, %0" : : "r" (basePri))&lt;BR /&gt; ^&lt;BR /&gt;C:\Freescale\CMSIS_5-develop\CMSIS/Core/Include/cmsis_gcc.h:488:53: note: in expansion of macro '__set_BASEPRI'&lt;BR /&gt; __attribute__((always_inline)) __STATIC_INLINE void __set_BASEPRI(uint32_t basePri)&lt;BR /&gt; ^&lt;/P&gt;&lt;P&gt;15:42:40 Build Finished (took 285ms)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 04:46:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-CMSIS-library-in-MQX-RTOS-4-2-KDS-3-2-0/m-p/699985#M9152</guid>
      <dc:creator>takmingmarcopan</dc:creator>
      <dc:date>2017-10-06T04:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using CMSIS library in MQX RTOS 4.2, KDS 3.2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-CMSIS-library-in-MQX-RTOS-4-2-KDS-3-2-0/m-p/699986#M9153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not tried adding the libraries to a MQX project but maybe the following document helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332237"&gt;https://community.nxp.com/docs/DOC-332237&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 19:15:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-CMSIS-library-in-MQX-RTOS-4-2-KDS-3-2-0/m-p/699986#M9153</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-10-11T19:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using CMSIS library in MQX RTOS 4.2, KDS 3.2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-CMSIS-library-in-MQX-RTOS-4-2-KDS-3-2-0/m-p/699987#M9154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, that link is not exactly relevant. I'm not having trouble "linking" it per say but actually getting conflicting errors (Which I think are function definitions sharing the same name with MQX).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 21:25:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-CMSIS-library-in-MQX-RTOS-4-2-KDS-3-2-0/m-p/699987#M9154</guid>
      <dc:creator>takmingmarcopan</dc:creator>
      <dc:date>2017-10-11T21:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using CMSIS library in MQX RTOS 4.2, KDS 3.2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-CMSIS-library-in-MQX-RTOS-4-2-KDS-3-2-0/m-p/699988#M9155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can move the include file "arm_math.h" before "main.h".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 03:12:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-CMSIS-library-in-MQX-RTOS-4-2-KDS-3-2-0/m-p/699988#M9155</guid>
      <dc:creator>xiulizhang</dc:creator>
      <dc:date>2018-04-04T03:12:32Z</dc:date>
    </item>
  </channel>
</rss>

