<?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 Oslf_Internal.h linking to wrong freeRtos API in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Oslf-Internal-h-linking-to-wrong-freeRtos-API/m-p/1778462#M29849</link>
    <description>&lt;P&gt;Hi, I am currently trying to use freeRtos on s32k344. I am using S32 Design Studio 3.5 and rtd 4.0.0 D2311.&amp;nbsp; I found out that the program got stuck in vPortEnterCritical() in port.c and the configASSERT in this function is triggered.&amp;nbsp; I found out that it was because that&amp;nbsp;SchM_Enter_Can_43_FLEXCAN_CAN_EXCLUSIVE_AREA_18(void) was called from interrupt and inside this function, OsIf_SuspendAllInterrupts() was called.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I made the following modification in Oslf_Internal.h by changing the following two lines:&lt;/P&gt;&lt;P&gt;#if defined(USING_OS_FREERTOS)&lt;BR /&gt;#define ResumeAllInterrupts() taskEXIT_CRITICAL()&lt;BR /&gt;#define SuspendAllInterrupts() taskENTER_CRITICAL()&lt;/P&gt;&lt;P&gt;to :&lt;/P&gt;&lt;P&gt;#if defined(USING_OS_FREERTOS)&lt;BR /&gt;#define ResumeAllInterrupts() taskEXIT_CRITICAL_FROM_ISR(0)&lt;BR /&gt;#define SuspendAllInterrupts() taskENTER_CRITICAL_FROM_ISR()&lt;/P&gt;&lt;P&gt;Then the issue was solved. Is the above configuation intended? or is it a issue? Will it be fixed in the future? Thank you.&lt;/P&gt;&lt;P&gt;PS： The freeRtos version is shown in the attached screenshot.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2023 07:22:35 GMT</pubDate>
    <dc:creator>lluo</dc:creator>
    <dc:date>2023-12-21T07:22:35Z</dc:date>
    <item>
      <title>Oslf_Internal.h linking to wrong freeRtos API</title>
      <link>https://community.nxp.com/t5/S32K/Oslf-Internal-h-linking-to-wrong-freeRtos-API/m-p/1778462#M29849</link>
      <description>&lt;P&gt;Hi, I am currently trying to use freeRtos on s32k344. I am using S32 Design Studio 3.5 and rtd 4.0.0 D2311.&amp;nbsp; I found out that the program got stuck in vPortEnterCritical() in port.c and the configASSERT in this function is triggered.&amp;nbsp; I found out that it was because that&amp;nbsp;SchM_Enter_Can_43_FLEXCAN_CAN_EXCLUSIVE_AREA_18(void) was called from interrupt and inside this function, OsIf_SuspendAllInterrupts() was called.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I made the following modification in Oslf_Internal.h by changing the following two lines:&lt;/P&gt;&lt;P&gt;#if defined(USING_OS_FREERTOS)&lt;BR /&gt;#define ResumeAllInterrupts() taskEXIT_CRITICAL()&lt;BR /&gt;#define SuspendAllInterrupts() taskENTER_CRITICAL()&lt;/P&gt;&lt;P&gt;to :&lt;/P&gt;&lt;P&gt;#if defined(USING_OS_FREERTOS)&lt;BR /&gt;#define ResumeAllInterrupts() taskEXIT_CRITICAL_FROM_ISR(0)&lt;BR /&gt;#define SuspendAllInterrupts() taskENTER_CRITICAL_FROM_ISR()&lt;/P&gt;&lt;P&gt;Then the issue was solved. Is the above configuation intended? or is it a issue? Will it be fixed in the future? Thank you.&lt;/P&gt;&lt;P&gt;PS： The freeRtos version is shown in the attached screenshot.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 07:22:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Oslf-Internal-h-linking-to-wrong-freeRtos-API/m-p/1778462#M29849</guid>
      <dc:creator>lluo</dc:creator>
      <dc:date>2023-12-21T07:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Oslf_Internal.h linking to wrong freeRtos API</title>
      <link>https://community.nxp.com/t5/S32K/Oslf-Internal-h-linking-to-wrong-freeRtos-API/m-p/1787993#M30595</link>
      <description>&lt;P&gt;It seems a issue of&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class="ui-provider ed blq blr bls blt blu blv blw blx bly blz bma bmb bmc bmd bme bmf bmg bmh bmi bmj bmk bml bmm bmn bmo bmp bmq bmr bms bmt bmu bmv bmw bmx"&gt;minimal stack configuration. Pls try to configure&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;minimal stack size with 512 in FreeRTOS&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class="ui-provider ed blq blr bls blt blu blv blw blx bly blz bma bmb bmc bmd bme bmf bmg bmh bmi bmj bmk bml bmm bmn bmo bmp bmq bmr bms bmt bmu bmv bmw bmx"&gt;configuration.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 11:24:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Oslf-Internal-h-linking-to-wrong-freeRtos-API/m-p/1787993#M30595</guid>
      <dc:creator>CongDang</dc:creator>
      <dc:date>2024-01-12T11:24:22Z</dc:date>
    </item>
  </channel>
</rss>

