# WP77 problems with SPI and i2c

**URL:** <https://forum.legato.io/t/wp77-problems-with-spi-and-i2c/3006>\
**Category:** Legato Application Framework\
**Created:** [February 1, 2018, 7:34pm UTC](https://forum.legato.io/t/wp77-problems-with-spi-and-i2c/3006 "2018-02-01T19:34:54Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![dfrey](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/dfrey/32/563_2.png) [@dfrey](https://forum.legato.io/u/dfrey)\
**Post date:** [February 21, 2018, 7:35pm UTC](https://forum.legato.io/t/wp77-problems-with-spi-and-i2c/3006/21 "2018-02-21T19:35:50Z")

</div>

I have submitted a [pull request](https://github.com/legatoproject/legato-af/pull/24) that addresses the spiService on wp76xx and wp77xx issue. If you test the code in the pull request, pleease leave a comment in the pull request indicating whether it works for you or not.

---

<div class="post-metadata">

**Author:** ![amil13](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/amil13/32/461_2.png) [@amil13](https://forum.legato.io/u/amil13)\
**Post date:** [July 17, 2018, 10:00am UTC](https://forum.legato.io/t/wp77-problems-with-spi-and-i2c/3006/22 "2018-07-17T10:00:58Z")

</div>

Hey, so I have changed the trigger.h, yet i am still not able to see the sensor files . I have gone through the entire thread carefully. I am not sure how do you integrate the drivers bmi160 and bmp280.

I am new with this system, help will be appreciated.  
thanks

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 18, 2018, 7:28am UTC](https://forum.legato.io/t/wp77-problems-with-spi-and-i2c/3006/23 "2018-07-18T07:28:24Z")

</div>

did you follow here to build the mangoH Red image:

> <https://github.com/mangOH/mangOH/blob/master/README.md>

Also SW401 switch 3 needs to be “ON” on the mangOH\_Red board in order to power up the Gyroscope/ Accelerometer.

---

<div class="post-metadata">

**Author:** ![amil13](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/amil13/32/461_2.png) [@amil13](https://forum.legato.io/u/amil13)\
**Post date:** [July 18, 2018, 9:17am UTC](https://forum.legato.io/t/wp77-problems-with-spi-and-i2c/3006/24 "2018-07-18T09:17:25Z")

</div>

Hey, thanks for replying,

Yes i have done all the required steps .

I still get this error:

**[1/51] Compiling liblegato source file**  
\*\*FAILED: /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/crc.c.o \*\*  
\*\*/gcc --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/crc.c.o.d -c /home/amil/mangoh/legato\_framework/legato/framework/liblegato/crc.c -o /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/crc.c.o -Wall -Werror -DLEGATO\_EMBEDDED -fPIC -I/home/amil/mangoh/legato\_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/amil/mangoh/legato\_framework/legato/framework/liblegato/linux -DLE\_COMPONENT\_NAME=framework -I/home/amil/mangoh/legato\_framework/legato/framework/include -I/home/amil/mangoh/legato\_framework/legato/framework/liblegato -DDISABLE\_SMACK=0 -DLE\_SVCDIR\_SERVER\_SOCKET\_NAME=“"/tmp/legato/serviceDirectoryServer"” -DLE\_SVCDIR\_CLIENT\_SOCKET\_NAME=“"/tmp/legato/serviceDirectoryClient"” \*\*  
**/bin/sh: /gcc: No such file or directory**  
**[2/51] Compiling liblegato source file**  
\*\*FAILED: /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/singlyLinkedList.c.o \*\*  
\*\*/gcc --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/singlyLinkedList.c.o.d -c /home/amil/mangoh/legato\_framework/legato/framework/liblegato/singlyLinkedList.c -o /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/singlyLinkedList.c.o -Wall -Werror -DLEGATO\_EMBEDDED -fPIC -I/home/amil/mangoh/legato\_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/amil/mangoh/legato\_framework/legato/framework/liblegato/linux -DLE\_COMPONENT\_NAME=framework -I/home/amil/mangoh/legato\_framework/legato/framework/include -I/home/amil/mangoh/legato\_framework/legato/framework/liblegato -DDISABLE\_SMACK=0 -DLE\_SVCDIR\_SERVER\_SOCKET\_NAME=“"/tmp/legato/serviceDirectoryServer"” -DLE\_SVCDIR\_CLIENT\_SOCKET\_NAME=“"/tmp/legato/serviceDirectoryClient"” \*\*  
**/bin/sh: /gcc: No such file or directory**  
**[3/51] Compiling liblegato source file**  
\*\*FAILED: /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/doublyLinkedList.c.o \*\*  
\*\*/gcc --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/doublyLinkedList.c.o.d -c /home/amil/mangoh/legato\_framework/legato/framework/liblegato/doublyLinkedList.c -o /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/doublyLinkedList.c.o -Wall -Werror -DLEGATO\_EMBEDDED -fPIC -I/home/amil/mangoh/legato\_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/amil/mangoh/legato\_framework/legato/framework/liblegato/linux -DLE\_COMPONENT\_NAME=framework -I/home/amil/mangoh/legato\_framework/legato/framework/include -I/home/amil/mangoh/legato\_framework/legato/framework/liblegato -DDISABLE\_SMACK=0 -DLE\_SVCDIR\_SERVER\_SOCKET\_NAME=“"/tmp/legato/serviceDirectoryServer"” -DLE\_SVCDIR\_CLIENT\_SOCKET\_NAME=“"/tmp/legato/serviceDirectoryClient"” \*\*  
**/bin/sh: /gcc: No such file or directory**  
**[4/51] Compiling liblegato source file**  
\*\*FAILED: /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/utf8.c.o \*\*  
\*\*/gcc --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/utf8.c.o.d -c /home/amil/mangoh/legato\_framework/legato/framework/liblegato/utf8.c -o /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/utf8.c.o -Wall -Werror -DLEGATO\_EMBEDDED -fPIC -I/home/amil/mangoh/legato\_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/amil/mangoh/legato\_framework/legato/framework/liblegato/linux -DLE\_COMPONENT\_NAME=framework -I/home/amil/mangoh/legato\_framework/legato/framework/include -I/home/amil/mangoh/legato\_framework/legato/framework/liblegato -DDISABLE\_SMACK=0 -DLE\_SVCDIR\_SERVER\_SOCKET\_NAME=“"/tmp/legato/serviceDirectoryServer"” -DLE\_SVCDIR\_CLIENT\_SOCKET\_NAME=“"/tmp/legato/serviceDirectoryClient"” \*\*  
**/bin/sh: /gcc: No such file or directory**  
**[5/51] Compiling liblegato source file**  
\*\*FAILED: /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/addr.c.o \*\*  
\*\*/gcc --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/addr.c.o.d -c /home/amil/mangoh/legato\_framework/legato/framework/liblegato/linux/addr.c -o /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/addr.c.o -Wall -Werror -DLEGATO\_EMBEDDED -fPIC -I/home/amil/mangoh/legato\_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/amil/mangoh/legato\_framework/legato/framework/liblegato/linux -DLE\_COMPONENT\_NAME=framework -I/home/amil/mangoh/legato\_framework/legato/framework/include -I/home/amil/mangoh/legato\_framework/legato/framework/liblegato -DDISABLE\_SMACK=0 -DLE\_SVCDIR\_SERVER\_SOCKET\_NAME=“"/tmp/legato/serviceDirectoryServer"” -DLE\_SVCDIR\_CLIENT\_SOCKET\_NAME=“"/tmp/legato/serviceDirectoryClient"” \*\*  
**/bin/sh: /gcc: No such file or directory**  
**[6/51] Compiling liblegato source file**  
\*\*FAILED: /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/args.c.o \*\*  
\*\*/gcc --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/args.c.o.d -c /home/amil/mangoh/legato\_framework/legato/framework/liblegato/linux/args.c -o /home/amil/mangoh/legato\_framework/legato/build/wp76xx/framework/obj/args.c.o -Wall -Werror -DLEGATO\_EMBEDDED -fPIC -I/home/amil/mangoh/legato\_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/amil/mangoh/legato\_framework/legato/framework/liblegato/linux -DLE\_COMPONENT\_NAME=framework -I/home/amil/mangoh/legato\_framework/legato/framework/include -I/home/amil/mangoh/legato\_framework/legato/framework/liblegato -DDISABLE\_SMACK=0 -DLE\_SVCDIR\_SERVER\_SOCKET\_NAME=“"/tmp/legato/serviceDirectoryServer"” -DLE\_SVCDIR\_CLIENT\_SOCKET\_NAME=“"/tmp/legato/serviceDirectoryClient"” \*\*  
**/bin/sh: /gcc: No such file or directory**  
**ninja: build stopped: subcommand failed.**  
**Makefile.framework:147: recipe for target ‘liblegato’ failed**  
**make[2]: \*\*\* [liblegato] Error 1**  
**make[2]: Leaving directory ‘/home/amil/mangoh/legato\_framework/legato’**  
**Makefile:314: recipe for target ‘framework\_wp76xx’ failed**  
**make[1]: \*\*\* [framework\_wp76xx] Error 2**  
**make[1]: Leaving directory ‘/home/amil/mangoh/legato\_framework/legato’**  
**Makefile:34: recipe for target ‘legato\_wp76xx’ failed**  
**make: \*\*\* [legato\_wp76xx] Error 2**

I am running it on ubuntu 18.04 LTS

Thanks!

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 18, 2018, 9:30am UTC](https://forum.legato.io/t/wp77-problems-with-spi-and-i2c/3006/25 "2018-07-18T09:30:03Z")

</div>

“/bin/sh: /gcc: No such file or directory” means the toolchain path of WP76 is not correct.  
You can check by “export” command.

---

<div class="post-metadata">

**Author:** ![Kalai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kalai/32/1135_2.png) [@Kalai](https://forum.legato.io/u/Kalai)\
**Post date:** [March 11, 2021, 11:35am UTC](https://forum.legato.io/t/wp77-problems-with-spi-and-i2c/3006/26 "2021-03-11T11:35:09Z")

</div>

hi am, alsso getting the same issue have you resolved the problem?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [March 11, 2021, 12:14pm UTC](https://forum.legato.io/t/wp77-problems-with-spi-and-i2c/3006/27 "2021-03-11T12:14:05Z")

</div>

Please post the error message

[Previous page](https://forum.legato.io/t/wp77-problems-with-spi-and-i2c/3006.md?page=1)
