<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									UART прерывание, по событию IDLE, не срабатывает. - STM32				            </title>
            <link>https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/</link>
            <description>Обсуждение вопросов, посвященных программированию микроконтроллеров, разработке электроники и не только.</description>
            <language>ru-RU</language>
            <lastBuildDate>Sat, 04 Apr 2026 18:45:25 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>НА: UART прерывание, по событию IDLE, не срабатывает.</title>
                        <link>https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1960</link>
                        <pubDate>Fri, 23 Jun 2023 15:22:15 +0000</pubDate>
                        <description><![CDATA[То есть если бы адрес сохранялся в UART_HandleTypeDef структуру, то было бы так, как я описал))Я что то напутал и думал что так оно и есть, что адрес в структуру UART_HandleTypeDef сохраняет...]]></description>
                        <content:encoded><![CDATA[<p>То есть если бы адрес сохранялся в UART_HandleTypeDef структуру, то было бы так, как я описал))<br />Я что то напутал и думал что так оно и есть, что адрес в структуру UART_HandleTypeDef сохраняется.</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/stm32/">STM32</category>                        <dc:creator>stm</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1960</guid>
                    </item>
				                    <item>
                        <title>НА: UART прерывание, по событию IDLE, не срабатывает.</title>
                        <link>https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1959</link>
                        <pubDate>Fri, 23 Jun 2023 15:18:26 +0000</pubDate>
                        <description><![CDATA[@stm хорошо)]]></description>
                        <content:encoded><![CDATA[<p>@stm хорошо)</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/stm32/">STM32</category>                        <dc:creator>Aveal</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1959</guid>
                    </item>
				                    <item>
                        <title>НА: UART прерывание, по событию IDLE, не срабатывает.</title>
                        <link>https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1958</link>
                        <pubDate>Fri, 23 Jun 2023 15:12:26 +0000</pubDate>
                        <description><![CDATA[USART_TypeDef, не UART_InitTypeDef]]></description>
                        <content:encoded><![CDATA[<p>USART_TypeDef, не UART_InitTypeDef</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/stm32/">STM32</category>                        <dc:creator>stm</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1958</guid>
                    </item>
				                    <item>
                        <title>НА: UART прерывание, по событию IDLE, не срабатывает.</title>
                        <link>https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1957</link>
                        <pubDate>Fri, 23 Jun 2023 14:58:33 +0000</pubDate>
                        <description><![CDATA[Ок. Раробрался))]]></description>
                        <content:encoded><![CDATA[<p>Ок. Раробрался))</p>
382]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/stm32/">STM32</category>                        <dc:creator>stm</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1957</guid>
                    </item>
				                    <item>
                        <title>НА: UART прерывание, по событию IDLE, не срабатывает.</title>
                        <link>https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1956</link>
                        <pubDate>Fri, 23 Jun 2023 13:06:56 +0000</pubDate>
                        <description><![CDATA[@stm Каша, все смешалось ) 
typedef struct __UART_HandleTypeDef
{
  USART_TypeDef                 *Instance;        /*!&lt; UART registers base address        */

  UART_InitTypeDef    ...]]></description>
                        <content:encoded><![CDATA[<p>@stm Каша, все смешалось ) </p>
<pre contenteditable="false">typedef struct __UART_HandleTypeDef
{
  USART_TypeDef                 *Instance;        /*!&lt; UART registers base address        */

  UART_InitTypeDef              Init;             /*!&lt; UART communication parameters      */

  uint8_t                       *pTxBuffPtr;      /*!&lt; Pointer to UART Tx transfer Buffer */

  uint16_t                      TxXferSize;       /*!&lt; UART Tx Transfer size              */
// ........................</pre>
<p>Instance - поле структуры = переменная (указатель на структуру USART_TypeDef), в которой хранится адрес 0x40004800 (UART registers base address), таким образом в дальнейшем происходит запись в регистры:</p>
<pre contenteditable="false">typedef struct
{
  __IO uint32_t SR;         /*!&lt; USART Status register,                   Address offset: 0x00 */
  __IO uint32_t DR;         /*!&lt; USART Data register,                     Address offset: 0x04 */
  __IO uint32_t BRR;        /*!&lt; USART Baud rate register,                Address offset: 0x08 */
  __IO uint32_t CR1;        /*!&lt; USART Control register 1,                Address offset: 0x0C */
  __IO uint32_t CR2;        /*!&lt; USART Control register 2,                Address offset: 0x10 */
  __IO uint32_t CR3;        /*!&lt; USART Control register 3,                Address offset: 0x14 */
  __IO uint32_t GTPR;       /*!&lt; USART Guard time and prescaler register, Address offset: 0x18 */
} USART_TypeDef;
</pre>
<p>Экземпляр UART_HandleTypeDef, как и все ее поля, хранится в ОЗУ.</p>
<p> </p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/stm32/">STM32</category>                        <dc:creator>Aveal</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1956</guid>
                    </item>
				                    <item>
                        <title>НА: UART прерывание, по событию IDLE, не срабатывает.</title>
                        <link>https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1955</link>
                        <pubDate>Fri, 23 Jun 2023 12:13:26 +0000</pubDate>
                        <description><![CDATA[huart3.Init.BaudRate = 9600;huart3 - начальный адрес Адрес USART3 0x4000 4800BaudRate находится в структуре UART_HandleTypeDef и должен идти сразу после регистров.Я смотрел в памяти, но этог...]]></description>
                        <content:encoded><![CDATA[<p>huart3.Init.BaudRate = 9600;<br />huart3 - начальный адрес Адрес USART3 0x4000 4800<br />BaudRate находится в структуре UART_HandleTypeDef и должен идти сразу после регистров.<br />Я смотрел в памяти, но этого не происходит.</p>
380
<p> </p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/stm32/">STM32</category>                        <dc:creator>stm</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1955</guid>
                    </item>
				                    <item>
                        <title>НА: UART прерывание, по событию IDLE, не срабатывает.</title>
                        <link>https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1954</link>
                        <pubDate>Fri, 23 Jun 2023 10:57:00 +0000</pubDate>
                        <description><![CDATA[Я упростил код для лучшего понимания.struct nr1{int CR1;} Instance;
struct nr2{int BaudRate;} Init;struct nr3{int HAL_UART_STATE_RESET;} ReceptionType;
struct common{struct nr1 Instance;st...]]></description>
                        <content:encoded><![CDATA[<p>Я упростил код для лучшего понимания.<br />struct nr1<br />{<br />int CR1;<br />} Instance;</p>
<p>struct nr2<br />{<br />int BaudRate;<br />} Init;<br /><br />struct nr3<br />{<br />int HAL_UART_STATE_RESET;<br />} ReceptionType;</p>
<p>struct common<br />{<br />struct nr1 Instance;<br />struct nr2 Init;<br />struct nr3 ReceptionType;</p>
<p>} UART_HandleTypeDef;<br />int main()<br />{<br />UART_HandleTypeDef.Instance.CR1=1;<br />UART_HandleTypeDef.Init.BaudRate=2;<br />UART_HandleTypeDef.ReceptionType.HAL_UART_STATE_RESET=3;<br />return 0;<br />}<br />Главное на что здесь надо обратить это структура UART_HandleTypeDef.<br />Информация из этой структуры будет храниться в памяти по порядку без разрывов.</p>
<p>UART_HandleTypeDef.Instance.CR1=1;<br />UART_HandleTypeDef.Init.BaudRate=2;<br />UART_HandleTypeDef.ReceptionType.HAL_UART_STATE_RESET=3;</p>
379]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/stm32/">STM32</category>                        <dc:creator>stm</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1954</guid>
                    </item>
				                    <item>
                        <title>НА: UART прерывание, по событию IDLE, не срабатывает.</title>
                        <link>https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1952</link>
                        <pubDate>Thu, 22 Jun 2023 13:32:41 +0000</pubDate>
                        <description><![CDATA[@stm железок нет сейчас под рукой ) завтра скину и распишу, что где находится]]></description>
                        <content:encoded><![CDATA[<p>@stm железок нет сейчас под рукой ) завтра скину и распишу, что где находится</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/stm32/">STM32</category>                        <dc:creator>Aveal</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1952</guid>
                    </item>
				                    <item>
                        <title>НА: UART прерывание, по событию IDLE, не срабатывает.</title>
                        <link>https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1951</link>
                        <pubDate>Thu, 22 Jun 2023 09:46:24 +0000</pubDate>
                        <description><![CDATA[))Не судите строго))224/8==28 БайтНо сымсл не меняется]]></description>
                        <content:encoded><![CDATA[<p>))Не судите строго))<br />224/8==28 Байт<br />Но сымсл не меняется</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/stm32/">STM32</category>                        <dc:creator>stm</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1951</guid>
                    </item>
				                    <item>
                        <title>НА: UART прерывание, по событию IDLE, не срабатывает.</title>
                        <link>https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1950</link>
                        <pubDate>Thu, 22 Jun 2023 07:55:05 +0000</pubDate>
                        <description><![CDATA[Выше в сообщении я неправильно посчитал.7 регистров по 32 бит. 7*32==224==E00x4000 4800+E0==0x4000 48E0Это хранится начиная с адреса 0x4000 48E0:
UART_InitTypeDef Init;const uint8_t *pTxBuf...]]></description>
                        <content:encoded><![CDATA[<p>Выше в сообщении я неправильно посчитал.<br />7 регистров по 32 бит. 7*32==224==E0<br />0x4000 4800+E0==0x4000 48E0<br />Это хранится начиная с адреса 0x4000 48E0:</p>
<p>UART_InitTypeDef Init;<br />const uint8_t *pTxBuffPtr;<br />uint16_t TxXferSize;<br />__IO uint16_t TxXferCount;<br />uint8_t *pRxBuffPtr;<br />uint16_t RxXferSize;<br />__IO uint16_t RxXferCount;<br />__IO HAL_UART_RxTypeTypeDef ReceptionType;<br />DMA_HandleTypeDef *hdmatx;<br />DMA_HandleTypeDef *hdmarx;<br />HAL_LockTypeDef Lock;<br />__IO HAL_UART_StateTypeDef gState;<br />__IO HAL_UART_StateTypeDef RxState;<br />__IO uint32_t ErrorCode;</p>
<p>Это находится между адресами 0x4000 4800 - 0x4000 4BFF где вы пишете ничего не хранится.</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/stm32/">STM32</category>                        <dc:creator>stm</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/stm32/uart-preryvanie-po-sobytiyu-idle-ne-srabatyvaet/paged/2/#post-1950</guid>
                    </item>
							        </channel>
        </rss>
		