STM32 F1和F4实现CAN多字节发送和接收!

上传者: m0_48630293 | 上传时间: 2023-02-22 10:20:52 | 文件大小: 7.04MB | 文件类型: RAR
CAN的基础知识在这里不做过多介绍,其他网站上讲解的很基础,因为CAN一次性只能接收1字节8位,所以在这里只介绍怎样让CAN能像串口那样一次性接收非常多的位。亲测有效,具体先看效果图。 在这里我的实现是通过两块STM32板子(可以是任何两块STM32F1和F4都行,为了兼容性我分别用的F1和F4),然后互相连接好硬件,通过CAN口,可以实现接收多字节数据保存到数组,以及多字节数据发送到另一块板子上 ———————————————— 版权声明:本文为CSDN博主「Rose_yj」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/m0_48630293/article/details/128038624

文件下载

资源详情

[{"title":"( 329 个子文件 7.04MB ) STM32 F1和F4实现CAN多字节发送和接收!","children":[{"title":"stm32f4xx_rcc.h <span style='color:#111;'> 29.36KB </span>","children":null,"spread":false},{"title":"stm32f4xx_ltdc.h <span style='color:#111;'> 20.69KB </span>","children":null,"spread":false},{"title":"stm32f4xx_syscfg.h <span style='color:#111;'> 8.76KB </span>","children":null,"spread":false},{"title":"stm32f4xx_cryp.h <span style='color:#111;'> 14.14KB </span>","children":null,"spread":false},{"title":"stm32f4xx_hash.h <span style='color:#111;'> 9.85KB </span>","children":null,"spread":false},{"title":"stm32f4xx_fmc.h <span style='color:#111;'> 43.87KB </span>","children":null,"spread":false},{"title":"stm32f4xx_flash_ramfunc.h <span style='color:#111;'> 3.20KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dma2d.h <span style='color:#111;'> 19.23KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rtc.h <span style='color:#111;'> 39.60KB </span>","children":null,"spread":false},{"title":"stm32f4xx_spi.h <span style='color:#111;'> 20.68KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dbgmcu.h <span style='color:#111;'> 4.20KB </span>","children":null,"spread":false},{"title":"misc.h <span style='color:#111;'> 6.76KB </span>","children":null,"spread":false},{"title":"stm32f4xx_can.h <span style='color:#111;'> 26.68KB </span>","children":null,"spread":false},{"title":"stm32f4xx_iwdg.h <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"stm32f4xx_flash.h <span style='color:#111;'> 23.89KB </span>","children":null,"spread":false},{"title":"stm32f4xx_sdio.h <span style='color:#111;'> 22.24KB </span>","children":null,"spread":false},{"title":"stm32f4xx_crc.h <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":"stm32f4xx_gpio.h <span style='color:#111;'> 23.00KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rng.h <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false},{"title":"stm32f4xx_sai.h <span style='color:#111;'> 24.87KB </span>","children":null,"spread":false},{"title":"stm32f4xx_pwr.h <span style='color:#111;'> 7.55KB </span>","children":null,"spread":false},{"title":"stm32f4xx_fsmc.h <span style='color:#111;'> 26.54KB </span>","children":null,"spread":false},{"title":"stm32f4xx_wwdg.h <span style='color:#111;'> 3.46KB </span>","children":null,"spread":false},{"title":"stm32f4xx_i2c.h <span style='color:#111;'> 31.19KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dcmi.h <span style='color:#111;'> 12.67KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dac.h <span style='color:#111;'> 14.60KB </span>","children":null,"spread":false},{"title":"stm32f4xx_adc.h <span style='color:#111;'> 32.11KB </span>","children":null,"spread":false},{"title":"stm32f4xx_tim.h <span style='color:#111;'> 50.48KB </span>","children":null,"spread":false},{"title":"stm32f4xx_exti.h <span style='color:#111;'> 7.82KB </span>","children":null,"spread":false},{"title":"stm32f4xx_usart.h <span style='color:#111;'> 17.51KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dma.h <span style='color:#111;'> 28.21KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rtc.c <span style='color:#111;'> 100.48KB </span>","children":null,"spread":false},{"title":"stm32f4xx_adc.c <span style='color:#111;'> 67.45KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rng.c <span style='color:#111;'> 13.73KB </span>","children":null,"spread":false},{"title":"stm32f4xx_pwr.c <span style='color:#111;'> 36.82KB </span>","children":null,"spread":false},{"title":"misc.c <span style='color:#111;'> 11.17KB </span>","children":null,"spread":false},{"title":"stm32f4xx_flash.c <span style='color:#111;'> 61.56KB </span>","children":null,"spread":false},{"title":"stm32f4xx_sai.c <span style='color:#111;'> 45.32KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dma2d.c <span style='color:#111;'> 26.53KB </span>","children":null,"spread":false},{"title":"stm32f4xx_gpio.c <span style='color:#111;'> 24.61KB </span>","children":null,"spread":false},{"title":"stm32f4xx_hash_sha1.c <span style='color:#111;'> 9.56KB </span>","children":null,"spread":false},{"title":"stm32f4xx_sdio.c <span style='color:#111;'> 38.04KB </span>","children":null,"spread":false},{"title":"stm32f4xx_wwdg.c <span style='color:#111;'> 10.25KB </span>","children":null,"spread":false},{"title":"stm32f4xx_iwdg.c <span style='color:#111;'> 9.13KB </span>","children":null,"spread":false},{"title":"stm32f4xx_cryp_aes.c <span style='color:#111;'> 56.67KB </span>","children":null,"spread":false},{"title":"stm32f4xx_ltdc.c <span style='color:#111;'> 38.86KB </span>","children":null,"spread":false},{"title":"stm32f4xx_tim.c <span style='color:#111;'> 121.81KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rcc.c <span style='color:#111;'> 96.52KB </span>","children":null,"spread":false},{"title":"stm32f4xx_cryp.c <span style='color:#111;'> 34.66KB </span>","children":null,"spread":false},{"title":"stm32f4xx_crc.c <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dbgmcu.c <span style='color:#111;'> 6.65KB </span>","children":null,"spread":false},{"title":"stm32f4xx_spi.c <span style='color:#111;'> 51.29KB </span>","children":null,"spread":false},{"title":"stm32f4xx_can.c <span style='color:#111;'> 58.74KB </span>","children":null,"spread":false},{"title":"stm32f4xx_syscfg.c <span style='color:#111;'> 9.35KB </span>","children":null,"spread":false},{"title":"stm32f4xx_flash_ramfunc.c <span style='color:#111;'> 5.32KB </span>","children":null,"spread":false},{"title":"stm32f4xx_cryp_tdes.c <span style='color:#111;'> 10.33KB </span>","children":null,"spread":false},{"title":"stm32f4xx_hash_md5.c <span style='color:#111;'> 9.37KB </span>","children":null,"spread":false},{"title":"stm32f4xx_cryp_des.c <span style='color:#111;'> 9.59KB </span>","children":null,"spread":false},{"title":"stm32f4xx_fsmc.c <span style='color:#111;'> 40.85KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dcmi.c <span style='color:#111;'> 18.34KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dac.c <span style='color:#111;'> 26.18KB </span>","children":null,"spread":false},{"title":"stm32f4xx_i2c.c <span style='color:#111;'> 53.12KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dma.c <span style='color:#111;'> 51.68KB </span>","children":null,"spread":false},{"title":"stm32f4xx_usart.c <span style='color:#111;'> 56.59KB </span>","children":null,"spread":false},{"title":"stm32f4xx_fmc.c <span style='color:#111;'> 55.24KB </span>","children":null,"spread":false},{"title":"stm32f4xx_hash.c <span style='color:#111;'> 26.01KB </span>","children":null,"spread":false},{"title":"stm32f4xx_exti.c <span style='color:#111;'> 9.60KB </span>","children":null,"spread":false},{"title":"keilkilll.bat <span style='color:#111;'> 399B </span>","children":null,"spread":false},{"title":"usart.c <span style='color:#111;'> 4.92KB </span>","children":null,"spread":false},{"title":"usart.h <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"delay.c <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"delay.h <span style='color:#111;'> 838B </span>","children":null,"spread":false},{"title":"sys.c <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"sys.h <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"core_cm4.h <span style='color:#111;'> 106.58KB </span>","children":null,"spread":false},{"title":"startup_stm32f40_41xxx.s <span style='color:#111;'> 28.91KB </span>","children":null,"spread":false},{"title":"core_cmFunc.h <span style='color:#111;'> 16.74KB </span>","children":null,"spread":false},{"title":"core_cmInstr.h <span style='color:#111;'> 20.03KB </span>","children":null,"spread":false},{"title":"core_cm4_simd.h <span style='color:#111;'> 22.20KB </span>","children":null,"spread":false},{"title":"stm32f4xx_usart.o <span style='color:#111;'> 468.98KB </span>","children":null,"spread":false},{"title":"delay.crf <span style='color:#111;'> 424.86KB </span>","children":null,"spread":false},{"title":"stm32f4xx_fsmc.d <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"misc.o <span style='color:#111;'> 459.09KB </span>","children":null,"spread":false},{"title":"usart.o <span style='color:#111;'> 465.71KB </span>","children":null,"spread":false},{"title":"CAN.lnp <span style='color:#111;'> 674B </span>","children":null,"spread":false},{"title":"stm32f4xx_syscfg.o <span style='color:#111;'> 460.35KB </span>","children":null,"spread":false},{"title":"stm32f4xx_fsmc.o <span style='color:#111;'> 466.32KB </span>","children":null,"spread":false},{"title":"timer.d <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rcc.d <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"sys.o <span style='color:#111;'> 459.22KB </span>","children":null,"spread":false},{"title":"CAN.hex <span style='color:#111;'> 101.41KB </span>","children":null,"spread":false},{"title":"sys.d <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"stm32f4xx_gpio.o <span style='color:#111;'> 463.41KB </span>","children":null,"spread":false},{"title":"key.crf <span style='color:#111;'> 425.19KB </span>","children":null,"spread":false},{"title":"lcd.o <span style='color:#111;'> 534.30KB </span>","children":null,"spread":false},{"title":"lcd.d <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"stm32f4xx_tim.o <span style='color:#111;'> 492.87KB </span>","children":null,"spread":false},{"title":"main.crf <span style='color:#111;'> 439.78KB </span>","children":null,"spread":false},{"title":"can.o <span style='color:#111;'> 472.17KB </span>","children":null,"spread":false},{"title":"CAN.htm <span style='color:#111;'> 112.13KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明