42
M.
CAN Test
•
Checking CAN GPIO
#config can pin to gpio
/home/root/testscript/can/memtool -32 0x20e0208 = 5
echo "106" > /sys/class/gpio/export
#config gpio to out mode
echo "out" > /sys/class/gpio/gpio106/direction
#set gpio to 1
echo 1 > /sys/class/gpio/gpio106/value
#set gpio to 1
echo 0 > /sys/class/gpio/gpio106/value
#config gpio to in mode
echo "in" > /sys/class/gpio/gpio106/direction
#get gpio value
ret0_0=`cat /sys/class/gpio/gpio106/value`
•
Testing CAN
#config can parrameter
ip link set can0 type can bitrate 125000 triple-sampling on
#enable can
ifconfig can0 up
#disable
ifconfig can0 down
#send data
cangen can0 &
#receive data
candump -n 10 can1 -T 5000
Summary of Contents for YMBAO100
Page 7: ...viii This page is intentionally left blank...
Page 14: ...General Information 7 1 1 7 Dimensions Unit mm...
Page 15: ...8 YMBAO100 Reference Heat Sink...
Page 19: ...12 2 3 Jumper Connector Locations on YMBAO100 Board diagram of YMBAO100...
Page 38: ...31 Appendix This section provides the information of reference code...