当前位置: 首页 > news >正文

网站建设是前端么陕西网站seo

网站建设是前端么,陕西网站seo,手机制作网站开发,做网站大记事代码GitHub - micro-ROS/micro_ros_stm32cubemx_utils at humble 这个就是下载这个代码库以后的文件结构。其中sample_project.ioc就是平时STM32CubeMX的工程文件。类似于visual studio里面的项目文件 。打开以后是这个样子的: 可以看到跟本文后面的那些配置是几乎一模一…

GitHub - micro-ROS/micro_ros_stm32cubemx_utils at humble

 这个就是下载这个代码库以后的文件结构。其中sample_project.ioc就是平时STM32CubeMX的工程文件。类似于visual studio里面的项目文件 。打开以后是这个样子的:

 可以看到跟本文后面的那些配置是几乎一模一样,就是说这个包里面包含了STM32CubeMX工程文件了

Using this package with STM32CubeMX

  1. Clone this repository in your STM32CubeMX project folder. A sample project can be generated with the provided sample_project.ioc.

  2. Make sure that your STM32CubeMX project is using a Makefile toolchain (toolchain指交叉编译器,我觉得就是跨平台编译的东西例如cmake,这里选择使用makefile交叉编译器系统,这个代码库下载后也可以看到有mkefile文件,应该用于交叉编译的,有意思的是:CMakelists.txt最后也是生成了makefile文件)under Project Manager -> Project

  3. Make sure that if you are using FreeRTOS, the micro-ROS task has more than 10 kB of stack

  4. Configure the transport interface on the STM32CubeMX project, check the Transport configuration section for instructions on the custom transports provided.在STM32CubeMX内设置串口

  5. Modify the generated Makefile to include the following code before the build the application section:修改makefile文件,在build the application之前添加后面这个代码

    #######################################
    # micro-ROS addons
    #######################################
    LDFLAGS += micro_ros_stm32cubemx_utils/microros_static_library/libmicroros/libmicroros.a
    C_INCLUDES += -Imicro_ros_stm32cubemx_utils/microros_static_library/libmicroros/microros_include# Add micro-ROS utils
    C_SOURCES += micro_ros_stm32cubemx_utils/extra_sources/custom_memory_manager.c
    C_SOURCES += micro_ros_stm32cubemx_utils/extra_sources/microros_allocators.c
    C_SOURCES += micro_ros_stm32cubemx_utils/extra_sources/microros_time.c# Set here the custom transport implementation
    C_SOURCES += micro_ros_stm32cubemx_utils/extra_sources/microros_transports/dma_transport.c
    #注意看这里添加的是DMA传输方式文件,所以前面应该配置的是DMA传输方式,如果使用的是中断方式就不知道添加哪个文件了也许大概是包含IT_transport.c这样的一个文件吧print_cflags:@echo $(CFLAGS)
  6. Execute the static library generation tool. 编译Compiler flags will retrieved automatically from your Makefile and user will be prompted to check if they are correct.

    docker pull microros/micro_ros_static_library_builder:humble(这里遇到permission denied,所以需要先切换到超级用户在控制台输入su,然后再执行这个命令就可以了)docker run -it --rm -v $(pwd):/project --env MICROROS_LIBRARY_FOLDER=micro_ros_stm32cubemx_utils/microros_static_library microros/micro_ros_static_library_builder:humble
  7. Modify your main.c to use micro-ROS.(在开发文件cpp文件中根据需要使用micro-ros内容) An example application can be found in sample_main.c.

  8. Continue your usual workflow building your project and flashing the binary:

    make -j$(nproc)

Transport configuration(STM32与micro_ros支持的通讯方式)

Available transport for this platform are:

U(S)ART with DMA(DMA方式的串口通讯)

Steps to configure:

  • Enable U(S)ART in your STM32CubeMX
  • For the selected USART, enable DMA for Tx and Rx under DMA Settings
  • Set the DMA priotity to Very High for Tx and Rx
  • Set the DMA mode to Circular for Rx: Detail
  • For the selected, enable global interrupt under NVIC Settings: Detail

U(S)ART with Interrupts(中断方式串口通讯)

Steps to configure:

  • Enable U(S)ART in your STM32CubeMX
  • For the selected USART, enable global interrupt under NVIC Settings: Detail

USB CDC

Steps to configure:

  • Enable the USB in your STM32CubeMX Connectivity tab.

  • Select the Communication Device Class (Virtual Port Com) mode on the Middleware -> USB_DEVICE configuration.

    Note: The micro-ROS transport will override the autogenerated USB_DEVICE/App/usbd_cdc_if.c methods.

http://www.yidumall.com/news/40880.html

相关文章:

  • 学做网站和推广要多久台州seo排名扣费
  • 建设企业网站所遵循的一般原则360外链
  • seo是如何做优化的怎么做网络推广优化
  • qq网站推广代码湖南seo优化报价
  • 可以做问卷赚钱的网站百度一下你就知道网页
  • 动态网站开发所需要的web构件站内seo的技巧
  • wordpress写插件吗杭州关键词优化平台
  • 政府网站推广方案关键词优化排名要多少钱
  • 钦州网站建设免费网站建设制作
  • 工业云网站建设销售找客户的app
  • 描述网站建设规范方法免费下载百度并安装
  • 重庆制作网站的公司排名站长工具手机综合查询
  • 腾讯云国外服务器山西seo顾问
  • 服务器怎样建设网站公司seo是什么级别
  • 物流行业网站建设方案百度客服中心人工在线咨询
  • php网站开发面试题廊坊百度快照优化排名
  • 如何做介绍一门课程的网站seo排名优化软件有
  • 越城网站建设公司网站建设网络推广seo
  • 宁波网站制作哪家全面免费制作logo的网站
  • 建设个定制网站需要多少钱轻松seo优化排名
  • 网站开发全包软文什么意思范例
  • 猪八戒网网站开发需求seo工具是什么意思
  • 一元夺宝网站制作视频软件推广平台有哪些
  • cpa单页网站怎么做人民网 疫情
  • 做外贸怎么登陆国外网站关键词搜索排名工具
  • 网站开发技术规范要求市场调研分析报告怎么写
  • 网站建设教程大全 百度网盘360优化大师旧版本
  • 网站建设与推广的销售链接生成器
  • 旅游做视频网站怎么建立自己的网站
  • 做蔬菜的网站有哪些阿里巴巴logo