<?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: write the data received by the UART into the EEPROM in S32K</title>
    <link>https://community.nxp.com/t5/S32K/write-the-data-received-by-the-UART-into-the-EEPROM/m-p/988119#M5769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;In the following code, which one is the receive buffer, I am still a newbie, I am sorry, I want to put the EEPROM write in the receive interrupt function.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;if (LPUART2-&amp;gt;STAT &amp;amp; 0x00200000)&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;rev = LPUART2-&amp;gt;DATA;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;if((LPUART2-&amp;gt;STAT &amp;amp; LPUART_STAT_TDRE_MASK)&amp;gt;&amp;gt;LPUART_STAT_TDRE_SHIFT!=0) //判断发射是否空闲&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;LPUART2-&amp;gt;DATA = rev;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Nov 2019 02:14:46 GMT</pubDate>
    <dc:creator>1416899748</dc:creator>
    <dc:date>2019-11-15T02:14:46Z</dc:date>
    <item>
      <title>write the data received by the UART into the EEPROM</title>
      <link>https://community.nxp.com/t5/S32K/write-the-data-received-by-the-UART-into-the-EEPROM/m-p/988116#M5766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hello, I need to write the data received by the UART into the EEPROM. I don't understand how to write the instructions. Can you help me? Thank you.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; * main implementation: use this 'C' sample to create your own application&lt;BR /&gt; *&lt;BR /&gt; */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#include "S32K144.h" /* include peripheral declarations S32K144 */&lt;BR /&gt;#include "EEEPROM_io_control.h"&lt;/P&gt;&lt;P&gt;#define USER_DATA_SIZE 32u&lt;BR /&gt;#define DISABLE_INTERRUPTS() __asm volatile ("cpsid i" : : : "memory");&lt;BR /&gt;#include "s32_core_cm4.h"&lt;BR /&gt;void SOSC_init_8MHz(void)&lt;BR /&gt;{&lt;BR /&gt; SCG-&amp;gt;SOSCDIV=0x00000101; //SOSCDIV1 &amp;amp; SOSCDIV2 =1: 分频/1&lt;BR /&gt; SCG-&amp;gt;SOSCCFG=0x00000024; //Range=2: 选择晶体振荡器的中频范围 (SOSC 1MHz-8MHz)&lt;BR /&gt; // HGO=0: 控制晶体振荡器的工作功率模式 --低功率模式&lt;BR /&gt; // EREFS=1: 外部参考选择OSC内部晶体振荡器&lt;BR /&gt; while(SCG-&amp;gt;SOSCCSR &amp;amp; SCG_SOSCCSR_LK_MASK); //等待SOSCCSR解锁 寄存器解锁后才可写入&lt;BR /&gt; SCG-&amp;gt;SOSCCSR=0x00000001; // LK=0: SOSCCSR可以写&lt;BR /&gt; // SOSCCM=0: 系统OSC时钟监视器被禁用&lt;BR /&gt; // SOSCEN=1: 启用系统OSC&lt;BR /&gt; while(!(SCG-&amp;gt;SOSCCSR &amp;amp; SCG_SOSCCSR_SOSCVLD_MASK)); //等待系统OSC成功启用，输出时钟有效&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void SPLL_init_160MHz(void)&lt;BR /&gt;{&lt;BR /&gt; while(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_LK_MASK); //等待SPLLCSR寄存器解锁 寄存器解锁后才可写入&lt;BR /&gt; SCG-&amp;gt;SPLLCSR = 0x00000000; // LK=0: SPLLCSR可以写入&lt;BR /&gt; // SPLLEN=0: SPLL禁用&lt;BR /&gt; SCG-&amp;gt;SPLLDIV = 0x00000302; // SPLLDIV1 分频/2; SPLLDIV2 分频/4&lt;BR /&gt; SCG-&amp;gt;SPLLCFG = 0x00180000; // PREDIV=0: 锁相环参考时钟分频因子&lt;BR /&gt; // MULT=24: SPLL时钟频率的乘法因子&lt;BR /&gt; // SPLL_CLK = 8MHz / 1 * 40 / 2 = 160 MHz SPLL_CLK = (VCO_CLK)/2 VCO_CLK = SPLL_SOURCE/(PREDIV+1)*(MULT+16)&lt;BR /&gt; while(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_LK_MASK); //等待SPLLCSR寄存器解锁 寄存器解锁后才可写入&lt;BR /&gt; SCG-&amp;gt;SPLLCSR = 0x00000001; // LK=0: SPLLCSR可以写入&lt;BR /&gt; // SPLLCM=0: SPLL时钟监视器被禁用&lt;BR /&gt; // SPLLEN=1: 开启SPLL&lt;BR /&gt; while(!(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_SPLLVLD_MASK)); //等待SPLL成功启用，输出时钟有效&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void NormalRUNmode_40MHz (void)&lt;BR /&gt;{&lt;BR /&gt; SCG-&amp;gt;RCCR=SCG_RCCR_SCS(6) // SPLL做为系统时钟源&lt;BR /&gt; |SCG_RCCR_DIVCORE(0b11) // DIVCORE=3, 分频/4: Core clock = 160/4 MHz = 40 MHz&lt;BR /&gt; |SCG_RCCR_DIVBUS(0b11) // DIVBUS=3, 分频/4: bus clock = 160/4 MHz = 40 MHz&lt;BR /&gt; |SCG_RCCR_DIVSLOW(0b111); // DIVSLOW=7, 分频/8: SCG slow, flash clock= 160/8 MHz = 20MHZ&lt;BR /&gt; while (((SCG-&amp;gt;CSR &amp;amp; SCG_CSR_SCS_MASK) &amp;gt;&amp;gt; SCG_CSR_SCS_SHIFT ) != 6) {}//等待系统时钟源成功选择SPLL&lt;BR /&gt;}&lt;BR /&gt;void UART2_NVIC_init_IRQs(void)&lt;BR /&gt;{&lt;BR /&gt; S32_NVIC-&amp;gt;ICPR[1] = 1 &amp;lt;&amp;lt; (35 % 32); /* IRQ48-UART2: clr any pending IRQ*/&lt;BR /&gt; S32_NVIC-&amp;gt;ISER[(uint32_t)(LPUART2_RxTx_IRQn) &amp;gt;&amp;gt; 5U] = (uint32_t)(1UL &amp;lt;&amp;lt; ((uint32_t)(LPUART2_RxTx_IRQn) &amp;amp; (uint32_t)0x1FU));&lt;BR /&gt; S32_NVIC-&amp;gt;IP[35] = 0x7; /* IRQ48-UART2: priority 7 of 0-15*/&lt;BR /&gt;}&lt;BR /&gt;void UART2_PORT_init (void)&lt;BR /&gt;{&lt;BR /&gt; PCC-&amp;gt;PCCn[PCC_PORTA_INDEX ] |= PCC_PCCn_CGC_MASK; //使能PTA端口时钟&lt;BR /&gt; PORTA-&amp;gt;PCR[8] |= PORT_PCR_MUX(2); // Port A8: MUX = ALT2,UART2 RX PTA8复用为RX&lt;BR /&gt; PORTA-&amp;gt;PCR[9] |= PORT_PCR_MUX(2); // Port A9: MUX = ALT2,UART2 TX PTA9复用为TX&lt;BR /&gt;}&lt;BR /&gt;//波特率: 9600 , 1停止位, 8个数据位, 无奇偶校验&lt;BR /&gt;void UART2_init(void)&lt;BR /&gt;{&lt;BR /&gt; PCC-&amp;gt;PCCn[PCC_LPUART2_INDEX] &amp;amp;= ~PCC_PCCn_CGC_MASK; //禁LPUART2时钟&lt;BR /&gt; PCC-&amp;gt;PCCn[PCC_LPUART2_INDEX] |= PCC_PCCn_PCS(0b001) //选择时钟 Clock Src= 1 (SOSCDIV2_CLK)&lt;BR /&gt; | PCC_PCCn_CGC_MASK; //使能LPUART2时钟&lt;/P&gt;&lt;P&gt;LPUART2-&amp;gt;BAUD = 0x0F000034; //配置波特率为9600，1停止位&lt;BR /&gt; // SBR=52 (0x34): 波特率模数除数 = 8M/9600/16 = ~52&lt;BR /&gt; // OSR=15: 采样率 = 15+1=16&lt;BR /&gt; // SBNS=0: 1个停止位&lt;BR /&gt; // BOTHEDGE=0: 接收端使用波特率时钟上升沿采样输入数据&lt;BR /&gt; // M10=0: 接收机和发射机使用7位到9位的数据字符&lt;BR /&gt; // RESYNCDIS=0: 支持在接收数据字期间重新同步&lt;BR /&gt; // LBKDIE, RXEDGIE=0: 禁用LIN中断，RX收入边缘中断&lt;/P&gt;&lt;P&gt;LPUART2-&amp;gt;CTRL=0x000C0000 | (1&amp;lt;&amp;lt;21);&lt;BR /&gt; // RE=1，TE=1: 使能接收及发送&lt;BR /&gt; // PE=0: 无奇偶校验&lt;BR /&gt; // M7,M,R8T9,R9T8=0: 8个数据位&lt;BR /&gt; // DOZEEN=0: 睡眠模式下LPUART正常启用&lt;BR /&gt; // ORIE,NEIE,FEIE,PEIE,TIE,TCIE,ILIE,MA1IE,MA2IE=0，RIE=1: 接收中断&lt;BR /&gt; // TXINV=0: 传输数据不是反向的&lt;BR /&gt; // IDLCFG=0: 1个空闲字符&lt;BR /&gt; // ILT=0: 空闲字符位计数在开始位之后开始&lt;BR /&gt;}&lt;BR /&gt; /*********************************************************************&lt;BR /&gt; * 函数原型：void UART2_transmit_char(char send)&lt;BR /&gt; * 功 能：UART2发送一个BYTE的数据&lt;BR /&gt; * 输入参数：send--需要发送的字符数据&lt;BR /&gt; * 返回参数：无&lt;BR /&gt; *&lt;BR /&gt; * 其他说明：&lt;BR /&gt;*********************************************************************/&lt;BR /&gt;void UART2_transmit_char(char send)&lt;BR /&gt;{ /* Function to Transmit single Char */&lt;BR /&gt; while((LPUART2-&amp;gt;STAT &amp;amp; LPUART_STAT_TDRE_MASK)&amp;gt;&amp;gt;LPUART_STAT_TDRE_SHIFT==0);&lt;BR /&gt; /* Wait for transmit buffer to be empty */&lt;BR /&gt; LPUART2-&amp;gt;DATA=send; /* Send data */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void UART2_transmit_string(char data_string[],int len)&lt;BR /&gt;{&lt;BR /&gt; uint32_t i=0;&lt;BR /&gt; for(i=0;i&amp;lt;len;i++)&lt;BR /&gt; {&lt;BR /&gt; UART2_transmit_char(data_string[i]);&lt;BR /&gt; }&lt;BR /&gt; UART2_transmit_char('\n'); /* New line */&lt;BR /&gt; UART2_transmit_char('\r'); /* Return */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void _printf(char data_string[])&lt;BR /&gt;{&lt;BR /&gt; UART2_transmit_string(data_string,strlen(data_string));&lt;/P&gt;&lt;P&gt;UART2_transmit_char('\n'); /* New line */&lt;BR /&gt; UART2_transmit_char('\r'); /* Return */&lt;BR /&gt;}&lt;BR /&gt;typedef struct&lt;BR /&gt;{&lt;BR /&gt; float p1;&lt;BR /&gt; float p2;&lt;BR /&gt; float p3;&lt;BR /&gt; float p4;&lt;BR /&gt; char ch;&lt;BR /&gt; double d1;&lt;BR /&gt; double d2;&lt;BR /&gt; unsigned long runtime_sec;&lt;BR /&gt; int i1;&lt;BR /&gt; char user_data[USER_DATA_SIZE];&lt;BR /&gt;} eeerom_data_t;&lt;/P&gt;&lt;P&gt;__attribute__ ((section(".eeeprom"))) eeerom_data_t eeerom_data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void WDOG_disable (void)&lt;BR /&gt;{&lt;BR /&gt; WDOG-&amp;gt;CNT=0xD928C520; /*Unlock watchdog*/&lt;BR /&gt; WDOG-&amp;gt;TOVAL=0x0000FFFF; /*Maximum timeout value*/&lt;BR /&gt; WDOG-&amp;gt;CS = 0x00002100; /*Disable watchdog*/&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; WDOG_disable();&lt;/P&gt;&lt;P&gt;SOSC_init_8MHz(); /* Initialize system oscilator for 8 MHz xtal */&lt;BR /&gt; SPLL_init_160MHz(); /* Initialize SPLL to 160 MHz with 8 MHz SOSC */&lt;BR /&gt; NormalRUNmode_40MHz();/* Init clocks: 80 MHz sysclk &amp;amp; core, 40 MHz bus, 20 MHz flash */&lt;/P&gt;&lt;P&gt;//DISABLE_INTERRUPTS();&lt;/P&gt;&lt;P&gt;UART2_init(); //配置UART2 波特率9600 1个停止数 无校验位&lt;BR /&gt; UART2_NVIC_init_IRQs(); //配置中断优先级&lt;BR /&gt; UART2_PORT_init (); //配置GPIO复用为TX、RX&lt;/P&gt;&lt;P&gt;//_printf("just do it!");&lt;/P&gt;&lt;P&gt;EEE_Init();&lt;/P&gt;&lt;P&gt;//EEE_Write_int32(123456,&amp;amp;eeerom_data.i1);&lt;BR /&gt; //EEE_Write_ByteArray(char* source,char* target,unsigned int size)&lt;BR /&gt; //EEE_Write_Byte(rev,&amp;amp;eeerom_data.ch);&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /* to avoid the warning message for GHS and IAR: statement is unreachable*/&lt;BR /&gt;//#if defined (__ghs__)&lt;BR /&gt;//#pragma ghs nowarning 111&lt;BR /&gt;//#endif&lt;BR /&gt;//#if defined (__ICCARM__)&lt;BR /&gt;//#pragma diag_suppress=Pe111&lt;BR /&gt;//#endif&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void LPUART2_RxTx_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt; char rev;&lt;BR /&gt; if (LPUART2-&amp;gt;STAT &amp;amp; 0x00200000)&lt;BR /&gt; {&lt;BR /&gt; rev = LPUART2-&amp;gt;DATA;&lt;BR /&gt; //EEE_Write_int32(123456,&amp;amp;eeerom_data.i1);&lt;BR /&gt; //EEE_Write_Byte(rev,&amp;amp;eeerom_data.ch);&lt;BR /&gt; //UART2_transmit_char(eeerom_data.i1);&lt;BR /&gt; if((LPUART2-&amp;gt;STAT &amp;amp; LPUART_STAT_TDRE_MASK)&amp;gt;&amp;gt;LPUART_STAT_TDRE_SHIFT!=0) //判断发射是否空闲&lt;BR /&gt; {&lt;BR /&gt; LPUART2-&amp;gt;DATA = rev;&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 08:47:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/write-the-data-received-by-the-UART-into-the-EEPROM/m-p/988116#M5766</guid>
      <dc:creator>1416899748</dc:creator>
      <dc:date>2019-11-14T08:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: write the data received by the UART into the EEPROM</title>
      <link>https://community.nxp.com/t5/S32K/write-the-data-received-by-the-UART-into-the-EEPROM/m-p/988117#M5767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks that you are using this example -&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-340625"&gt;EXAMPLE: S32K144 EEEPROM usage - No SDK&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you need is just add your target EEEProm data into eeeprom section:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92333i96F8B325CEFCB0C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example as global array in main.c&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92371i1D0401EE4682AA72/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then you can store received UART buffer to your eeeprom_data by:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EEE_Write_ByteArray(your_uart_buffer, eeerom_data, uart_buffer_size);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 12:02:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/write-the-data-received-by-the-UART-into-the-EEPROM/m-p/988117#M5767</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2019-11-14T12:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: write the data received by the UART into the EEPROM</title>
      <link>https://community.nxp.com/t5/S32K/write-the-data-received-by-the-UART-into-the-EEPROM/m-p/988118#M5768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I understand a little, but in my code, which one is the buff, I am still a newbie.I want to put the EEPROM write in the interrupt function.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;if (LPUART2-&amp;gt;STAT &amp;amp; 0x00200000)&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;rev = LPUART2-&amp;gt;DATA;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;if((LPUART2-&amp;gt;STAT &amp;amp; LPUART_STAT_TDRE_MASK)&amp;gt;&amp;gt;LPUART_STAT_TDRE_SHIFT!=0) //判断发射是否空闲&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;LPUART2-&amp;gt;DATA = rev;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 02:11:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/write-the-data-received-by-the-UART-into-the-EEPROM/m-p/988118#M5768</guid>
      <dc:creator>1416899748</dc:creator>
      <dc:date>2019-11-15T02:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: write the data received by the UART into the EEPROM</title>
      <link>https://community.nxp.com/t5/S32K/write-the-data-received-by-the-UART-into-the-EEPROM/m-p/988119#M5769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;In the following code, which one is the receive buffer, I am still a newbie, I am sorry, I want to put the EEPROM write in the receive interrupt function.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;if (LPUART2-&amp;gt;STAT &amp;amp; 0x00200000)&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;rev = LPUART2-&amp;gt;DATA;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;if((LPUART2-&amp;gt;STAT &amp;amp; LPUART_STAT_TDRE_MASK)&amp;gt;&amp;gt;LPUART_STAT_TDRE_SHIFT!=0) //判断发射是否空闲&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;LPUART2-&amp;gt;DATA = rev;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 02:14:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/write-the-data-received-by-the-UART-into-the-EEPROM/m-p/988119#M5769</guid>
      <dc:creator>1416899748</dc:creator>
      <dc:date>2019-11-15T02:14:46Z</dc:date>
    </item>
  </channel>
</rss>

