你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

st-img
chrome
st-img
firefox
st-img
safari
st-img
ie8及以上
shequ.stmicroelectronics.cn
  • ST意法半导体官网
  • STM32中文官网
  • ST全球论坛
登录/注册
  • 首页
  • 技术问答
  • 话题
  • 资源
  • 创客秀
  • 视频
  • 标签
  • 积分商城
  • 每日签到
nbh520

nbh520

 

回答数 0 关注数 0
关注 私信
  • 动态99
  • 提问
  • 回答0
  • 创客秀 0
  • 分享 0
  • 关注0
2 回答

STemwin自定义GB2312编码汉字字库,字体放大问题

未设置标签
nbh520 nbh520 回答时间: 2018-11-6 13:48

baiyongbin2009 发表于 2018-11-6 11:50 这个是早期UCGUI3.XX时代预留下来的方案,放大效果的确有问题。 建议还是直接生成对应的大字体吧,因为这 ... 好的,谢谢哥们解答

赞0
4 回答

STM32F411 DMA2 keil调试时,能够使用,不调试,就没有反应

STM32F4
nbh520 nbh520 最优答案 回答时间: 2017-11-7 16:57

使用DMA做串口接收时,在启动DMA后需要将串口溢出标志清除(有些应用场景,串口接收端是一直有数据存在的),才能正常接收。 这个问题之前在使用STM32L072时,就已经发现解决了,但由于F4平台和L0平台在清除溢出标志方式略有不同。 为了避免有人出现同样的问题,下面给大家描述一下,两者的不同之处:STM32L0清除USART标志直接调用__HAL_USART_CLEAR_IT()即可 STM32F4 __HAL_UART_CLEAR_FLAG()能够清除的标志只有UART_FLAG_CTS、UART_FLAG_LBD、UART_FLAG_TC、UART_FLAG_RXNE,而PE (Parity error), FE (Framing error), NE (Noise error), ORE (Overrun error) and IDLE (Idle line detected) flags 等标志的清除需要读取USART_SR register才行。 STM32L0 /** @brief  Clears the specified USART ISR flag, in setting the proper ICR register flag.   * @param  __HANDLE__: specifies the USART Handle which can be USART1 or USART2.   * @param  __IT_CLEAR__: specifies the interrupt clear register flag that needs to be set   *                       to clear the corresponding interrupt   *          This parameter can be one of the following values:   *            @arg USART_CLEAR_PEF: Parity Error Clear Flag   *            @arg USART_CLEAR_FEF: Framing Error Clear Flag   *            @arg USART_CLEAR_NEF: Noise detected Clear Flag   *            @arg USART_CLEAR_OREF: OverRun Error Clear Flag   *            @arg USART_CLEAR_IDLEF: IDLE line detected Clear Flag   *            @arg USART_CLEAR_TCF: Transmission Complete Clear Flag   *            @arg USART_CLEAR_CTSF: CTS Interrupt Clear Flag   * @retval None   */ #define __HAL_USART_CLEAR_IT(__HANDLE__, __IT_CLEAR__) ((__HANDLE__)->Instance->ICR = (uint32_t)(__IT_CLEAR__)) STM32F4 /** @brief  Clears the specified UART pending flag.   * @param  __HANDLE__: specifies the UART Handle.   *         This parameter can be UARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or   *         UART peripheral.   * @param  __FLAG__: specifies the flag to check.   *          This parameter can be any combination of the following values:   *            @arg UART_FLAG_CTS:  CTS Change flag (not available for UART4 and UART5).   *            @arg UART_FLAG_LBD:  LIN Break detection flag.   *            @arg UART_FLAG_TC:   Transmission Complete flag.   *            @arg UART_FLAG_RXNE: Receive data register not empty flag.   *      * @note   E (Parity error), FE (Framing error), NE (Noise error), ORE (Overrun   *          error) and IDLE (Idle line detected) flags are cleared by software   *          sequence: a read operation to USART_SR register followed by a read   *          operation to USART_DR register.   * @note   RXNE flag can be also cleared by a read to the USART_DR register.   * @note   TC flag can be also cleared by software sequence: a read operation to   *          USART_SR register followed by a write operation to USART_DR register.   * @note   TXE flag is cleared only by a write to the USART_DR register.   *      * @retval None   */ #define __HAL_UART_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR = ~(__FLAG__)) 复制代码

赞0
4 回答

STM32F411 USB全速设备 AHB频率30MHz才能正常使用

STM32F4 USB
linxiaomo linxiaomo 回答时间: 2017-11-7 17:44

你可以看下芯片手册的clock tree  有些芯片PLL是已经默认先2分频,再到AHB的。你可以用示波器验证下时钟输出是不是有那么高频率。

赞0
4 回答

STM32F4 freeRTOS 停止模式,休眠时间计算问题

STM32F4
shuihehe shuihehe 回答时间: 2018-8-31 14:54

用了rtos 还想低功耗 建议你看看tickless

赞0
5 回答

跪求各路大神,STM32L072 睡眠模式、停止模式切换使用报硬...

STM32L0
xmshao xmshao 回答时间: 2017-7-23 17:20

nbh520 发表于 2017-7-21 17:25 非常感谢你的意见。 STOP模式和SLEEP模式,最初我是分开调的,调得基本上没有问题,才一起调试的。

赞0
2 回答

STM32芯片__disable_irq关闭中断后,调用__WFI()指令,CPU为什么...

未设置标签
nbh520 nbh520 回答时间: 2017-7-6 16:39

xmshao 发表于 2017-7-6 14:45 __disable_irq函数 只是关闭了CPU的中断响应,它相当于中断控制总开关。 此时即使产生了允许的中断请求事件 ... 明白了,也就是说STM32的EXTI中断只要正确配置后,在使用WFI指令时,__disable_irq对其没有任何影响

赞0
nbh520 nbh520


阅读作者更多的帖子

所在话题

参与活动

  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    线下 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    网络 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    网络 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    网络 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    线下 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    线下 2020-10-16