Working with the NRF9160 it is often important to make sure current / power consumption is at its absolute minimum. To understand power floor it makes sense to first take a look at basic Zephyr sample application such as blinky.
# assuming the nrf connect sdk is installed under ~/dev/nrf-1.7.1
# pristine flag making sure no old build files are used
west build -b nrf9160dk_nrf9160_ns --pristine
west flash --erase
Above commands will build and flash the Blinky Example. Measuring current on P22 of the board with a multimeter quickly shows a power draw of about 521 uA which is unusually high.
The source of the issue lies in the Secure Partition Manager module which has a configuration Flag set (CONFIG_SERIAL=y). Even setting CONFIG_SERIAL=n in the local proj.conf file will not disable the flag since it is still used by the spm module.
Manually overriding the .config file ~/nrf-1.7.1/zephyr/samples/basic/blinky/build/spm/zephyr/.config would in this case solve the issue and rebuilding would result in measuring idle consumption of about 3uA. However, there is a more convenient and opinionated way of setting this value by changing the menuconfig for spm using:
# start the menuconfig for spm
west build -b nrf9160dk_nrf9160_ns -t spm_menuconfig
Rebuilding will then allow the current consumption to drop to the expected floor of about 3uA.
This blog article demonstrates how to get started with App Engine’s Cloud Endpoints Framwork v2.0 in Android Studio and details configuration necessary for migration from version 1.0 of App Engine Cloud Endpoints.
This tutorial assumes you have already built and deployed Android 6.0.1 for the Wandboard on an SD-card, according to our preceeding blog post in this series. For quick reference, we are using the Android source 6.0.1 for the Wandboard from the official website. The source code is assumed to be extracted to /opt/android/wand, and our host system is Ubuntu 16.04.
Android system development on an SD-card can be quite cumbersome. Even though there is the possibility of pushing and pulling files via Android Debug Bridge (ADB) between the target device and the host computer, more often than not, you still need to replace the contents of the SD-card manually. In the following, we will show you how you can boot the Linux kernel via TFTP and the Android operating system over NFS.
While our guide of how to build deploy vanilla AOSP on the Wandboard has helped many to understand more about the Android and Linux build tools, it is often required for applications to have hardware graphics acceleration.
In this post we are going to get an overview of unit testing in Android with a few practical examples. Unfortunately, testing in Android has some pitfalls, which we will try to uncover in this tutorial. A lot of the confusion stems from the fact that Android testing has undergone major development changes in the recent past, and therefore there are various – and sometimes – conflicting resources online, which may be depreciated in the mean time. Before we delve deeper, let’s create a new Android project. We are using preview version 4 of Android Studio 2.0, which can be downloaded from here.
Start by creating a new project “Say Hello” with a Blank Activity.