problem about beagleboard-Collection of common programming errors


  • sanatan
    c eclipse ubuntu arm beagleboard
    I am trying to make a small application for my arm target. I have already set up the toolchain in eclipse under linux. Now i am trying to build libraries.here is my library header file led.h:#ifndef LED_H_ #define LED_H_extern char ledon(char lednum); extern char ledoff(char lednum);#endif /* LED_H_ */and my c file led.c :#include #include #include #include int fd = 0;char ledon(char lednum) {switch(lednum){case 0 :fd = open(“/sys/class/leds/beaglebone::usr0/brightness”, O_WRONLY);break;case 1 :fd = open(“/sys/class/leds/beaglebone::usr1/brightness”, O_WRONLY);break;case 2 :fd = open(“/sys/class/leds/beaglebone::usr2/brightness”, O_WRONLY);break;case 3 :fd = open(“/sys/class/leds/beaglebone::usr3/brightness”, O_WRONLY);break;}if (fd>0){write(fd,”1″,sizeof(char));close(fd);return 1;}else{print

  • snakile
    python opencv arm cross-compiling beagleboard
    I am running OpenCV on a Beagleboard xM with a webcam under Ubuntu. The webcam runs fine, but only in YUYV mode. I.e., luvcview using jpeg compression has many frames which are half cut-off, incorrect colors etc. But luvcview -f YuYV works perfectly.Is it possible to disable jpeg compres

  • Don Branson
    node.js microcontroller beagleboard
    On my BeagleBone Black, when I run this script:#!/usr/bin/nodevar b = require(‘bonescript’);b.getPlatform(printData); function printData(x) {console.log(‘name = ‘ + x.name);console.log(‘version = ‘ + x.version);console.log(‘serialNumber = ‘ + x.serialNumber);console.log(‘bonescript = ‘ + x.bonescript);console.log(); }b.pinMode(“P9_11”, b.OUTPUT, 7, ‘pullup’, ‘slow’); b.pinMode(“P9_13”, b.OUTPUT, 7, ‘pullup’, ‘slow’); b.pinMode

  • gus
    opencv g++ beagleboard
    I have written the following code in C++ which use openCV to be run in Beaglebone:#include #include #include #include #include #include #include #include #include #include #inc

  • Ann
    c linker beagleboard math.h
    I am trying to compile some C code on a beagleboard xm. I try to compile, but I get the error: undefined reference to ‘isfinite’ whi

  • user40643
    serial-port embedded virtual-machine qemu beagleboard
    I’m running an Linux Image (kernel 3.2.8) for beagleboard-xm on QEMU’s 1.4.0 emulator Ubuntu distribution for 13.04. My image is created using Buildroot beagle_defconfig. I added some pkgs to be able to debug a little.QEMU call cmd:`$ sudo qemu-system-arm -M beaglexm -m 1024 -sd ./test.img -clock unix -serial stdio -device usb-mouse -device usb-kbd -serial pty -serial pty` [sudo] password for emperador: char device redirected to /dev/pts/3 (label serial1) char device redirected to /dev/pts/4 (label serial2)What I want to do is to have a communication between guest and host across serial the 4 differents ttyO present on the guest. QEMU offer facilities to redirect the trafic to some device in the host side. My problem goes like this:At the guest kernel boot Im able to see that my UART where enabled[ 2.682040] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 2.777947] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0 [ 2.794967] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1 [ 2.814942] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2 [ 2.966825] console [ttyO2] enabled [ 2.984777] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3In fact when I go see in t

  • Eradicatore
    linux installation beagleboard
    I have a problem with installing rtorrent on the Beagleboard. I think it’s maybe a simple issue of just out of date dependencies, but I’m not sure how to get around it. I’ve done the following:opkg update opkg upgradeand then I tried to install rtorrent. I see it says it’s dependent on libcrypto0.9.8 but the latest version is libcrypto1.0.0. The problem is the rtorrent seems to no

  • EGOrecords
    cmake beagleboard ar
    I am Compiling on a Beagleboard-Xm, Kernel:root@beagleboard:~# uname -a Linux beagleboard 2.6.32 #3 PREEMPT Tue Jul 26 10:56:56 CEST 2011 armv7l unknownI now try to compile a static library with CMake, and everything is working fine, until it comes to linking of the library: root@beagleboard:/usr/src/build/beaglebuild# make Scanning dependencies of target phoenix_base [ 2%] Building CXX object 00_phoenix_base/CMakeFiles/phoenix_base.dir/src/exec_buffer.cpp.o [ 5%] B

  • Michael Dillon
    node.js beagleboard
    I am trying to create a NodeJS library that allows usage of the BeagleBone’s serial (uart) ports. Some of the pins are muxed so some configuration bits have to be written to two files. Here is my function that writes the configuration bits to enable the uart:var setMuxForUart = function (uart, next) {var txFd, rxFd;var txBuf = new Buffer(uart.muxTx.config, ‘ascii’);var rxBuf = new Buffer(uart.muxRx.config, ‘ascii’);var txBytesWritten, rxBytesWritten;console.log (“Configuring UART MUX for ” + uart.path);txFd = fs.openSync (MUX_PATH + uart.muxTx.path, ‘w’);rxFd = fs.openSync (

Originally posted 2013-11-10 00:12:33.