ardupilot/Tools/Linux_HAL_Essentials
bugobliterator aa1db00908 Linux_HAL_Essentials: cleanup PWM PRU code
change firmware name to pwmpru1
2014-07-14 09:32:29 +10:00
..
pwmpru Linux_HAL_Essentials: cleanup PWM PRU code 2014-07-14 09:32:29 +10:00
BB-BONE-PRU-05-00A0.dtbo Linux_HAL_Essentials: cleanup PWM PRU code 2014-07-14 09:32:29 +10:00
BB-BONE-PRU-05-00A0.dts Linux_HAL_Essentials: cleanup PWM PRU code 2014-07-14 09:32:29 +10:00
BB-BONE-PRU-06-00A0.dtbo Linux: Add initialising script and required overlays and firmware 2014-07-14 09:31:49 +10:00
BB-SPI0-01-00A0.dtbo Linux_HAL: updated binary dtbo files 2014-07-14 09:32:29 +10:00
BB-SPI0-01-00A0.dts Linux_HAL: added dts files for overlays 2014-07-14 09:32:29 +10:00
BB-SPI0-SWP-01-00A0.dtbo Linux_HAL: updated binary dtbo files 2014-07-14 09:32:29 +10:00
BB-SPI0-SWP-01-00A0.dts Linux_HAL: added dts files for overlays 2014-07-14 09:32:29 +10:00
BB-SPI1-SWP-01-00A0.dtbo Linux_HAL: updated binary dtbo files 2014-07-14 09:32:29 +10:00
BB-SPI1-SWP-01-00A0.dts Linux_HAL: added dts files for overlays 2014-07-14 09:32:29 +10:00
README.md Linux_HAL_Essentials: cleanup PWM PRU code 2014-07-14 09:32:29 +10:00
pwmpru1 Linux_HAL_Essentials: cleanup PWM PRU code 2014-07-14 09:32:29 +10:00
startup.sh Linux_HAL_Essentials: cleanup PWM PRU code 2014-07-14 09:32:29 +10:00
testpru0 HAL_Linux: Make asynchronous PRU write and reduce the size of data exchange 2014-07-14 09:32:29 +10:00

README.md

PRU PWM

###Updating kernel

  • Check your kernel version using uname -r
  • If you get 3.8.13bone56+ as output then you may skip Updating kernel.
  • For other kernel versions write following cmds in your BBB:
wget https://rcn-ee.net/deb/wheezy-armhf/v3.8.13-bone57/install-me.sh
chmod +x install-me.sh
./install-me.sh
  • After above steps reboot and check your kernel version using uname -r,it should be 3.8.13bone57

###Setting Up PRU Compiler

echo export PATH=/path/to/pru/compiler/bin:$PATH > ~/.bashrc
echo export PRU_C_DIR="/path/to/pru/compiler/include;/path/to/pru/compiler/lib" > ~/.bashrc
source ~/.bashrc

note: semicolons in second command were intended

###Compiling and loading the code

  • just make
  • copy generated executable testpru1 to ardupilot/Tools/Linux_HAL_Essentials/.
  • To load firmware use
    • ./startup.sh load : only once after reboot it will copy overlays and firmware to /lib/firmware/ and loads them.
    • ./startup.sh reload : it only copies firmware to /lib/firmware/ and reloads pru firmware.