# stm32f103-nuttx **Repository Path**: binsruny/stm32f103-nuttx ## Basic Information - **Project Name**: stm32f103-nuttx - **Description**: No description available - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # stm32f103-nuttx #### 介绍 {**以下是码云平台说明,您可以替换此简介** 码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} #### 软件架构 硬件件架构说明 组成方式:stm32f130rc + ublox(NEO M8N) + 行云XY通信模块 接口方式:1*usb(debug) + 2*uart(1 for xy module, 1 for ublox) + 1pps + wakeup + 1*led(blink) debug 是使用usb 虚拟串口作为终端的 软件架构说明 rtos: nuttx apps: xydm(xydm 通信) + nmealib(gps解析) app 路径: apps/examples/xydm #### 安装教程 1. 搭建nuttx 编译环境linux (arm-none-eabi-gcc + kconfig-frontends) nuttx 环境搭建参照:https://wushifu-notes.readthedocs.io/zh/latest/nuttX%20RTOS%E7%B3%BB%E7%BB%9F%E8%AF%95%E7%94%A8/ 2. 编译步骤 : 进入 nuttx 目录直接编译: cd nuttx make 等待编译完成后会在nuttx目录下生成nuttx.bin 和 nuttx.hex 文件 3. 烧录: 将编译生成的bin文件或者hex文件通过stlink 或者jlink工具写入mcu即可 烧写完成后重新插拔下usb以便于点识别虚拟串口 4. 启动: xydm 应用程序需要手动启动,在secureCRT或其他串口交互工具中打开识别到的虚拟串口后连续按下ENTER键三次即可进入nsh 终端 通过执 行xydm 命令即可运行 xydm应用程序。 如果需要xydm上电启动,则需要在 文件boards/arm/stm32/stm32f103rc-mini/include/etc/init.d/rcS 中加入 xydm & 并且重新制作romfs头文件,然后再重新编译即可:(在boards/arm/stm32/stm32f103rc-mini/include目录下) 1、genromfs –f romfs_img –d etc –v –V "romfs" 2、xxd -i romfs_img nsh_romfsimg.h #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)