Skip to content

Instantly share code, notes, and snippets.

View vmayoral's full-sized avatar

Víctor Mayoral Vilches vmayoral

View GitHub Profile
mkdir -p build
clpru --silicon_version=3 -o1 -Dam335x -I/ARMLinuxA8/lib -I/ARMLinuxA8/include -I/AM335X_StarterWare_02_00_01_01/include -I/AM335X_StarterWare_02_00_01_01/include/arm7a -I/AM335X_StarterWare_02_00_01_01/include/hw -I/AM335X_StarterWare_02_00_01_01/platform/beaglebone blinkled.c -z /ARMLinuxA8/example/AM3359_PRU.cmd -o build/blinkled.out -m blinkled.out.map
>> WARNING: "-I/ARMLinuxA8/lib -I/ARMLinuxA8/include -I/AM335X_StarterWare_02_00_01_01/include -I/AM335X_StarterWare_02_00_01_01/include/arm7a -I/AM335X_StarterWare_02_00_01_01/include/hw -I/AM335X_StarterWare_02_00_01_01/platform/beaglebone": Path not found. Use semicolons (not spaces) to separate pathnames in environment variable PRU_C_DIR.
"blinkled.c", line 1: fatal error: cannot open source file "gpio_v2.h"
1 catastrophic error detected in the compilation of "blinkled.c".
Compilation terminated.
>> Compilation failure
make: *** [build/blinkled.out] Error 1
root@erlerobot:~/pru/PRUSS-C/PRUSS_LIB/example# pwd
/root/pru/PRUSS-C/PRUSS_LIB/example
root@erlerobot:~/pru/PRUSS-C/PRUSS_LIB/example# echo $PATH
/root/pru/PRUSS-C/PRUSS_LIB:/root/pru/ARMLinuxA8/bin:/root/pru/ARMLinuxA8/:/root/pru/ARMLinuxA8/example:/root/catkin_ws/devel/bin:/opt/ros/groovy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
root@erlerobot:~/pru/PRUSS-C/PRUSS_LIB/example# echo $PRUSS_BASE_PATH
/root/pru/PRUSS-C/PRUSS_LIB
root@erlerobot:~/pru/PRUSS-C/PRUSS_LIB/example# echo $PRUSS_BASE_DIR
/root/pru/PRUSS-C/PRUSS_LIB
root@erlerobot:~/pru/PRUSS-C/PRUSS_LIB/example# make
make: Warning: File `Makefile' has modification time 4.5e+08 s in the future
make: Warning: File `Makefile' has modification time 4.5e+08 s in the future
mkdir -p build
clpru --silicon_version=3 -o1 -Dam335x -I/root/pru/PRUSS-C/PRUSS_LIB/ARMLinuxA8/lib -I/root/pru/PRUSS-C/PRUSS_LIB/ARMLinuxA8/include -I/root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/include -I/root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/include/arm7a -I/root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/include/hw -I/root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/platform/beaglebone /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/drivers/cpsw.c /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/drivers/dcan.c /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/drivers/dmtimer.c /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/drivers/ecap.c /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/drivers/edma.c /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_01_01/drivers/ehrpwm.c /root/pru/PRUSS-C/PRUSS_LIB/AM335X_StarterWare_02_00_
make
mkdir -p build
clpru --silicon_version=3 -o1 -Dam335x -I/ARMLinuxA8/lib -I/ARMLinuxA8/include -I/AM335X_StarterWare_02_00_01_01/include -I/AM335X_StarterWare_02_00_01_01/include/arm7a -I/AM335X_StarterWare_02_00_01_01/include/hw -I/AM335X_StarterWare_02_00_01_01/platform/beaglebone blinkled.c -z /ARMLinuxA8/example/AM3359_PRU.cmd -o build/blinkled.out -m blinkled.out.map
>> WARNING: "-I/ARMLinuxA8/lib -I/ARMLinuxA8/include -I/AM335X_StarterWare_02_00_01_01/include -I/AM335X_StarterWare_02_00_01_01/include/arm7a -I/AM335X_StarterWare_02_00_01_01/include/hw -I/AM335X_StarterWare_02_00_01_01/platform/beaglebone": Path not found. Use semicolons (not spaces) to separate pathnames in environment variable PRU_C_DIR.
"blinkled.c", line 1: fatal error: cannot open source file "gpio_v2.h"
1 catastrophic error detected in the compilation of "blinkled.c".
Compilation terminated.
>> Compilation failure
make: *** [build/blinkled.out] Error 1
i2cdetect -r 2
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-2 using read byte commands.
I will probe address range 0x03-0x77.
Continue? [Y/n]
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- 13 -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
@vmayoral
vmayoral / ardupilot-linux-macos
Created March 28, 2014 11:13
ArduCopter Linux HAL compilation in Mac OS
make linux
HAL_BOARD=HAL_BOARD_LINUX TOOLCHAIN=NATIVE EXTRAFLAGS=-DGIT_VERSION="ac364c93"
building /var/folders/qq/dy7sx4q919q_t9v9my7pxjm40000gn/T/ArduCopter.build/ArduCopter.cpp
%% ArduCopter.cpp
%% ArduCopter.o
In file included from /Users/victor/Dropbox/Erle_Robotics/Autopilot/ardupilot/ArduCopter/ArduCopter.pde:83:
/Users/victor/Dropbox/Erle_Robotics/Autopilot/ardupilot/libraries/AP_Common/AP_Common.h:31: warning: unknown option after '#pragma GCC diagnostic' kind
autogenerated:15: warning: 'void update_optical_flow()' declared 'static' but never defined
/Users/victor/Dropbox/Erle_Robotics/Autopilot/ardupilot/ArduCopter/GCS_Mavlink.pde:281: warning: 'void send_simstate(mavlink_channel_t)' defined but not used
autogenerated:57: warning: 'void send_servo_out(mavlink_channel_t)' declared 'static' but never defined
@vmayoral
vmayoral / gist:11181796
Created April 22, 2014 14:40
beaglepilot - libraries/examples compilation issues
~/ardupilot/libraries/AP_Baro/examples/AP_Baro_BMP085_test# make linux
make: Warning: File `../../../../mk/find_tools.mk' has modification time 4e+02 s in the future
HAL_BOARD=HAL_BOARD_LINUX TOOLCHAIN=NATIVE EXTRAFLAGS=-DGIT_VERSION="e93740fc"
building /tmp/AP_Baro_BMP085_test.build/AP_Baro_BMP085_test.cpp
%% AP_Baro_BMP085_test.cpp
%% AP_Baro_BMP085_test.o
In file included from /root/ardupilot/libraries/AP_AHRS/AP_AHRS.h:379:0,
from /root/ardupilot/libraries/DataFlash/DataFlash.h:14,
from /root/ardupilot/libraries/AP_Baro/examples/AP_Baro_BMP085_test/AP_Baro_BMP085_test.pde:19:
@vmayoral
vmayoral / gist:11181873
Created April 22, 2014 14:42
Non deterministic behaviour when running ArduPilot.elf
root@erlerobot:~/ArduCopter.build# ./ArduCopter.elf
Init ArduCopter V3.2-dev (e93740fc)
Free RAM: 4096
FW Ver: 120
----------------------------------------
@vmayoral
vmayoral / gist:c41145eafba412a5763e
Created May 5, 2014 21:08
PXF i2c-1 bus (I2C2 at P9)
i2cdetect -r 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1 using read byte commands.
I will probe address range 0x03-0x77.
Continue? [Y/n]
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- 28 -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
@vmayoral
vmayoral / gist:622884c08f0b2ab5c22d
Created May 13, 2014 16:52
RCOoutput compilation errors
%% libraries/AP_HAL_Linux/RCOutput.o
In file included from /root/ardupilot/libraries/AP_HAL_Linux/AP_HAL_Linux.h:33:0,
from /root/ardupilot/libraries/AP_HAL_Linux/RCOutput.h:5,
from /root/ardupilot/libraries/AP_HAL_Linux/RCOutput.cpp:6:
/root/ardupilot/libraries/AP_HAL_Linux/AP_HAL_Linux_Main.h:11:17: warning: backslash and newline separated by space [enabled by default]
/root/ardupilot/libraries/AP_HAL_Linux/RCOutput.cpp:4:0: error: unterminated #if
/root/ardupilot/libraries/AP_HAL_Linux/RCOutput.cpp:17:6: error: 'LinuxRCOutput' has not been declared
/root/ardupilot/libraries/AP_HAL_Linux/RCOutput.cpp: In function 'void init()':
/root/ardupilot/libraries/AP_HAL_Linux/RCOutput.cpp:61:35: error: 'write1' was not declared in this scope
/root/ardupilot/libraries/AP_HAL_Linux/RCOutput.cpp:67:35: error: 'write1' was not declared in this scope