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

NRF_ESB_CREATE_PAYLOAD() syntax error in sdk v14.1

Using GCC compiler with Eclipse, sdk v14.1, nRF52832, in ESB protocol mode.

The code compiles and builds just fine, all links are ok, but the code below issues a syntax error message in Eclipse with no further information. I even copied the main.c file, makefile, and sdk_config.h files from the esb_ptx example to see if I was doing something wrong but this problem still exists...

/* payload */
//create an initializer for a TX data packet
nrf_esb_payload_t           tx_payload = NRF_ESB_CREATE_PAYLOAD(0, \
                            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
                            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
                            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
                            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);

Below is a picture of what this looks like ..

image description

note: This did not happen in SDK v12.3

Related