severe library problems when trying to use standard code

I am very new to Bluetooth and nRF. However, as i am trying to learn and work on a prototype i can't even get the basic sample codes to run. One of two big problems I'm having is that I'm missing what seems to be all Zephyr/Bluetooth libraries. For example, I'm missing the following from trying to run the Bluetooth peripheral example. 

#include <zephyr/sys/printk.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/zephyr.h>
#include <zephyr/types.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/hci.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/bluetooth/uuid.h>
#include <zephyr/bluetooth/gatt.h>
#include <zephyr/bluetooth/services/bas.h>
#include <zephyr/bluetooth/services/hrs.h>
every single one comes back with the error "cannot open source file"
My other problem is that even if I break it down to the point of basic c code allowing a button to turn on and off LED1 when i go to build it I get this error
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.1.2\opt\bin\cmake.EXE
along with whatever specific path file to my c file.
to be clear I followed the video tutorial exactly, I then installed cmake through there tutorial. It seems to me that in the installation video then i followed exactly (twice after a reinstall) these libraries came up fine but mine are immediately underline with red. and the cmake fatal error i cant find anything related to this from other forums. 
Please help! and than you i have the boardnRF52840-DK
Parents
  • Hi Walker,

    Issue with error squiggles can be resolved by just disabling it.  Also, I suppose you are using VS Code now from the last reply.. The output log that you shared previously doesn't have these errors mentioned by you.. Could you share the new output log.? Could you verify if you are opening VS code and the command prompt directly form the Toolchain manager.?

    Regards,

    Swathy

  • I said I was using VSC in the first post considering the fact I'm using the Nordic video tutorial. I would think that would be obvious. The output log is for the hello world it's the same error because I don't have libraries. The Cmake fatal error is when I build it. They are different logs both happen. I have no command prompt open. I always open VS through your toolchain

Reply
  • I said I was using VSC in the first post considering the fact I'm using the Nordic video tutorial. I would think that would be obvious. The output log is for the hello world it's the same error because I don't have libraries. The Cmake fatal error is when I build it. They are different logs both happen. I have no command prompt open. I always open VS through your toolchain

Children
No Data
Related