Comments on: Chapters https://www.exploringrpi.com Companion Site for the book Exploring Raspberry Pi Fri, 27 Apr 2018 02:56:25 +0000 hourly 1 https://wordpress.org/?v=5.0.1 By: David Merchant https://www.exploringrpi.com/chapters/#comment-307 Sat, 23 Dec 2017 04:20:22 +0000 https://www.exploringrpi.com/?page_id=99#comment-307 Not sure where this question should go under what chapter. I would like to find a reference to implementing/ programming an I2C MEMS IMU, the BNO055. I can see it with I2Cdetect but for the life of me I can’t write a program that talks to it and gets data back. Any ideas? .thank you

]]>
By: admin https://www.exploringrpi.com/chapters/#comment-21 Sun, 03 Jul 2016 12:45:32 +0000 https://www.exploringrpi.com/?page_id=99#comment-21 Thanks Angelo, that should be platform-dependent assembler code. To illustrate this point further I have added the two .s file examples below, the first is compiled with a native compiler under x86 and the second is compiled using a cross-compiler to ARMHF. The .s files can be compared.
The .c source file:

The Intel x86 Code:

And the equivalent ARMHF code:

Each of the outputs are platform dependent. Thanks, Derek.

]]>
By: Angelo https://www.exploringrpi.com/chapters/#comment-19 Sat, 02 Jul 2016 19:13:27 +0000 https://www.exploringrpi.com/?page_id=99#comment-19 Erratum: Page 184 contains the phrase

“platform-independent assembler code”.

Assembler code is not platform independent. Maybe what you mean is that it is still a text file, not a binary?

The beablebone book contains the same error on page 171.

]]>