3.3.2)gene_SYNC_HCS12 :
This is a simple CanOpen node that only send cyclic SYNC message. It demonstrate
implementation on HCS12 based board.
3.4) Windows Targets
CanFestival can be used with Windows. It requires Cygwin to be installed with those
packages installed :
– gcc
– unzip
– wget
– make
Currently, the only supported CAN devices are PeakSystems one, with their PcanLight
driver and library.
Please download driver at http://www.peak-system.com/themen/download_gb.html and
follow instructions in order to install driver on your system.
3.4.1)Instructions
Install Cygwin as required, and the driver for your Peak CAN device.
Open a Cygwin terminal, and follow those instructions:
Download the PCAN-Light Zip file for your HW ( URL from download page ):
wget http://www.peak-system.com/files/usb.zip
Extract its content into your cygwin home (it will create a “Disk” directory):
unzip usb.zip
Get CanFestival archive:
wget http://__sourceforge_mirror__/CanFestival-3.0-rc2.tgz
Extract its content into your cygwin home :
tar xvfz CanFestival-3.0-rc2.tgz
Configure and compile :
cd CanFestival-3
export PCAN_INCLUDE=~/Disk/PCAN-Light/Api/
export PCAN_HEADER=Pcan_usb.h
export PCAN_LIB=~/Disk/PCAN-Light/Lib/Visual\ C++/Pcan_usb.lib
./configure -–can=peak_win32
make
In order to test, you have to use another CanFestival node, connect with a CAN cable.
cd examples/TestMasterSlave
cp ~/Disk/PCAN-Light/Pcan_usb.dll .
./TestMasterSlave -S 500K -M none
CANFestival3 – Release 3.0 5/25
评论0