<?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>MCUXpresso Config Tools中的主题 Re: I2C Periperal Config Mode FreeRTOS: Missing SetPriority</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/I2C-Periperal-Config-Mode-FreeRTOS-Missing-SetPriority/m-p/839112#M604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tommy Sparber&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the method to set the priority is through the NVIC_SetPriority(), this is not implemented in the&amp;nbsp;fsl_i2c_freertos driver and so it is not implemented in the Peripheral config tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2018 22:11:01 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2018-11-20T22:11:01Z</dc:date>
    <item>
      <title>I2C Periperal Config Mode FreeRTOS: Missing SetPriority</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/I2C-Periperal-Config-Mode-FreeRTOS-Missing-SetPriority/m-p/839111#M603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We would like to use the I2C periperal using the fsl_i2c_freertos driver. Configuring this in the MCUXpresso Config Tool works, but it is not possible to specify the interrupt priority for the periperal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current workaround, is to manually configure the interrupt priority using the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;#include "fsl_common.h"
const IRQn_Type s_i2cIrqs[] = I2C_IRQS;
uint32_t I2C_GetInstance(I2C_Type *base);
NVIC_SetPriority(s_i2cIrqs[I2C_GetInstance(I2C_LED_rtosHandle.base)], 2u);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not setting the NVIC priority results in assertions by FreeRTOS, as a interrupt with a priority of 0 is not allowed to use the FreeRTOS functions (see configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY).&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;IMG alt="pastedImage_2.png" src="https://community.nxp.com/t5/image/serverpage/image-id/75052i366E1CA5057ED2D2/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When selecting the "Interrupt" Mode it is possible to configure the priority as expected.&lt;/P&gt;&lt;P&gt;Is this functionality missing or is there another way to configure the priority?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:14:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/I2C-Periperal-Config-Mode-FreeRTOS-Missing-SetPriority/m-p/839111#M603</guid>
      <dc:creator>tsparber</dc:creator>
      <dc:date>2020-11-02T14:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Periperal Config Mode FreeRTOS: Missing SetPriority</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/I2C-Periperal-Config-Mode-FreeRTOS-Missing-SetPriority/m-p/839112#M604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tommy Sparber&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the method to set the priority is through the NVIC_SetPriority(), this is not implemented in the&amp;nbsp;fsl_i2c_freertos driver and so it is not implemented in the Peripheral config tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 22:11:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/I2C-Periperal-Config-Mode-FreeRTOS-Missing-SetPriority/m-p/839112#M604</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2018-11-20T22:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Periperal Config Mode FreeRTOS: Missing SetPriority</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/I2C-Periperal-Config-Mode-FreeRTOS-Missing-SetPriority/m-p/839113#M605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not fix this? As is, the freertos spi driver as shipped does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 16:14:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/I2C-Periperal-Config-Mode-FreeRTOS-Missing-SetPriority/m-p/839113#M605</guid>
      <dc:creator>bradarno</dc:creator>
      <dc:date>2019-05-16T16:14:26Z</dc:date>
    </item>
  </channel>
</rss>

