Charlie 0 Posted April 15, 2022 For example, the C code from : https://github.com/TinkerBoard/gpio_lib_c but cannot build it on gpio_lib_c, my usage: sudo ./build the output is: wiringPi Build script ===================== WiringPi Library [UnInstall] ldconfig: file /usr/lib/mali/libmali-midgard-t86x-r18p0-x11.so is truncated ldconfig: file /usr/lib/mali/libmali.so is truncated ldconfig: file /usr/lib/mali/libmali.so.1.9.0 is truncated ldconfig: file /usr/lib/mali/libmali.so.1 is truncated ldconfig: file /usr/lib/libmali.so.1 is truncated [Compile] wiringTB.c {standard input}: Assembler messages: {standard input}:1458: Error: operand 1 must be an integer register -- `ldr r0,[x2]' {standard input}:1459: Error: operand 1 must be an integer register -- `ldr r1,[x3]' {standard input}:1460: Error: operand 1 must be a SIMD vector register -- `orr r0,r1' {standard input}:1461: Error: operand 1 must be an integer register -- `str r0,[x2]' {standard input}:1488: Error: operand 1 must be an integer register -- `ldr r0,[x2]' {standard input}:1489: Error: operand 1 must be an integer register -- `ldr r1,[x3]' {standard input}:1490: Error: operand 1 must be an integer or stack pointer register -- `and r0,r1' {standard input}:1491: Error: operand 1 must be an integer register -- `str r0,[x2]' make: *** [Makefile:98: wiringTB.o] Error 1 Share this post Link to post Share on other sites
JulianR 0 Posted May 9, 2022 I do have the same problem. Did you find a solution? Is the Tinkerboard project dead? So many topics here do not have solutions/aswers. Share this post Link to post Share on other sites
tooz 53 Posted May 12, 2022 hello @Charlie and @JulianR, here's the compiling sample code for your reference: Developer Guide · TinkerBoard/TinkerBoard Wiki · GitHub have you executed the first step? ->Firstly, modify the /boot/config.txt file as following and then reboot to enable I2C1 and I2C4. Share this post Link to post Share on other sites
yi-hsin_hung 3 Posted May 13, 2022 Hi @Charlie and @JulianR: The gpio_lib_c source path of TInker Board 2 locate /usr/local/share/gpio_lib_c_rk3399 in system. We have prebuild and install the library in release image. And, you can include it directly Did you have other requirements and need to rebuild the library? Thank a lot! Share this post Link to post Share on other sites
JulianR 0 Posted May 13, 2022 Yes it is working, I also used the libraray from "https://github.com/TinkerBoard/gpio_lib_c" instead of "/usr/local/share/gpio_lib_c_rk3399" Share this post Link to post Share on other sites