- 博客(10)
- 资源 (14)
- 收藏
- 关注
原创 RT-Thread Studio RTC使用笔记
使能RTC:拷贝drv_rtc.c和drv_log.h;使能#define HAL_RTC_MODULE_ENABLED:修改main函数即可使用:#include <time.h>int main(void){ struct tm *t; t=rt_malloc(sizeof(struct tm)); time_t now=0; LOG_D...
2020-03-25 18:16:59 2228 1
原创 RT-Thread Studio 红外Infrared使用笔记
使用rt-thread的infrared组件,可以轻松上手红外遥控功能。开启NEC解码,根据硬件设计修改使用的引脚和定时器标识。先使能hwtimer驱动然后在main函数调用:#include <infrared.h>struct infrared_decoder_data infrared_data;int main(void){ ir_select_de...
2020-03-24 17:24:28 1328
原创 RT-Thread Studio部分定时器时钟不正确的解决方案
在昨天的RT-Thread Studio硬件定时器hwtimer在stm32f411上的使用笔记中,遇到了部分定时器速度想象中和实际不一致的情况,具体表现在定时器2、3、4、5、9、10、11都正常,但定时器1要快一倍。仔细查看代码,找到了原因。因为代码使用的是工程是直接生成的时钟代码,实际的时钟频率是这样的:而实际的定时器时钟配置代码如下: { rt_uint32...
2020-03-24 09:58:14 1041
原创 RT-Thread Studio硬件定时器hwtimer在stm32f411上的使用笔记
创建基于F411的芯片空工程。启用hwtimer:拷贝以下三个文件到drivers目录,路径分别为C:\RT-ThreadStudio\download\rt-thread-sdk\rt-thread-src\v4.0.2\bsp\stm32\libraries\HAL_Drivers\config\f4和 C:\RT-ThreadStudio\download\rt-thread-sd...
2020-03-23 16:39:33 2751 2
原创 RT-Thread Studio片上Flash 实现Flash抽象层FAL笔记
使用ATK-NANO STM32F411的开发板, 实现Flash抽象层FAL。先添加fal的软件包,并复制fal_cfg.h到drivers目录下:复制C:\RT-ThreadStudio\download\rt-thread-sdk\rt-thread-src\v4.0.2\bsp\stm32\libraries\HAL_Drivers\drv_flash目录下的drv_flash.h文...
2020-03-20 11:45:18 3981
原创 关于STM32中Bank、Sector、Page的理解
以我们常用的STM32F103C8T6为例:它具有64K的闪存大小,属于中容量产品。在STM32中文参考手册_V10中,是这样描述嵌入式闪存的:中容量产品主存储块最大为16x64位,每个存储块划分为128个1K字节的页,对应的表3如下:在手册随后的擦除和编程相关的描述中:我们就知道了,STM32F1系列最小擦除粒度为页面(1K),最小写入粒度为半字(2byte)。再以STM32...
2020-03-20 10:45:34 11454 1
原创 RT-Thread中的数码管显示Demo
因为数码管显示的过程中,经常会使用延时函数,在裸机中实现起来常常会长时间占用CPU。使用rt-thread的rt_thread_mdelay可以通过线程调度的方法,合理使用cpu资源。新建一个smg.c文件:/* * Copyright (c) 2006-2020, RT-Thread Development Team * * SPDX-License-Identifier: Apac...
2020-03-18 21:25:50 757
原创 RT-Thread Studio 外部flash挂载虚拟文件系统笔记
使用ATK-NANO STM32F411的开发板,实现外部flash挂载虚拟文件系统。参考基于 RT-Thread Studio 的 SPI 驱动开发文档,基于自己使用的芯片,创建空工程,实现hello world。rt-thread将hal库的接口驱动都放在了C:\RT-ThreadStudio\download\rt-thread-sdk\rt-thread-src\v4.0.2\bsp\...
2020-03-18 11:58:50 2609 1
原创 RT-Thread Studio 更新V1.0.3失败解决办法
错误提示:An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase.session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust,...
2020-03-16 15:37:20 612 2
h743_adc_8ch_dma_timer.ioc
2020-04-26
h743_adc_8ch_poll.ioc
2020-04-26
f411-infrared.zip
2020-03-24
stm32f411rc-fal-onchip+sfud.zip
2020-03-20
Newtonsoft.Json.dll
2019-02-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人