Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
2 years, 5 months ago.
Can't compile PAH8011 example.
I'm working with PAH8011 low power heart rate monitor optical chip on nRF52 DK development board. I came across the library.
I tried compiling the code using the command line interface and the cloud compiler. But both of them throws errors.
Error: "Cannot open source input file "nrf_drv_rng.h": No such file or directory in "extras/pixart_heart_rate_demo/pixart_pah8011/mbed-os.lib/targets/TARGET_NORDIC/TARGET_NRF5/trng_api.c", Line: 41, Col: 26"
I used the "build repositories" option, which failed to compile the project.
Error: "Internal error. Failed!".
Shouldn't it work out of the box? I might be missing something very obvious here, as this is the first time I am using mbed, but please help me out. May be downgrading the version is an option? I would be obliged if anyone would figure out the issue.
Platform: nRF52 DK (development board).
Sensor to interface: PAH8011
2 years, 5 months ago.
I have no idea who put that demo together but it includes three distinct copies of Mbed OS. That's not good. In addition I had to patch some other things; such as getting rid of
<cstdint> in pixart_pah8011.h, and putting another
include <stdint.h> somewhere.
After that it builds fine with ARMCC5.
~/repos/PixArt_PAH8011_HeartRate_nRF52 $ mbed remove mbed [mbed] Removing library "mbed" in "/Users/janjon01/repos/PixArt_PAH8011_HeartRate_nRF52/mbed" ~/repos/PixArt_PAH8011_HeartRate_nRF52 $ mbed remove pixart_heart_rate_demo/pixart_pah8011/mbed-os [mbed] Removing library "mbed-os" in "/Users/janjon01/repos/PixArt_PAH8011_HeartRate_nRF52/pixart_heart_rate_demo/pixart_pah8011/mbed-os" ~/repos/PixArt_PAH8011_HeartRate_nRF52 $ mbed remove pixart_heart_rate_demo/mbed-os [mbed] Removing library "mbed-os" in "/Users/janjon01/repos/PixArt_PAH8011_HeartRate_nRF52/pixart_heart_rate_demo/mbed-os" ~/repos/PixArt_PAH8011_HeartRate_nRF52 $ mbed add mbed-os [mbed] Adding library "mbed-os" from "ssh://email@example.com/ARMmbed/mbed-os.git" at latest revision in the current branch [mbed] Updating reference "mbed-os" -> "https://github.com/ARMmbed/mbed-os/#501a7b6949f7ae365fecfe05f35fe6c3048a086e"
Then try and build with ARMCC. Unfortunately this project cannot be built with GCC, as they only have the compiled code for ARMCC in the library.