Locate array onto flash row

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi

   

Is it possible to locate a static const array to the start of a flash row (that is, to a 128 byte boundary)?

   

I'm using a PSoC4BLE (that doesn't support emulated EEPROM) and have a 1k byte array which I'd like to be in flash. If it was located over an exact number of rows that would make my life a little easier.

0 Likes
1 Reply
Anonymous
Not applicable

Is this guaranteed to work:

   

static const uint8 Test[1024] __attribute__ ((aligned (128))) = {};

0 Likes