This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF_DRV_SPIS_INSTANCE(1) results in GCC Exits with code 1

First some general info:

* Compiler GCC 7.2.0 GDB 8.0.1

* VisualGDB 5.3R8 Build 1973

* Visual Studio 2017

* SDK 12.0

I try to build an application using the SPI slave. But I'm out of luck quite quick.

The steps I did:

1. Set the SPI Driver to slave in the embedit framework

2. Enable SPIS in the sdk_config.h file (eg #define SPIS_ENABLED 1)

3. Enable instance 1 as this is the only slave instance availible for the nRF51 series (eg #define SPIS1_ENABLED 1)

4. Include the header files:

#include "nrf_spis.h"
#include "nrf_drv_spis.h"

Now if I try to create an instance of the SPI slave with:

static const nrf_drv_spis_t m_spi_slave_1 = NRF_DRV_SPIS_INSTANCE(1);

I get the folowing error code:

"Error  Failed to compile LEDBlink.cpp. GCC exited with code 1 SPI_Slave C:\Program Files (x86)\Sysprogs\VisualGDB\MSBuild\Targets\gcc.targets 85"

What am I missing here. I did use the SPI master in the past without any problem. So I'm a little bit in the dark here why this time things dont seem to work. Any help is welkom.

Parents
  • Visual Studio 2017

    Do you have a particular reason for using this, rather than one of the supported IDEs ?

    As says, Visual Studio is hindering rather than helping you here - it is hiding the full GCC error message from you!

    The full GCC error message would tell you exactly what error was found, in what file, and exactly where in that file.

    Or maybe you're looking in the wrong place for it within VS? Not many people here use VS for this, so not many can help you on this point.

    That's the advantage of using a supported IDE!

Reply
  • Visual Studio 2017

    Do you have a particular reason for using this, rather than one of the supported IDEs ?

    As says, Visual Studio is hindering rather than helping you here - it is hiding the full GCC error message from you!

    The full GCC error message would tell you exactly what error was found, in what file, and exactly where in that file.

    Or maybe you're looking in the wrong place for it within VS? Not many people here use VS for this, so not many can help you on this point.

    That's the advantage of using a supported IDE!

Children
Related