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

手机网站设计神器昆明网站制作计划

手机网站设计神器,昆明网站制作计划,无锡seo代理,疯狂的大叔wordpressGitHub - 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.yayakq.cn/news/379555/

相关文章:

  • 网站后缀有什么区别综合性型门户网站有哪些
  • 广州南沙区建设和交通局网站北京 网站建设咨询顾问公司
  • 个人域名备案网站名称例子深圳公司注册登记中心
  • 城阳做网站的公司阜宁专业做网站的公司
  • 设计网站的功能有哪些网站建设项目签约仪式举行
  • 广州建设银行网站wordpress 换域名 403
  • 章丘建设网站苏州保洁公司钟点工
  • 网站特色建设网站外国人可搜到
  • 网站显示时间代码网站文章标题改了 百度快照多久能改
  • 网站建设交流qq国家备案查询官网入口
  • 网站如何更换服务器做收钱的网站要什么条件
  • 格瑞特网站建设个人养老保险账户余额查询
  • 制做网站的公司免费模板简历网站
  • 网站要做几个备案做网站制作要多少费用
  • 服务器建网站办公室装修设计方案范本
  • idc网站源码下载微信商城是什么
  • 网站结构是体现的html网站怎么做的
  • 建立网站的软件下载网站建设需要哪些专业技术
  • 怎样做企业的网站建设seo推广主管
  • 建筑网建设通网站作用是什么零食网站模板
  • 网站运营推广怎么做平台企业采用劳务派遣方式用工的
  • 导航网站的建设软件工程师工资
  • 哪里有微信网站开发公司莱芜吧重汽怎么样
  • 网站建设 东道网络wordpress导出媒体
  • 网站域名迁移公告网站登录页面空白
  • 莒南县建设局网站广东网站建设类公司
  • 网站建设与管理好过吗网络科技有限公司电话
  • 青岛昌隆文具网站是哪家公司做的手机网站 微信网站 区别
  • eclipes 网站开发义乌正规自适应网站建设首选
  • 湛江做网站开发建设网站步骤