beagleboneblack

How to define a undefinded reference to a function

社会主义新天地 提交于 2019-12-20 06:32:45
问题 I am working on two Beaglebone Black with Xenomai and RTnet. I have two c-files for a roundtrip ethernet frame between the BBB's. When I try to compile the first c-file there occur some errors: undefined reference to 'rt_task_self' rt_task_self is a function in my c-file and is declared in my headerfile "task.h". So in my opinion "undefined" means that it is just not defined in any cpp-file "task.cpp" for the headerfile "task.h". But I am a little bit confused: How do I tell my program that

Beaglebone black PWM using C

半世苍凉 提交于 2019-12-20 02:52:20
问题 I wrote a sample pwm function in C for beaglebone black. Whenever I make a function call in other modules or in main(), I end up in segmentation fault. Kindly help where I am making the mistake and how to deal with this issue. Below is the code. int trigger_pwm_output(unsigned input_no ) { FILE *pwm,*duty,*period,*run;`` uint16_t input=0; uint8_t input_no=0,input_state=0; unsigned int duty_cycle =500000; pwm = fopen("/sys/devices/bone_capemgr.9/slots", "w"); fseek(pwm,0,SEEK_SET); fprintf(pwm

Limit parallel processes in CherryPy?

不羁岁月 提交于 2019-12-14 03:16:07
问题 I have a CherryPy server running on a BeagleBone Black. Server generates a simple webpage and does local SPI reads / writes (hardware interface). The application is going to be used on a local network with 1-2 clients at a time. I need to prevent a CherryPy class function being called twice, two or more instances before it completes. Thoughts? 回答1: As saaj commented, a simple threading.Lock() will prevent the handler from being run at the same time by another client. I might also add, using

Armadillo reading MAT file error

我只是一个虾纸丫 提交于 2019-12-13 18:11:49
问题 I'm currently cross-compiling on the BeagleBone Black in a Visual Studio environment using Armadillo to translate MATLAB code into C++. This is a signal processing project, so I need a way to read and write binary data files, specifically .mat files. Thankfully, the armadillo documentation says that you can load .mat files directly into a matrix using .load() I attempted that at first, but it seems like it's not reading the file correctly, nor is it reading all the entries. My reference file

PWM chip to pin mapping on BeagleBone Black (v4.14)

北城余情 提交于 2019-12-13 16:15:23
问题 There is very little information how to configure the Beaglebone for PWM on newer versions of the kernel. I followed the instructions from PWM on BeagleBone Black (v4.14) to interface with the PWM chips, but now I need to figure out the pin that each chip is connected to. Based on the Cape Expansion Headers image in the BeagleBone Black documentation, I know: EHRPWM0A = P9_22 EHRPWM0B = P9_21 EHRPWM1A = P9_14 EHRPWM1B = P9_16 EHRPWM2A = P8_19 EHRPWM2B = P8_13 ECAP0 = P9_42 When I run ls -lh

Unknown command 'nand' - try 'help' on beaglebone black

守給你的承諾、 提交于 2019-12-13 05:13:50
问题 I'm trying build a linux system on beaglebone black and following to mastering embedded linux programming book, however when I boot my u-boot on beaglebone black, I have received a error: unknown command 'nand' - try 'help' . Does anybody have any idea of what did I do wrong or did I miss something? 回答1: If you are in Chapter 3: All About Bootloaders → U-Boot → Using U-Boot : This is NOT an example meant to be executed on a BeagleBoneBlack. It is a generic example of a U-Boot command that

PWM on BeagleBone Black (v4.14)

半城伤御伤魂 提交于 2019-12-13 02:44:37
问题 There is very little information how to configure the Beaglebone for PWM on newer versions of the kernel. Past instructions for interfacing with PWM through the slots file are obsolete, as the slots file and bone_capemgr are disabled in v4.14 of the kernel. How do I configure PWM for BeagleBone Black with the new kernel? I am using a TI AM335x BeagleBone Black Wireless running kernel version 4.14.37-ti-r46. 回答1: As mentioned in the question, the slots file and bone_capemgr are disabled in v4

“Looking for connected device” Error when interfacing via I2C to BBB

大憨熊 提交于 2019-12-13 02:14:35
问题 I am trying to print a message to an OLED screen, everytime a button is pushed. Whenever I try running the code, I receive this "error". Im not sure what is causing it, or how I can resolve it. Any help would be appreciated. var b = require('bonescript'); var button = "P8_12"; b.pinMode(button, b.INPUT); var five = require('johnny-five'); var board = new five.Board(); var oled = require('oled-js'); var font = require('oled-font-5x7'); b.attachInterrupt(button, true, b.CHANGE, printTime)

Cmake cross compile cant find library

霸气de小男生 提交于 2019-12-12 05:07:54
问题 i am tring to compile OpenCV on BeagleBone Black with CMake, but it can't find some libraries like gstream. I run cmake natively on BBB and it showed that rootfs has gstream. how can i tell CMake to search in Correct path ? My toolchane.cmake set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_VERSION 4.4.9-ti-r25) set(CMAKE_SYSTEM_PROCESSOR armv7l) set(GCC_COMPILER_VERSION "4.7" CACHE STRING "GCC Compiler version") ####### Architecture ################ set(FLOAT_ABI_SUFFIX "hf") set(ENABLE_NEON

Compiling the kernel of Beaglebone black

拟墨画扇 提交于 2019-12-12 04:34:21
问题 I followed the procedures to compile the kernel for beaglebone black git clone git://github.com/beagleboard/kernel.git cd kernel git checkout 3.8 ./patch.sh cp configs/beaglebone kernel/arch/arm/configs/beaglebone_defconfig wget http://arago-project.org/git/projects/?p=am33x-cm3.git\;a=blob_plain\;f=bin/am335x-pm-firmware.bin\;hb=HEAD -O kernel/firmware/am335x-pm-firmware.bin cd kernel make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- beaglebone_defconfig -j4 make ARCH=arm CROSS_COMPILE=arm