Skip to content

Instantly share code, notes, and snippets.

@nilhoel1
nilhoel1 / libBSD-bus-init.rst
Created August 22, 2019 09:42
Documentation on RTEMS-libbsd Bus init process.

Bus Initialisation

Bus Initialization

@nilhoel1
nilhoel1 / BUS_DEBUG-output.log
Created July 31, 2019 12:37
The output for my rtems-pru app using my rtems-libbsd form. BUS_DEBUG is enables.
Skript gestartet auf 2019-07-31 13:07:33+02:00 [TERM="xterm-256color" TTY="/dev/pts/1" COLUMNS="238" LINES="27"]
]0;nils@nils-Laptop:~[nils@nils-Laptop ~]$ beagleserial
[sudo] Passwort für nils:
picocom v3.1
port is : /dev/ttyUSB0
flowcontrol : none
baudrate is : 115200
parity is : none
databits are : 8
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,beaglebone-green";
// identification
part-number = "PRU-UIO-EXAMPLE-PINS";
version = "00A0";
; Run a simple delay loop on the PRU
; Original source https://jumpnowtek.com/beaglebone/Working-with-the-BeagleBone-PRUs.html
.setcallreg r29.w0
.origin 0
.entrypoint start
#define PRU0_ARM_INTERRUPT 19
#define DELAY_COUNT 50000000
/*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/dts-v1/;
/plugin/;
@nilhoel1
nilhoel1 / blink.p
Created May 15, 2019 12:58 — forked from shirriff/blink.p
Assembly code to demonstrate the PRU on the BeagleBone Black. This code blinks an LED 10 times.
@nilhoel1
nilhoel1 / loader.c
Created May 15, 2019 12:57 — forked from shirriff/loader.c
Loads a PRU text.bin (and optionally data.bin) file, executes it, and waits for completion.
// Loads a PRU text.bin (and optionally data.bin) file,
// executes it, and waits for completion.
//
// Usage:
// $ ./loader text.bin [data.bin]
//
// Compile with:
// gcc -o loader loader.c -lprussdrv
//
// Based on https://credentiality2.blogspot.com/2015/09/beaglebone-pru-gpio-example.html