This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error in makefile

Hello, I am using pca10028 and sdk 12.2. I am trying to run some code. I am getting some make file error as ble_nus_error.PNG.

My main.c file is New Text Document (3).txt

My make file is New Text Document (3).txt

Thanks, Shailav

Parents
  • Hi,

    I have attached updated files, which should compile with GCC. Note that I had to comment out some lines declaring unused variable in your main.c file. The makefile is configured to threat all warnings as errors, so this is needed to make it compile. You can comment in the declarations if you are going to use the variables.

    main.c - Makefile - sdk_config.h

    Best regards,

    Jørgen

Reply
  • Hi,

    I have attached updated files, which should compile with GCC. Note that I had to comment out some lines declaring unused variable in your main.c file. The makefile is configured to threat all warnings as errors, so this is needed to make it compile. You can comment in the declarations if you are going to use the variables.

    main.c - Makefile - sdk_config.h

    Best regards,

    Jørgen

Children