83
4106
1万
资深工程师
首先需要准备移植的相关华大MCU外设固件库以及FreeRTOS
华大MCU处理器的固件外设例程官网下载
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (66.05 KB )
下载附件
2021-8-1 15:51 上传
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (328.18 KB )
使用特权
1. 为了方便移植,直接利用华大官方固件库的GPIO输出的MDK例程工程进行移植,找到华大固件库的GPIO例程MDK工程,贴图如下 watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (32.18 KB ) 下载附件 2021-8-1 15:52 上传
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (32.18 KB )
2021-8-1 15:52 上传
20210607230956797.png (30.63 KB )
2021-8-1 15:53 上传
22953610652d380af3.png (30.11 KB )
8475610652dbc67d5.png (39.4 KB )
369056106530f64866.png (46.82 KB )
1864761065325ab1a1.png (21.98 KB )
2021-8-1 15:54 上传
701226106533647871.png (35.76 KB )
3986106533e19058.png (24.2 KB )
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (50.39 KB ) 下载附件 2021-8-1 15:55 上传 提示找不到FreeRTOSConfig.h,此文件是内核配置,该文件通过定义不同的宏对内核进行裁剪。为了图方便,采用了FreeRTOS的官方的STM32F103 DEMO工程的配置文件,将其copy至华大例程目录下 watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (91.21 KB ) 下载附件 2021-8-1 15:55 上传 watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (32.01 KB ) 下载附件 2021-8-1 15:55 上传 再次编译成功。 watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (27.15 KB ) 下载附件 2021-8-1 15:55 上传
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (50.39 KB )
2021-8-1 15:55 上传
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (91.21 KB )
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (32.01 KB )
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (27.15 KB )
2542161065379152ce.png (59.37 KB )
578096106537fdc174.png (271.86 KB )
457376106538a36b66.png (60.69 KB )
5447561065391874d7.png (37.58 KB )
2021-8-1 15:56 上传
67028610653985cd21.png (22.3 KB )
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (55.74 KB ) 下载附件 2021-8-1 15:57 上传 任务比较简单,start_task用于创建task1_task, 而task1_task是定时任务,闪烁LED。 watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (35.04 KB ) 下载附件 2021-8-1 15:57 上传
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (55.74 KB )
2021-8-1 15:57 上传
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (35.04 KB )
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (46.91 KB )
2021-8-1 15:58 上传
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (49.82 KB )
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (44.09 KB )
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (651.58 KB ) 下载附件 2021-8-1 15:58 上传 watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (626.81 KB ) 下载附件 2021-8-1 15:58 上传 LED灯每1s闪烁一次,移植成功
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (651.58 KB )
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE4OTUzOTE3,size_16,color_FFFFFF,t_70.jpg (626.81 KB )
发表回复 本版积分规则 回帖后跳转到最后一页
2
扫码关注 21ic 官方微信
扫码关注嵌入式微处理器
扫码关注21ic项目外包
扫码关注21ic视频号
扫码关注21ic抖音号
本站介绍 | 申请友情链接 | 欢迎投稿 | 隐私声明 | 广告业务 | 网站地图 | 联系我们 | 诚聘英才 | 论坛帮助
京公网安备 11010802024343号