【E207】STM32F405xxx CubeMX 下移植CANOpen(Festival)

2021-08-16 18:42:01      索炜达电子      930     

项目编号:E207

文件大小:12M

源码说明:带中文注释

开发环境:C编译器

简要概述:

最近要用到CANOpen来控制电机,网上类似的资料也不多。我移植了一下基本编译可以通过,谁如果需要可以在这个基础上继续加一些Testcode。是带了FreeRTOS的。

因为手上刚好有STM32F405vgt的板子, 就突发奇想可以用单片机来控制一下。所以就移植了CAN Festival。其实电机的控制应该需要支持DS402的协议。我移植的是festival v3 的。也是从其他地方porting过来。

【E207】STM32F405xxx CubeMX 下移植CANOpen(Festival)

目前的状态是编译可以通过,具体的Testcode还没有。目录结构就凑活着看吧。还请多多指教。

文件列表:

目录│文件列表:

 └ inci2ccontrol

    │ .mxproject

    │ inci2ccontrol.ioc

    ├ CANFestival

    │  ├ App

    │  │  │ define.h

    │  │  │ GlobalVar.c

    │  │  └ GlobalVar.h

    │  ├ CANOpenMaster

    │  │  │ CANOpenObjDictConfig.c

    │  │  │ CANOpenObjDictConfig.h

    │  │  └ TestMaster.h

    │  ├ doc

    │  │  └ CANOpen_memento

    │  │     │ CANOpen_memento.odg

    │  │     └ CANOpen_memento.pdf

    │  ├ driver

    │  │  └ STM32

    │  │     │ can_stm32.c

    │  │     └ timer_stm32.c

    │  ├ inc

    │  │  │ can.h

    │  │  │ can_driver.h

    │  │  │ data.h

    │  │  │ dcf.h

    │  │  │ def.h

    │  │  │ emcy.h

    │  │  │ lifegrd.h

    │  │  │ lss.h

    │  │  │ nmtMaster.h

    │  │  │ nmtSlave.h

    │  │  │ objacces.h

    │  │  │ ObjDict.h

    │  │  │ objdictdef.h

    │  │  │ pdo.h

    │  │  │ sdo.h

    │  │  │ states.h

    │  │  │ sync.h

    │  │  │ sysdep.h

    │  │  │ timer.h

    │  │  │ timers_driver.h

    │  │  └ STM32

    │  │     │ applicfg.h

    │  │     │ canfestival.h

    │  │     │ can_stm32.h

    │  │     │ config.h

    │  │     │ iar.h

    │  │     └ timerscfg.h

    │  ├ objdict

    │  │  └ ObjDict.c

    │  ├ src

    │  │  │ dcf.c

    │  │  │ emcy.c

    │  │  │ lifegrd.c

    │  │  │ lss.c

    │  │  │ Makefile.in

    │  │  │ nmtMaster.c

    │  │  │ nmtSlave.c

    │  │  │ objacces.c

    │  │  │ pdo.c

    │  │  │ sdo.c

    │  │  │ states.c

    │  │  │ symbols.c

    │  │  │ sync.c

    │  │  │ timer.c

    │  │  └ win32

    │  │     └ CanFestival-3.def

    │  └ Trace

    │     │ README.txt

    │     │ SEGGER_RTT.c

    │     │ SEGGER_RTT.h

    │     │ SEGGER_RTT_Conf.h

    │     └ SEGGER_RTT_printf.c

    ├ Drivers

    │  ├ CMSIS

    │  │  ├ Device

    │  │  │  └ ST

    │  │  │     └ STM32F4xx

    │  │  │        ├ Include

    │  │  │        │  │ stm32f401xc.h

    │  │  │        │  │ stm32f401xe.h

    │  │  │        │  │ stm32f405xx.h

    │  │  │        │  │ stm32f407xx.h

    │  │  │        │  │ stm32f410cx.h

    │  │  │        │  │ stm32f410rx.h

    │  │  │        │  │ stm32f410tx.h

    │  │  │        │  │ stm32f411xe.h

    │  │  │        │  │ stm32f412cx.h

    │  │  │        │  │ stm32f412rx.h

    │  │  │        │  │ stm32f412vx.h

    │  │  │        │  │ stm32f412zx.h

    │  │  │        │  │ stm32f415xx.h

    │  │  │        │  │ stm32f417xx.h

    │  │  │        │  │ stm32f427xx.h

    │  │  │        │  │ stm32f429xx.h

    │  │  │        │  │ stm32f437xx.h

    │  │  │        │  │ stm32f439xx.h

    │  │  │        │  │ stm32f446xx.h

    │  │  │        │  │ stm32f469xx.h

    │  │  │        │  │ stm32f479xx.h

    │  │  │        │  │ stm32f4xx.h

    │  │  │        │  └ system_stm32f4xx.h

    │  │  │        └ Source

    │  │  │           └ Templates

    │  │  │              │ system_stm32f4xx.c

    │  │  │              ├ arm

    │  │  │              │  │ startup_stm32f401xc.s

    │  │  │              │  │ startup_stm32f401xe.s

    │  │  │              │  │ startup_stm32f405xx.s

    │  │  │              │  │ startup_stm32f407xx.s

    │  │  │              │  │ startup_stm32f410cx.s

    │  │  │              │  │ startup_stm32f410rx.s

    │  │  │              │  │ startup_stm32f410tx.s

    │  │  │              │  │ startup_stm32f411xe.s

    │  │  │              │  │ startup_stm32f412cx.s

    │  │  │              │  │ startup_stm32f412rx.s

    │  │  │              │  │ startup_stm32f412vx.s

    │  │  │              │  │ startup_stm32f412zx.s

    │  │  │              │  │ startup_stm32f415xx.s

    │  │  │              │  │ startup_stm32f417xx.s

    │  │  │              │  │ startup_stm32f427xx.s

    │  │  │              │  │ startup_stm32f429xx.s

    │  │  │              │  │ startup_stm32f437xx.s

    │  │  │              │  │ startup_stm32f439xx.s

    │  │  │              │  │ startup_stm32f446xx.s

    │  │  │              │  │ startup_stm32f469xx.s

    │  │  │              │  └ startup_stm32f479xx.s

    │  │  │              ├ gcc

    │  │  │              │  │ startup_stm32f401xc.s

    │  │  │              │  │ startup_stm32f401xe.s

    │  │  │              │  │ startup_stm32f405xx.s

    │  │  │              │  │ startup_stm32f407xx.s

    │  │  │              │  │ startup_stm32f410cx.s

    │  │  │              │  │ startup_stm32f410rx.s

    │  │  │              │  │ startup_stm32f410tx.s

    │  │  │              │  │ startup_stm32f411xe.s

    │  │  │              │  │ startup_stm32f412cx.s

    │  │  │              │  │ startup_stm32f412rx.s

    │  │  │              │  │ startup_stm32f412vx.s

    │  │  │              │  │ startup_stm32f412zx.s

    │  │  │              │  │ startup_stm32f415xx.s

    │  │  │              │  │ startup_stm32f417xx.s

    │  │  │              │  │ startup_stm32f427xx.s

    │  │  │              │  │ startup_stm32f429xx.s

    │  │  │              │  │ startup_stm32f437xx.s

    │  │  │              │  │ startup_stm32f439xx.s

    │  │  │              │  │ startup_stm32f446xx.s

    │  │  │              │  │ startup_stm32f469xx.s

    │  │  │              │  └ startup_stm32f479xx.s

    │  │  │              └ iar

    │  │  │                 │ startup_stm32f401xc.s

    │  │  │                 │ startup_stm32f401xe.s

    │  │  │                 │ startup_stm32f405xx.s

    │  │  │                 │ startup_stm32f407xx.s

    │  │  │                 │ startup_stm32f410cx.s

    │  │  │                 │ startup_stm32f410rx.s

    │  │  │                 │ startup_stm32f410tx.s

    │  │  │                 │ startup_stm32f411xe.s

 

TAGCANOpenFestival
  • 9 次
  • 1 分