<?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>Kinetis Microcontrollers中的主题 Integration issue when adding McuOnEclipse FreeRTOS component</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Integration-issue-when-adding-McuOnEclipse-FreeRTOS-component/m-p/605001#M35646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'am triying to create a &lt;STRONG&gt;processor expert project&lt;/STRONG&gt; with &lt;STRONG&gt;sdk1.3&lt;/STRONG&gt;, &lt;STRONG&gt;MK60DN512VLL10&lt;/STRONG&gt; Micro-proc in a &lt;STRONG&gt;custom board&lt;/STRONG&gt;. I need to add the mcuoneclipse freeRTOS component to my project and i was following this tutorial :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2015/07/08/tutorial-using-processor-expert-and-freertos-with-kinetis-sdk-v1-2/" title="https://mcuoneclipse.com/2015/07/08/tutorial-using-processor-expert-and-freertos-with-kinetis-sdk-v1-2/"&gt;https://mcuoneclipse.com/2015/07/08/tutorial-using-processor-expert-and-freertos-with-kinetis-sdk-v1-2/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the component in the components library, but when i add the &lt;STRONG&gt;freeRTOS&lt;/STRONG&gt; to the project this error occured &amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5160iE0605DFDE8397E4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The compiler have no suggestions even when i changed the Cross ARM C compiler Preprocessor to:&amp;nbsp;&lt;STRONG style="color: #373737; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;“FSL_RTOS_FREE_RTOS”.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Have anyone any idea about this ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 08:56:05 GMT</pubDate>
    <dc:creator>ahmedhrabi</dc:creator>
    <dc:date>2016-09-09T08:56:05Z</dc:date>
    <item>
      <title>Integration issue when adding McuOnEclipse FreeRTOS component</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Integration-issue-when-adding-McuOnEclipse-FreeRTOS-component/m-p/605001#M35646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'am triying to create a &lt;STRONG&gt;processor expert project&lt;/STRONG&gt; with &lt;STRONG&gt;sdk1.3&lt;/STRONG&gt;, &lt;STRONG&gt;MK60DN512VLL10&lt;/STRONG&gt; Micro-proc in a &lt;STRONG&gt;custom board&lt;/STRONG&gt;. I need to add the mcuoneclipse freeRTOS component to my project and i was following this tutorial :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2015/07/08/tutorial-using-processor-expert-and-freertos-with-kinetis-sdk-v1-2/" title="https://mcuoneclipse.com/2015/07/08/tutorial-using-processor-expert-and-freertos-with-kinetis-sdk-v1-2/"&gt;https://mcuoneclipse.com/2015/07/08/tutorial-using-processor-expert-and-freertos-with-kinetis-sdk-v1-2/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the component in the components library, but when i add the &lt;STRONG&gt;freeRTOS&lt;/STRONG&gt; to the project this error occured &amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5160iE0605DFDE8397E4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The compiler have no suggestions even when i changed the Cross ARM C compiler Preprocessor to:&amp;nbsp;&lt;STRONG style="color: #373737; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;“FSL_RTOS_FREE_RTOS”.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Have anyone any idea about this ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 08:56:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Integration-issue-when-adding-McuOnEclipse-FreeRTOS-component/m-p/605001#M35646</guid>
      <dc:creator>ahmedhrabi</dc:creator>
      <dc:date>2016-09-09T08:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Integration issue when adding McuOnEclipse FreeRTOS component</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Integration-issue-when-adding-McuOnEclipse-FreeRTOS-component/m-p/605002#M35647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know what could be causing this issue but I'd like to share this useful document that explains how to create a new FreeRTOS project in KSDK v2.0. I hope you can find it useful too.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-330183"&gt;https://community.nxp.com/docs/DOC-330183&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 19:41:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Integration-issue-when-adding-McuOnEclipse-FreeRTOS-component/m-p/605002#M35647</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-09-13T19:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Integration issue when adding McuOnEclipse FreeRTOS component</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Integration-issue-when-adding-McuOnEclipse-FreeRTOS-component/m-p/605003#M35648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed,&lt;/P&gt;&lt;P&gt;Not sure what is causing this. But it seems to me that the component is looking for the the enumeration type listing all supported compilers and cannot find it.&lt;/P&gt;&lt;P&gt;I tried to reproduce it on my side and was not able to see your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Are you already using the latest version from SourceForge (&lt;A class="link-titled" href="https://sourceforge.net/projects/mcuoneclipse/files/PEx%20Components/" title="https://sourceforge.net/projects/mcuoneclipse/files/PEx%20Components/"&gt;McuOnEclipse - Browse /PEx Components at SourceForge.net&lt;/A&gt;&amp;nbsp;)? If not, load these components as they are the latest and greatest.&lt;/P&gt;&lt;P&gt;2. I recommend to use the 'classic' no-tabs view, see &lt;A class="link-titled" href="https://mcuoneclipse.com/2014/06/20/switching-between-tabs-and-no-tabs-ui-in-processor-expert/" title="https://mcuoneclipse.com/2014/06/20/switching-between-tabs-and-no-tabs-ui-in-processor-expert/"&gt;https://mcuoneclipse.com/2014/06/20/switching-between-tabs-and-no-tabs-ui-in-processor-expert/&lt;/A&gt;&amp;nbsp;. Maybe this is causing a problem on your side?&lt;/P&gt;&lt;P&gt;3. Changing the Preprocessor define won't help, as this is affecting the compiler only. I have seen cases where Processor Expert somehow is stuck. Closing the project and re-opening helps to solve that.&lt;/P&gt;&lt;P&gt;4. Make sure you use the component from the correct repository if have multiple repositories installed. See &lt;A class="link-titled" href="https://mcuoneclipse.com/2015/07/06/processor-expert-component-repositories/" title="https://mcuoneclipse.com/2015/07/06/processor-expert-component-repositories/"&gt;https://mcuoneclipse.com/2015/07/06/processor-expert-component-repositories/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps. Otherwise it would be helpful if you could post your project.&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 05:45:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Integration-issue-when-adding-McuOnEclipse-FreeRTOS-component/m-p/605003#M35648</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-09-14T05:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Integration issue when adding McuOnEclipse FreeRTOS component</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Integration-issue-when-adding-McuOnEclipse-FreeRTOS-component/m-p/1431791#M62706</link>
      <description>&lt;P&gt;Hellow Everyone&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying reach out to you. I have used FreeRTOS (plus trace ) component from MCUonEclipse components as per the Instruction, i have followed step wise step :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Imported Components&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; added freeRTOS (followed instruction &lt;A href="https://mcuoneclipse.com/2018/07/18/using-custom-freertos-with-s32k-and-osif-for-arm/comment-page-1/#comment-337979)" target="_blank"&gt;https://mcuoneclipse.com/2018/07/18/using-custom-freertos-with-s32k-and-osif-for-arm/comment-page-1/#comment-337979)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Added preprocessor USING_OS_FREERTOS&lt;/P&gt;&lt;P&gt;&amp;gt; Compiled Successfully&amp;nbsp;&lt;/P&gt;&lt;P&gt;after that when i was trying to debug my application. It got stuck in port.c as below :&lt;/P&gt;&lt;P&gt;#if( configASSERT_DEFINED == 1 )&lt;BR /&gt;void vPortValidateInterruptPriority( void )&lt;BR /&gt;{&lt;BR /&gt;uint32_t ulCurrentInterrupt;&lt;BR /&gt;uint8_t ucCurrentPriority;&lt;/P&gt;&lt;P&gt;/* Obtain the number of the currently executing interrupt. */&lt;BR /&gt;#if configCOMPILER==configCOMPILER_ARM_KEIL&lt;BR /&gt;ulCurrentInterrupt = vPortGetIPSR();&lt;BR /&gt;#else&lt;BR /&gt;__asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) );&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;/* Is the interrupt number a user defined interrupt? */&lt;BR /&gt;if( ulCurrentInterrupt &amp;gt;= portFIRST_USER_INTERRUPT_NUMBER )&lt;BR /&gt;{&lt;BR /&gt;/* Look up the interrupt's priority. */&lt;BR /&gt;ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];&lt;/P&gt;&lt;P&gt;/* The following assertion will fail if a service routine (ISR) for&lt;BR /&gt;an interrupt that has been assigned a priority above&lt;BR /&gt;configMAX_SYSCALL_INTERRUPT_PRIORITY calls an ISR safe FreeRTOS API&lt;BR /&gt;function. ISR safe FreeRTOS API functions must *only* be called&lt;BR /&gt;from interrupts that have been assigned a priority at or below&lt;BR /&gt;configMAX_SYSCALL_INTERRUPT_PRIORITY.&lt;/P&gt;&lt;P&gt;Numerically low interrupt priority numbers represent logically high&lt;BR /&gt;interrupt priorities, therefore the priority of the interrupt must&lt;BR /&gt;be set to a value equal to or numerically *higher* than&lt;BR /&gt;configMAX_SYSCALL_INTERRUPT_PRIORITY.&lt;/P&gt;&lt;P&gt;Interrupts that use the FreeRTOS API must not be left at their&lt;BR /&gt;default priority of zero as that is the highest possible priority,&lt;BR /&gt;which is guaranteed to be above configMAX_SYSCALL_INTERRUPT_PRIORITY,&lt;BR /&gt;and therefore also guaranteed to be invalid.&lt;/P&gt;&lt;P&gt;FreeRTOS maintains separate thread and ISR API functions to ensure&lt;BR /&gt;interrupt entry is as fast and simple as possible.&lt;/P&gt;&lt;P&gt;The following links provide detailed information:&lt;BR /&gt;&lt;A href="http://www.freertos.org/RTOS-Cortex-M3-M4.html" target="_blank"&gt;http://www.freertos.org/RTOS-Cortex-M3-M4.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.freertos.org/FAQHelp.html" target="_blank"&gt;http://www.freertos.org/FAQHelp.html&lt;/A&gt; */&lt;BR /&gt;configASSERT( ucCurrentPriority &amp;gt;= ucMaxSysCallPriority );&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Priority grouping: The interrupt controller (NVIC) allows the bits&lt;BR /&gt;that define each interrupt's priority to be split between bits that&lt;BR /&gt;define the interrupt's pre-emption priority bits and bits that define&lt;BR /&gt;the interrupt's sub-priority. For simplicity all bits must be defined&lt;BR /&gt;to be pre-emption priority bits. The following assertion will fail if&lt;BR /&gt;this is not the case (if some bits represent a sub-priority).&lt;/P&gt;&lt;P&gt;If the application only uses CMSIS libraries for interrupt&lt;BR /&gt;configuration then the correct setting can be achieved on all Cortex-M&lt;BR /&gt;devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the&lt;BR /&gt;scheduler. Note however that some vendor specific peripheral libraries&lt;BR /&gt;assume a non-zero priority group setting, in which cases using a value&lt;BR /&gt;of zero will result in unpredicable behaviour. */&lt;BR /&gt;configASSERT( ( portAIRCR_REG &amp;amp; portPRIORITY_GROUP_MASK ) &amp;lt;= ulMaxPRIGROUPValue );&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#endif /* configASSERT_DEFINED */&lt;/P&gt;&lt;P&gt;&amp;gt; It reaches here [port.c] where my SPI pal component try to execute complete transfer API in which it uses os interface OSIF_freertos.c&amp;nbsp; for function like&amp;nbsp; :&amp;nbsp;&lt;/P&gt;&lt;P&gt;status_t OSIF_SemaPost(semaphore_t * const pSem)&lt;BR /&gt;{&lt;BR /&gt;DEV_ASSERT(pSem);&lt;/P&gt;&lt;P&gt;BaseType_t operation_status = pdFAIL;&lt;BR /&gt;status_t osif_ret_code;&lt;/P&gt;&lt;P&gt;SemaphoreHandle_t sem_handle = SEM_HANDLE(*pSem);&lt;BR /&gt;/* Check if the post operation is executed from ISR context */&lt;BR /&gt;bool is_isr = osif_IsIsrContext();&lt;BR /&gt;if (is_isr)&lt;BR /&gt;{&lt;BR /&gt;/* Execution from exception handler (ISR) */&lt;BR /&gt;BaseType_t taskWoken = pdFALSE;&lt;BR /&gt;operation_status = xSemaphoreGiveFromISR(sem_handle, &amp;amp;taskWoken);&lt;/P&gt;&lt;P&gt;if (operation_status == pdPASS)&lt;BR /&gt;{&lt;BR /&gt;/* Perform a context switch if necessary */&lt;BR /&gt;portYIELD_FROM_ISR(taskWoken);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;/* Execution from task */&lt;BR /&gt;operation_status = xSemaphoreGive(sem_handle);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* pdFAIL in case that the semaphore is full */&lt;BR /&gt;osif_ret_code = (operation_status == pdPASS) ? STATUS_SUCCESS : STATUS_ERROR;&lt;/P&gt;&lt;P&gt;return osif_ret_code;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; this function calls out&amp;nbsp; xSemaphoreGiveFromISR(sem_handle, &amp;amp;taskWoken);&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; it leads to&amp;nbsp;vPortValidateInterruptPriority() &amp;gt;&amp;gt; then stuck in Assert&amp;nbsp; configASSERT( ucCurrentPriority &amp;gt;= ucMaxSysCallPriority );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am i missing something ? or i need to cofigure something that i missed considering that my few processor expert components are using osif_freeRTOS.c source file. I hope u understand my problem.&lt;/P&gt;&lt;P&gt;Thanks And Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 08:14:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Integration-issue-when-adding-McuOnEclipse-FreeRTOS-component/m-p/1431791#M62706</guid>
      <dc:creator>VIsh22101994</dc:creator>
      <dc:date>2022-03-22T08:14:28Z</dc:date>
    </item>
  </channel>
</rss>

