Skip to content

Instantly share code, notes, and snippets.

Drew Fustini pdp7

Block or report user

Report or block pdp7

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PB CAN.diff
pdp7@sp3:~/dev/beagle/bb.org-overlays$ diff src/arm/PB-CAN*dts
4c4
< * Virtual cape for CAN0 on connector pins for P1.28 and P1.26 on PocketBeagle
---
> * Virtual cape for CAN1 on connector pins PocketBeagle P2.09 and P2.11
20c20
< part-number = "PB-CAN0";
---
> part-number = "PB-CAN1";
26,27c26,27
View src.diff
pdp7@sp3:~/dev/macchina/watchdog$ git diff src/
diff --git a/src/exti.h b/src/exti.h
index 0715fba..c93d290 100644
--- a/src/exti.h
+++ b/src/exti.h
@@ -9,6 +9,7 @@
#include <libopencm3/cm3/scb.h>
#include "hal.h"
diff --git a/src/exti.h b/src/exti.h
View getEngineStatus.md

getEngineStatus

Install and compile

wget http://downloads.yoctoproject.org/mirror/sources/i2c-tools-3.1.2.tar.bz2
tar -xvf i2c-tools-3.1.2.tar.bz2 
cd watchdog/driver/
gcc -I/home/debian/i2c-tools-3.1.2/ -o getEngineStatus ./getEngineStatus.c

Run

View macchina release
pdp7@sp3:~/dev/macchina/ssh/arduino-boards-sam/sam$ git commit platform.txt
[master c91f328] update to 0.3.12
1 file changed, 1 insertion(+), 1 deletion(-)
pdp7@sp3:~/dev/macchina/ssh/arduino-boards-sam/sam$ git log -1 -p
commit c91f3286a93ca53132e90615f92eedcb01dc8cde (HEAD -> master)
Author: Drew Fustini <drew@pdp7.com>
Date: Wed May 8 01:49:14 2019 +0200
update to 0.3.12
@pdp7
pdp7 / macchina libraries.txt
Created May 6, 2019
macchina libraries.txt
View macchina libraries.txt
pdp7@sp3:~/dev/macchina/arduino-boards-sam$ git ls-tree master sam/libraries/
160000 commit b8410b32af3c77f231659cb81cc95f69d62e1c39 sam/libraries/LIN
160000 commit e83dd0c4397fbb3fec37fceb9805d2c4a75a301e sam/libraries/M2_12VIO
160000 commit bfee5f5285c4a138b4ea566a98c32df8bec551f7 sam/libraries/M2_SD_HSMCI
160000 commit f543e7920ce08119cf6ed2bf71b4839e957792c4 sam/libraries/Single-Wire-CAN-mcp2515
160000 commit c25980a69a1ed77c36841746715554fa0fb20d81 sam/libraries/can_common
160000 commit f2bd0c28c8bd0482933e00171067714312c67adb sam/libraries/due_can
160000 commit af6e10fb652c469faf71c781365f3f4f360aa063 sam/libraries/due_wire
160000 commit f9b0aa0c2f2441724d6b2e50b58f36d21f9c5561 sam/libraries/mcp2515
pdp7@sp3:~/dev/macchina/arduino-boards-sam$ cd sam/libraries/LIN
View SWCAN debug notes.md
can2       5F5   [8]  BE 5E 7A F9 95 DD AC BF   '.^z.....'
  can2       5EF   [2]  remote request
  can2       5F5   [8]  BE 5E 7A F9 95 DD AC BF   '.^z.....'
  can2       5EF   [2]  remote request
  can2  1DC43776   [8]  75 37 7D EF 6F F7 F6 DB   'u7}.o...'
  can2       5F5   [8]  BE 5E 7A F9 95 DD AC BF   '.^z.....'
  can2       5EF   [2]  remote request
  can2  1DC43776   [8]  75 37 7D EF 6F F7 F6 DB   'u7}.o...'
  can2       5F5   [8]  BE 5E 7A F9 95 DD AC BF   '.^z.....'
@pdp7
pdp7 / A: Instructions for SWCAN with PocketBeagle and Macchina M2.md
Last active Apr 29, 2019
SWCAN instructions for PocketBeagle and Macchina M2
View A: Instructions for SWCAN with PocketBeagle and Macchina M2.md
@pdp7
pdp7 / Macchina: SWCAN with PocketBeagle and M2.md
Last active Apr 20, 2019
Macchina: SWCAN with PocketBeagle and M2
View Macchina: SWCAN with PocketBeagle and M2.md

Macchina PocketBeagle M2

debian@beaglebone:~$ dmesg |grep -i can |grep -v Cannot
[    1.222748] CAN device driver interface
[    1.223974] c_can_platform 481cc000.can: c_can_platform device registered (regs=fa1cc000, irq=39)
[    1.224890] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1d0000, irq=40)
[    1.339441] can: controller area network core (rev 20170425 abi 9)
[   36.260718] mcp251x spi2.1 can2: MCP2515 successfully initialized.
@pdp7
pdp7 / Adafruit_Blinka SPI ports for Beaglebone.md
Last active Apr 14, 2019
Adafruit_Blinka SPI ports for Beaglebone
View Adafruit_Blinka SPI ports for Beaglebone.md
@pdp7
pdp7 / bme280_simpletest.txt
Created Apr 11, 2019
bme280_simpletest.py, skip set no cs, use P9_13 as CS
View bme280_simpletest.txt
config-pin p9.13 gpio #DC
config-pin p9.15 gpio #RST
config-pin p9.17 spi_cs #SPI0_CS0
config-pin p9.18 spi #SPI0_D1
config-pin p9.21 spi #SPI0_D0
config-pin p9.22 spi_sclk #SPI0_SCLK
debian@beaglebone:~$ sudo strace -f -o /tmp/a python3 ~/Adafruit_CircuitPython_BME280/examples/bme280_simpletest.py
spidev_module: SpiDev_init()
You can’t perform that action at this time.