- Compile the program in gcc with debug symbols enabled (
-g
) - Do NOT strip the binary
- To generate assembly code using gcc use the -S option:
gcc -S hello.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var b = require('bonescript'); | |
//getPlatform() | |
b.getPlatform(printData); | |
function printData(x) { | |
console.log("**********getPlatform()_previous**********"); | |
console.log('name = ' + x.name); | |
console.log('version = ' + x.version); | |
console.log('serialNumber = ' + x.serialNumber); | |
console.log('bonescript = ' + x.bonescript); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var b = require('bonescript'); | |
//test RC BMP | |
b.rcBMP('ENABLE'); | |
setInterval(function() { | |
console.log(b.rcBMP('READ')); | |
},100); | |
//test RC IMU | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj-m+=dummy_hcd.o | |
all: | |
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules | |
clean: | |
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "ti,am335x-pocketbeagle", "ti,am335x-bone", "ti,am33xx"; | |
fragment@0 { | |
target = <&mmc>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debian@beaglebone:~/test$ git clone https://github.com/vaishnav98/mikrobus.git | |
Cloning into 'mikrobus'... | |
remote: Enumerating objects: 33, done. | |
remote: Counting objects: 100% (33/33), done. | |
remote: Compressing objects: 100% (26/26), done. | |
remote: Total 33 (delta 15), reused 16 (delta 6), pack-reused 0 | |
Unpacking objects: 100% (33/33), done. | |
debian@beaglebone:~/test$ cd mikrobus/ | |
debian@beaglebone:~/test/mikrobus$ make all | |
make -C /lib/modules/5.7.0-rc5-bone4/build M=/home/debian/test/mikrobus modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import os | |
# configure the buttons on Techlab Cape as GPIO | |
os.system("config-pin p1.29 gpio") | |
os.system("config-pin p2.33 gpio") | |
flag=0 | |
while True: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debian@beaglebone:~$ dmesg | grep -i mikrobus | |
[ 4.349144] mikrobus:mikrobus_port_pinctrl_select: setting pinctrl pwm_default | |
[ 4.349160] mikrobus:mikrobus_port_pinctrl_select: setting pinctrl uart_default | |
[ 4.349170] mikrobus:mikrobus_port_pinctrl_select: setting pinctrl i2c_default | |
[ 4.349181] mikrobus:mikrobus_port_pinctrl_select: setting pinctrl spi_default | |
[ 4.349203] mikrobus:mikrobus_port_register: registering port mikrobus-1 | |
[ 4.349385] mikrobus mikrobus-1: mikrobus port 1 eeprom empty probing default eeprom | |
[ 4.372699] mikrobus:mikrobus_port_eeprom_probe: mikrobus port 1 default eeprom is probed at 57 | |
[ 4.373208] mikrobus_manifest:mikrobus_manifest_header_validate: manifest version too new (101.118 > 0.3) | |
[ 4.373219] mikrobus mikrobus-1: invalid manifest size -22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 0.000000] Booting Linux on physical CPU 0x0 | |
[ 0.000000] Linux version 5.8.18-bone23 (vaishnav@ubuntu) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 ( | |
arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #1xross PREEMPT Wed Dec 2 18: | |
59:43 IST 2020 | |
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d | |
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache | |
[ 0.000000] OF: fdt: Machine model: TI AM335x PocketBeagle | |
[ 0.000000] Memory policy: Data cache writeback | |
[ 0.000000] efi: UEFI not found. | |
[ 0.000000] cma: Reserved 48 MiB at 0x9c800000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vaishnav@ubuntu:~/mygreybus$ dmesg | |
[ 2270.023183] greybus 1-2.2: Interface added (greybus) | |
[ 2270.023186] greybus 1-2.2: GMP VID=0x00000126, PID=0x00000126 | |
[ 2270.023188] greybus 1-2.2: DDBL1 Manufacturer=0x00000126, Product=0x00000126 | |
[ 2270.218059] mikrobus:mikrobus_port_gb_register: mikrobus gb_probe , num cports= 1 | |
[ 2270.218066] mikrobus:mikrobus_port_gb_register: protocol added 3 | |
[ 2270.218079] mikrobus:mikrobus_port_register: registering port mikrobus-0 | |
[ 2270.218156] mikrobus mikrobus-0: mikrobus port 0 eeprom empty probing default eeprom | |
[ 2270.218231] mikrobus:mikrobus_port_eeprom_probe: mikrobus port 0 default eeprom is probed at 57 | |
[ 2270.218235] mikrobus:mikrobus_port_eeprom_probe: mikrobus port 0 eeprom nvmem device probe failed |
OlderNewer