...
Revision and Notes
Date | Owner | Revision | Notes | ||||||
---|---|---|---|---|---|---|---|---|---|
Sep | 1.0 | Initial release | |||||||
Table of Contents |
|
...
Block Diagram
...
Visual features overview
...
Software Setup
Cable setup and prerequisites
Linux or Windows PC
12V Power adapter ( HummingBoard Pro AM64x has wide range input of 9V-36V, it is recommended to use a 12V power adapter)
Micro SD card
Micro USB cable
Router or switch with Ethernet cable
Booting from an SD card
Building 1. Downloading the buildroot image from source:1. Clone our GitHub repository
Downlaod the Buildroot image by running the following command on your Linux/Windows PC
Code Block |
---|
git clone git@github.com:SolidRunwget https://solid-run-images.sos-de-fra-1.exo.io/AM64X/ti_am64x_build.git |
2. Image Build
Follow the documentation to build the image.
...
/microsd-3e15611.img.xz |
For more Buildroot releases, please visit Buildroot Releases for AM64X based SOM.
2. Write the image to an SD card
Code Block |
---|
sudo xz dd if=output/-dc microsd-<hash>3e15611.img.xz | dd of=/dev/sdX bs=4M conv=fsync status=progress |
For more information, please visit Flashing an SD Card.
...
Connect your power adaptor to the DC jack, and then connect the adaptor to the mains supply.
Tip |
---|
A green LED will light up at the front panel. This is an indication of boot loader firmware is running.If you find you need additional help, please contact us and we’ll do our best to get back to you with more personal support. |
6. Serial Connection
Please insert the micro USB into your device, then you can refer to Serial Connection for installing the necessary serial connection software in Linux/Windows.
...
In order to be able to log in, please insert “root” as a username as follows:
...
CanBUS and RS485
Test CAN bus communication
...
Test
...
CanBUS communication
1. Enable device can0 (for ex):
Code Block |
---|
devicecan_num=ttyS5can0 rs485conf /dev/$device -e 1 -o 0 -a 1 -r 1 ip link set $can_num up type can bitrate xxxxxx |
(ex: 125000)
2. Bring the CAN interface up:
Code Block |
---|
ifconfig can0 up |
3. Print all data received by CAN interface to “can_test” file (for ex):
Code Block |
---|
touch /tmp/rs485can_test stty -Fcandump $can_num >> /devtmp/$device raw -echo -echoe -echok #Print received data to rs485_test file cat /dev/$device > /tmp/rs485_test & echo "OK" > /dev/$device & |
...
can_test & |
4. Send data to the bus by executing (for ex):
Code Block |
---|
cansend $can_num "123#1234" |
5. Check received data by opening “can_test” file:
Code Block |
---|
cat /tmp/can_test |
Test RS485 communication
The following is an example of testing RS485 communication:
1. Configure RS485 device as follows:
Code Block |
---|
device=ttyS5
rs485conf /dev/$device -e 1 -o 0 -a 1 |
RS485 configuration should look as follows:
Code Block |
---|
= NewCurrent configuration: RS485 enabled: true RTS on send: low RTS after send: high RTS delay before send: 0 RTS delay after send: 0 Receive during sending data: true |
Receive mode
Code Block |
---|
device=ttyS5 rs485conf /dev/$device -e 1 -o 1 -a 0 -r 1 false |
2. Print all data received to “rs485_test” file (for ex):
Code Block |
---|
touch /tmp/rs485_test stty -F /dev/$device raw -echo -echoe -echok #Print received data to rs485_test file cat /dev/$device > /tmp/rs485_test & |
3. Send data by executing:
Code Block |
---|
echo "OK" > /dev/$device & |
On receive mode, the RS485 configuration should look as follows4. Check received data by opening “rs485_test” file:
Code Block |
---|
= New configuration: RS485 enabled: true RTS on send: high RTS after send: low RTS delay before send: 0 RTS delay after send: 0 Receive during sending data: truecat /tmp/rs485_test |
Install to eMMC
...
Please follow our github documention .
More Features
<coming soon>
List Of Supported OS
Build
...
Documentation
<coming soon>
...
From Source
You can build your own image using this doc – https://github.com/SolidRun/ti_am64x_build