DHCOM STM32MP1 Linux: Difference between revisions
Pzimmermann (talk | contribs) m Error correction at FIT-Image example |
Ageisreiter (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
== Linux virtual machine for development == | == Linux virtual machine for development == | ||
:* Please have a look at: '''[[Virtual Machine for Application Development]]''' | :* Please have a look at: '''[[Virtual Machine for Application Development]]''' | ||
== FAQ == | |||
==== ''USB 1.1 problems: Custom board without USB 2.0 hub inbetween the MP1 USB host port?'' ==== | |||
== Linux Kernel == | == Linux Kernel == |
Revision as of 10:08, 23 March 2021
Linux virtual machine for development
- Please have a look at: Virtual Machine for Application Development
FAQ
USB 1.1 problems: Custom board without USB 2.0 hub inbetween the MP1 USB host port?
Linux Kernel
How to build a Kernel
Get sources from Github
Configure and build the Device Tree + Kernel
Create the FIT-image with our script (Download link)
|
Kernel Userspace Interfaces to Access Hardware
RS-485 on picoITX
- RS-485 device
DHCOM UART 2 /dev/ttySTM2
- Compilation on target
gcc tty_rs485_test.c -o tty_rs485_test
- Set tty device to raw mode
stty -F /dev/ttySTM2 115200 cs8 raw -echo
- Send data with demo program
./tty_rs485_test /dev/ttySTM2
- Receive data with demo program
./tty_rs485_test /dev/ttySTM2
- Download example source code
CAN interface
- Setup CAN interface with baudrate 500kbit/sec.
ip link set can0 up type can bitrate 500000
- Start to listen on CAN port
candump can0
- Send test message
cansend can0 100#11.2233.44556677.88
- Deinitialize CAN port
ip link set can0 down