Forwarded on Jason's request.---------- Forwarded message ----------
From: Fred Kerr <fek...@gmail.com>
Date: Wed, Feb 28, 2018 at 2:41 PM
Subject: Pocket Beagle index.js issue?
To: Jason Kridner <jkri...@beagleboard.org>Hello Jason,I'm new to Pocket Beagle but I have other low-level experience (mainly x86 pre-boot firmware, 16-bit and UEFI 32, 64).This is likely to be a known issue but I don't know where to look yet. I'm sure I need to get some versions and other information for you, or just find how to get the latest code.
TERM=none npm install -g —unsafe-perm bonescript
Am I correct that this "b." should apparently be "g."? Based on context from the file, it seems so, and fixed the issue I had.
/usr/local/lib/node_modules/bonescript/src/index.js:325if(bitOrder == b.LSBFIRST) {Also, I get this when I run a simple script that resets some GPIO values. (I'm playing with a 44-LED light bar with serial input.)debian@beaglebone:~/src/node$ node reset.js
Exiting CleanlyUnable to open /dev/memUnable to open /dev/memERROR: trying to disable motors before they have been initializedUnable to open /dev/memUnable to open /dev/memUnable to open /dev/mem
Most likely, I just need to look around for the libraries to use with C/C++ development on Pocket Beagle.
I just transitioned to Pocket Beagle after working with RPi3b for a few weeks. Just long enough to get JTAG to start to work. I started working with the Pocket Beagle since they are using it at the ELC/OpenIot summit in Portland OR Mar 12-14.Thanks,Fred Kerr
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CA%2BaxsPZ7OS8QiGM%2ByUxcbX7G5cPY9-uL5xMoV9XyYtcyXqK_gw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
reset.js just contains this:
//# fekerr 20180227var b = require('bonescript');var LE = "P2_33" ; // GPIO45var SPI = "P2_25"; // MOSIvar CLK = "P2_29"; // CLKvar chip = [0, 0, 0, 0, 0, 0]; // 44 outputs, 5 1/2 chips// Configure pins as outputsb.pinMode(LE, b.OUTPUT);b.pinMode(SPI, b.OUTPUT);b.pinMode(CLK, b.OUTPUT);// initial statesb.digitalWrite(LE, b.LOW);b.digitalWrite(SPI, b.LOW);b.digitalWrite(CLK, b.LOW);doUpdate();function doUpdate(){var i;b.digitalWrite(LE, b.LOW);for(i=0; i<6; ++i){b.shiftOut(SPI, CLK, b.MSBFIRST, chip[i]);}b.digitalWrite(LE, b.HIGH);}
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/fb99d181-0e09-4e0d-bfff-e1f4fa8ca065%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/fb99d181-0e09-4e0d-bfff-e1f4fa8ca065%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CA%2BT6QPmutJYGDnG1uH%2Bg9zkJ-yignn1AnCS4YUp6Y0WfXq%2BT1A%40mail.gmail.com.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/iT3JsATQIjI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.
TERM=none sudo npm cache clear TERM=none sudo npm install -g --prefix /usr/local --unsafe-perm bonescript
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/fb99d181-0e09-4e0d-bfff-e1f4fa8ca065%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/iT3JsATQIjI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CA%2BT6QPmutJYGDnG1uH%2Bg9zkJ-yignn1AnCS4YUp6Y0WfXq%2BT1A%40mail.gmail.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CA%2BaxsPb38vg88o8pKZNrF%2B61TEtnVssSvg2k5iTQEkyECd7mFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.