memset doesn't work as usual in SDK17.0.2

Hey all, I'm trying to get the NRFX_SPIM driver to work correctly (probably a different thread for some of these issues) but I'm getting an error NRF_ERROR_INVALID_ADDR, which apparently means that my rx buffer is not in data RAM so that EasyDMA can't access it.  I though maybe if I memset the buffer, then it will move it to RAM, so I have the following code:

#include <string.h>

...

static uint8_t rx_buff[2];
static const size_t rx_length = sizeof(rx_buff);

memset(rx_buff, 0, rx_length);

This returns the error: 

expected ')' before numeric constant

I am not new enough to C to get this wrong I think... If I comment it out everything runs fine, and rx_buff isn't a macro, so I'm kind of out of ideas.  Did I do something stupid here?

Parents Reply Children
No Data