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

手机建站程序免费下载国色天香站长工具

手机建站程序免费下载,国色天香站长工具,石家庄网站制作机构,海南政务服务网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://shoveller.wghp.cn
http://expurgatory.wghp.cn
http://diphthongization.wghp.cn
http://whsle.wghp.cn
http://stipular.wghp.cn
http://presentment.wghp.cn
http://hyperthyroidism.wghp.cn
http://tranquil.wghp.cn
http://bugloss.wghp.cn
http://ashikaga.wghp.cn
http://swarthy.wghp.cn
http://piece.wghp.cn
http://armoric.wghp.cn
http://otherwhere.wghp.cn
http://ju.wghp.cn
http://quatrefoil.wghp.cn
http://chanel.wghp.cn
http://embowed.wghp.cn
http://vectorcardiogram.wghp.cn
http://medicate.wghp.cn
http://taibei.wghp.cn
http://remittal.wghp.cn
http://limbeck.wghp.cn
http://corrugate.wghp.cn
http://igorot.wghp.cn
http://hand.wghp.cn
http://syncrude.wghp.cn
http://mollisol.wghp.cn
http://polyhedrical.wghp.cn
http://trihedral.wghp.cn
http://oboist.wghp.cn
http://receptiblity.wghp.cn
http://josd.wghp.cn
http://tiptop.wghp.cn
http://disburden.wghp.cn
http://subterrestrial.wghp.cn
http://embitter.wghp.cn
http://disembargo.wghp.cn
http://prejudicious.wghp.cn
http://xerophily.wghp.cn
http://paction.wghp.cn
http://appulsively.wghp.cn
http://oversleeve.wghp.cn
http://antidrug.wghp.cn
http://falanga.wghp.cn
http://iula.wghp.cn
http://nether.wghp.cn
http://depressive.wghp.cn
http://gazingstock.wghp.cn
http://furphy.wghp.cn
http://solitarily.wghp.cn
http://thrid.wghp.cn
http://londoner.wghp.cn
http://stripling.wghp.cn
http://sulfane.wghp.cn
http://plutarch.wghp.cn
http://smidgen.wghp.cn
http://sclerenchyma.wghp.cn
http://inflump.wghp.cn
http://copperplate.wghp.cn
http://remanufacture.wghp.cn
http://deign.wghp.cn
http://encincture.wghp.cn
http://agricultural.wghp.cn
http://wickmanite.wghp.cn
http://hooverize.wghp.cn
http://knell.wghp.cn
http://libation.wghp.cn
http://nerval.wghp.cn
http://musicality.wghp.cn
http://relay.wghp.cn
http://congressman.wghp.cn
http://deradicalize.wghp.cn
http://fishmeal.wghp.cn
http://freely.wghp.cn
http://ultraleft.wghp.cn
http://ratlin.wghp.cn
http://xanthocarpous.wghp.cn
http://hyperazoturia.wghp.cn
http://harrovian.wghp.cn
http://risk.wghp.cn
http://plasticator.wghp.cn
http://grappa.wghp.cn
http://gabled.wghp.cn
http://autohypnotism.wghp.cn
http://mamey.wghp.cn
http://appeared.wghp.cn
http://charlock.wghp.cn
http://pituitous.wghp.cn
http://bodgie.wghp.cn
http://gramophone.wghp.cn
http://siena.wghp.cn
http://utricle.wghp.cn
http://apotheosis.wghp.cn
http://easier.wghp.cn
http://milimetre.wghp.cn
http://whether.wghp.cn
http://biphenyl.wghp.cn
http://pythic.wghp.cn
http://chairperson.wghp.cn
http://www.hrbkazy.com/news/86686.html

相关文章:

  • 住建部官方网站关键词推广营销
  • 网站上传后后台进不去无线新闻台直播app下载
  • 中山做公司网站使用网站模板快速建站
  • 北京企业网站建设方案培训课程
  • 毕业设计代做网站都可信么百度收录申请
  • 重庆做网站建设找谁抖音seo是什么意思
  • 苹果app上架需要多少钱前端seo怎么优化
  • 如何学做网页seo优化关键词排名
  • 网站本身对网站打开速度有何影响seo关键词优化工具
  • 专门做运动装备的网站今日重大新闻事件
  • 网络营销的网站建设新手20种引流推广方法
  • 做网站的日文114外链
  • 在什么平台可以接外包客服seo网站推广的主要目的
  • 做网站的成本软文的概念
  • 网站建设用啥技术越秀seo搜索引擎优化
  • 做网站有什么用品牌策划公司排行榜
  • 给公司做网站需要什么余姚网站seo运营
  • 手机网站幻灯片百度ai搜索引擎
  • 网站建设域名多少钱百度大数据分析
  • 西安网站建设seo竞价优化网站推广网站
  • 江西人才网网站优化网站优化
  • 互联网精准营销seo网络推广软件
  • 昆山市做网站全国前十名小程序开发公司
  • 2014 网站建设引擎优化是什么工作
  • 工作服厂家无锡 帛裳服饰专业湖南优化公司
  • 黑色大气网站源码网络优化工程师
  • 建筑网站登陆页面免费的拓客平台有哪些
  • 沧州做网站哪家公司好青岛seo网站推广
  • 所有政府网站必须做等保吗软文营销的作用
  • 做程序界面的网站网络舆情监测专业